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
feat: add opt-in stateless mode for streamable-http transport (#73)
## Summary
- Add `SYSDIG_MCP_STATELESS` env var (default `false`) to enable
stateless mode for the `streamable-http` transport
- When enabled, each HTTP request is self-contained — no `initialize`
handshake or `Mcp-Session-Id` tracking required
- Required for AWS Bedrock AgentCore compatibility, where
`invoke-agent-runtime` is a single-shot HTTP POST with no session
continuity
## AgentCore deployment config
```bash
SYSDIG_MCP_TRANSPORT=streamable-http
SYSDIG_MCP_STATELESS=true
SYSDIG_MCP_LISTENING_PORT=8000
SYSDIG_MCP_MOUNT_PATH=/mcp
```
## Test plan
- [x] `just check` passes (fmt, lint, 142/142 specs)
- [x] Manual test: `tools/list` succeeds without prior `initialize` when
stateless
- [x] Manual test: no `Mcp-Session-Id` header returned in stateless mode
- [x] Manual test: `mcp-remote` connects and proxies through stateless
server
- [x] Default behavior (`SYSDIG_MCP_STATELESS=false`) unchanged — not a
breaking change
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,7 @@ You can also set the following variables to override the default configuration:
213
213
- `SYSDIG_MCP_LOGLEVEL`: Log Level of the application (`DEBUG`, `INFO`, `WARNING`, `ERROR`). Defaults to: `INFO`
214
214
- `SYSDIG_MCP_LISTENING_PORT`: The port for the server when it is deployed using remote protocols (`streamable-http`, `sse`). Defaults to: `8080`
215
215
- `SYSDIG_MCP_LISTENING_HOST`: The host for the server when it is deployed using remote protocols (`streamable-http`, `sse`). Defaults to all interfaces (`:port`). Set to `127.0.0.1`for local-only access.
216
+
- `SYSDIG_MCP_STATELESS`: Enable stateless mode for`streamable-http` transport, where each request is self-contained with no session tracking (useful for AWS Bedrock AgentCore). Defaults to: `false`.
216
217
217
218
You can find your API token in the Sysdig Secure UI under **Settings > Sysdig Secure API**. Make sure to copy the token as it will not be shown again.
0 commit comments