|
17 | 17 | - [Requirements](#requirements)
|
18 | 18 | - [UV Setup](#uv-setup)
|
19 | 19 | - [Configuration](#configuration)
|
| 20 | + - [API Permissions](#api-permissions) |
20 | 21 | - [Running the Server](#running-the-server)
|
21 | 22 | - [Docker](#docker)
|
22 |
| - - [K8s Deployment](#k8s-deployment) |
23 | 23 | - [UV](#uv)
|
24 | 24 | - [Client Configuration](#client-configuration)
|
25 | 25 | - [Authentication](#authentication)
|
@@ -157,6 +157,32 @@ You can find your API token in the Sysdig Secure UI under **Settings > Sysdig Se
|
157 | 157 |
|
158 | 158 | You can set these variables in your shell or in a `.env` file.
|
159 | 159 |
|
| 160 | +### API Permissions |
| 161 | +
|
| 162 | +The minimum permissions needed for the tools to make the necessary API calls are the following: |
| 163 | +
|
| 164 | +```bash |
| 165 | +"cli-scanner": ["secure.vm.cli-scanner.exec"], |
| 166 | +"threat-detection": ["policy-events.read"], |
| 167 | +"sysql": ["sage.exec","risks.read"], |
| 168 | +``` |
| 169 | +
|
| 170 | +We advise you to create a separate role for your MCP server ideally a SA. More information on the official [doc for roles-administration](https://docs.sysdig.com/en/administration/roles-administration/) and how to attach it to the SA and/or team user. |
| 171 | +
|
| 172 | +The permissions needed for the Secure platform are: |
| 173 | +
|
| 174 | +- Threats: "Policy Events" Read |
| 175 | +- Risks: "Access to risk feature" Read |
| 176 | +- Vulnerability Management: "CLI Execution" EXEC |
| 177 | +- Settings: "API Access Token" View, Read, Edit |
| 178 | +- Sage: "Use Sage chat" EXEC |
| 179 | +
|
| 180 | +When selecting the above some other permissions dependent will be added. |
| 181 | +
|
| 182 | +>[!IMPORTANT] |
| 183 | +> When using a SA token is expected that the `generate_and_run_sysql` will give a 500 error, to use that tool you should use a token assigned to a user for now. |
| 184 | +
|
| 185 | +
|
160 | 186 | ## Running the Server
|
161 | 187 |
|
162 | 188 | You can run the MCP server using either Docker, `uv` or install it in your K8s cluster with helm.
|
|
0 commit comments