Skip to content

Commit 9ef7f2f

Browse files
committed
Add Claude Code example config and docs
1 parent 53793f2 commit 9ef7f2f

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,16 @@ The server will start on `http://0.0.0.0:8080` by default (configurable via `ser
144144
Add the MCP server to Claude Code using HTTP transport:
145145

146146
```bash
147-
claude mcp add stackrox \
148-
--name "StackRox MCP Server" \
149-
--transport http \
150-
--url http://localhost:8080
147+
claude mcp add --transport http stackrox-mcp http://localhost:8080/mcp \
148+
--header "Authorization: Bearer <YOUR_STACKROX_API_TOKEN>"
151149
```
152150

153151
#### Stdio Transport
154152

155153
Add the MCP server to Claude Code using stdio transport with static authentication:
156154

157155
```bash
158-
claude mcp add --transport stdio stackrox \
156+
claude mcp add --transport stdio stackrox-mcp \
159157
--env STACKROX_MCP__SERVER__TYPE=stdio \
160158
--env STACKROX_MCP__CENTRAL__AUTH_TYPE=static \
161159
--env STACKROX_MCP__CENTRAL__API_TOKEN="${ROX_TOKEN}" \
@@ -177,7 +175,7 @@ claude mcp list
177175
Get details for a specific server:
178176

179177
```bash
180-
claude mcp get stackrox
178+
claude mcp get stackrox-mcp
181179
```
182180

183181
Within a Claude Code session, use the `/mcp` command to view available tools from connected servers.
@@ -186,10 +184,24 @@ Within a Claude Code session, use the `/mcp` command to view available tools fro
186184

187185
Once connected, interact with the tools using natural language:
188186

189-
**List all clusters:**
187+
#### List all clusters
190188
```
191-
You: "Can you list all the clusters from StackRox?"
192-
Claude: [Uses list_clusters tool to retrieve cluster information]
189+
Can you list all the clusters secured by StackRox?
190+
```
191+
192+
#### Check for a specific CVE
193+
```
194+
Is CVE-2021-44228 detected in any of my clusters?
195+
```
196+
197+
#### CVE analysis in specific namespace
198+
```
199+
Check if CVE-2021-44228 is present in deployments in namespace "backend"
200+
```
201+
202+
#### Filter by cluster
203+
```
204+
Show me all deployments affected by CVE-2021-44228 in the dev-cluster
193205
```
194206

195207
## Container Images

0 commit comments

Comments
 (0)