You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SysQL tooling (generate_sysql, run_sysql) is now covered by
[@sysdig/secure-mcp-server](https://www.npmjs.com/package/@sysdig/secure-mcp-server),
so this server focuses solely on Sysdig Monitor. Keeping these tools
here duplicates surface area and blurs where they live.
Breaking change → release v3.0.0.
Changes:
- Removed `generate_sysql`/`run_sysql` tools (+ tests) and the
`GenerateSysql` client extension (+ integration test, mocks
regenerated).
- Cleaned up orphaned permissions `sage.exec` and `risks.read` (only
`metrics-data.read` remains).
- Updated docs (README, AGENTS, tools/README, TROUBLESHOOTING) and
`.claude/settings.local.json`.
- `just update`: bumped Go deps, flake.lock and base images.
Note: `QuerySysql*`/`GetSysqlSchema` stay in `client.gen.go` since
they're generated from the OpenAPI spec (DO NOT EDIT, they come back on
the next `just update`).
Copy file name to clipboardExpand all lines: AGENTS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ This document is a comprehensive guide for an AI agent tasked with developing an
4
4
5
5
## 1. Project Overview
6
6
7
-
**Sysdig MCP Server** is a Go-based Model Context Protocol (MCP) server that exposes Sysdig Monitor platform capabilities to LLMs. It provides tools for querying Kubernetes metrics and executing SysQL queries through multiple transport protocols (stdio, streamable-http, SSE). Sysdig Secure-specific tools live in the separate [@sysdig/secure-mcp-server](https://www.npmjs.com/package/@sysdig/secure-mcp-server) package.
7
+
**Sysdig MCP Server** is a Go-based Model Context Protocol (MCP) server that exposes Sysdig Monitor platform capabilities to LLMs. It provides tools for querying Kubernetes metrics through multiple transport protocols (stdio, streamable-http, SSE). Sysdig Secure-specific tools live in the separate [@sysdig/secure-mcp-server](https://www.npmjs.com/package/@sysdig/secure-mcp-server) package.
8
8
9
9
### 1.1. Quick Facts
10
10
11
11
| Topic | Details |
12
12
| --- | --- |
13
-
|**Purpose**| Expose vetted Sysdig Monitor workflows (plus shared SysQL tooling) to LLMs through MCP tools. |
13
+
|**Purpose**| Expose vetted Sysdig Monitor workflows to LLMs through MCP tools. |
Copy file name to clipboardExpand all lines: README.md
+2-22Lines changed: 2 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@
6
6
> **Breaking change — this MCP server now focuses on Sysdig Monitor.**
7
7
>
8
8
> Starting with the next major release, the dedicated Sysdig Secure tools (`list_runtime_events`, `get_event_info`, `get_event_process_tree`) have been removed from this server. For Sysdig Secure use cases, install the new **[@sysdig/secure-mcp-server](https://www.npmjs.com/package/@sysdig/secure-mcp-server)** package, which provides comprehensive coverage of Sysdig Secure capabilities.
9
-
>
10
-
> The SysQL tools (`generate_sysql`, `run_sysql`) remain available here because they can be used against both Monitor and Secure datasets.
11
9
12
10
---
13
11
@@ -35,7 +33,7 @@
35
33
36
34
## Description
37
35
38
-
This is an implementation of an [MCP (Model Context Protocol) Server](https://modelcontextprotocol.io/quickstart/server) that exposes Sysdig Monitor capabilities to LLMs, plus the cross-cutting SysQL tooling. New tools and functionalities will be added over time following semantic versioning. The goal is to provide a simple and easy-to-use interface for querying information from the Sysdig platform using LLMs.
36
+
This is an implementation of an [MCP (Model Context Protocol) Server](https://modelcontextprotocol.io/quickstart/server) that exposes Sysdig Monitor capabilities to LLMs. New tools and functionalities will be added over time following semantic versioning. The goal is to provide a simple and easy-to-use interface for querying information from the Sysdig platform using LLMs.
39
37
40
38
For Sysdig Secure-specific workflows, use the dedicated [@sysdig/secure-mcp-server](https://www.npmjs.com/package/@sysdig/secure-mcp-server).
41
39
@@ -44,7 +42,7 @@ For Sysdig Secure-specific workflows, use the dedicated [@sysdig/secure-mcp-serv
44
42
Get up and running with the Sysdig MCP Server quickly using our pre-built Docker image.
45
43
46
44
1.**Get your API Token**:
47
-
Go to your Sysdig instance and navigate to **Settings > Sysdig Monitor API** (or **Sysdig Secure API** — either works, since SysQL tools accept both). This token is required to authenticate requests to the Sysdig Platform (See the [Configuration](#configuration) section for more details).
45
+
Go to your Sysdig instance and navigate to **Settings > Sysdig Monitor API**. This token is required to authenticate requests to the Sysdig Platform (See the [Configuration](#configuration) section for more details).
48
46
49
47
2.**Configure your MCP client**:
50
48
@@ -142,19 +140,6 @@ The server dynamically filters the available tools based on the permissions asso
142
140
143
141
> **Note:** When a time window is provided, the underlying PromQL is wrapped in the aggregation appropriate for each tool (`avg_over_time`, `max_over_time`, `min_over_time`, `increase`, etc.) and evaluated at `end`. See [`internal/infra/mcp/tools/README.md`](./internal/infra/mcp/tools/README.md) for the per-tool aggregation table.
144
142
145
-
### Sysdig Monitor & Sysdig Secure
146
-
147
-
-**`generate_sysql`**
148
-
-**Description**: Generates a SysQL query from a natural language question.
149
-
-**Required Permission**: `sage.exec`
150
-
-**Sample Prompt**: "List top 10 pods by memory usage in the last hour"
151
-
-**Note**: The `generate_sysql` tool currently does not work with Service Account tokens and will return a 500 error. For this tool, use an API token assigned to a regular user account.
152
-
153
-
-**`run_sysql`**
154
-
-**Description**: Execute a pre-written SysQL query directly (use only when user provides explicit query).
@@ -234,9 +217,6 @@ To use the MCP server tools, your API token needs specific permissions on the Sy
234
217
235
218
For detailed instructions, see the official [Sysdig Roles Administration documentation](https://docs.sysdig.com/en/administration/roles-administration/).
236
219
237
-
>[!IMPORTANT]
238
-
> **Service Account Limitation:** The `generate_sysql` tool currently does not work with Service Account tokens and will return a 500 error. For this tool, use an API token assigned to a regular user account.
Copy file name to clipboardExpand all lines: internal/infra/mcp/tools/README.md
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,6 @@ The handler filters tools dynamically based on the Sysdig user's permissions. Ea
23
23
|`k8s_list_underutilized_pods_cpu_quota`|`tool_k8s_list_underutilized_pods_cpu_quota.go`| List Kubernetes pods with CPU usage below 25% of the quota limit. |`metrics-data.read`| "Show the top 10 underutilized pods by CPU quota in cluster 'production'" |
24
24
|`k8s_list_underutilized_pods_memory_quota`|`tool_k8s_list_underutilized_pods_memory_quota.go`| List Kubernetes pods with memory usage below 25% of the limit. |`metrics-data.read`| "Show the top 10 underutilized pods by memory quota in cluster 'production'" |
|`generate_sysql`|`tool_generate_sysql.go`| Convert natural language to SysQL via Sysdig Sage. |`sage.exec` (does not work with Service Accounts) | "Create a SysQL to list S3 buckets." |
31
-
|`run_sysql`|`tool_run_sysql.go`| Execute caller-supplied Sysdig SysQL queries safely. |`sage.exec`, `risks.read`| "Run the following SysQL…". |
32
-
33
26
> Dedicated Sysdig Secure tools (runtime events, event details, process trees) live in the separate [@sysdig/secure-mcp-server](https://www.npmjs.com/package/@sysdig/secure-mcp-server) package.
0 commit comments