Skip to content

Commit cf9bc0b

Browse files
authored
fix(tools): correct wrong sysql examples (#56)
1 parent 835af52 commit cf9bc0b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/infra/mcp/tools/tool_run_sysql.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ func (h *ToolRunSysql) RegisterInServer(s *server.MCPServer) {
5353
mcp.Description("A valid SysQL query string to execute directly."),
5454
mcp.Required(),
5555
Examples(
56-
`MATCH Vulnerability WHERE severity = 'Critical' LIMIT 10`,
57-
`MATCH KubeWorkload AS k AFFECTED_BY Vulnerability WHERE k.namespace = 'production'`,
58-
`MATCH CloudResource WHERE type = 'aws_s3_bucket' RETURN *`,
59-
`MATCH Vulnerability AS v WHERE v.name = 'CVE-2024-1234' RETURN v`,
56+
`MATCH Vulnerability WHERE Vulnerability.severity = 'Critical' RETURN Vulnerability LIMIT 10`,
57+
`MATCH KubeWorkload AFFECTED_BY Vulnerability WHERE KubeWorkload.namespaceName = 'production' RETURN KubeWorkload, Vulnerability`,
58+
`MATCH CloudResource WHERE CloudResource.type =~ '(?i).*S3 Bucket.*' RETURN DISTINCT CloudResource`,
59+
`MATCH Vulnerability WHERE Vulnerability.name =~ '(?i)CVE-2024-1234' RETURN Vulnerability`,
6060
),
6161
),
6262
mcp.WithOutputSchema[map[string]any](),

package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ buildGoModule, versionCheckHook }:
22
buildGoModule (finalAttrs: {
33
pname = "sysdig-mcp-server";
4-
version = "0.5.2";
4+
version = "0.5.3";
55
src = ./.;
66
# This hash is automatically re-calculated with `just rehash-package-nix`. This is automatically called as well by `just bump`.
77
vendorHash = "sha256-jf/px0p88XbfuSPMry/qZcfR0QPTF9IrPegg2CwAd6M=";

0 commit comments

Comments
 (0)