Files
microclaw/mcp.example.json
tdonovic 92d3c7a4a8 fix(mcp): fix streamable HTTP transport protocol compliance (#190)
* fix(mcp): fix streamable HTTP transport protocol compliance

- Fix DEFAULT_PROTOCOL_VERSION typo: 2025-11-05 → 2024-11-05 (non-existent version caused 400s on servers that validate it)
- Parse SSE-framed response bodies (data: ...) returned by streamable HTTP servers per MCP spec
- Capture mcp-session-id from initialize response and send it on all subsequent requests
- Include response body in HTTP notification error messages for easier debugging
- Add debug logging for raw HTTP MCP responses

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(mcp): switch to rmcp crate for streamable HTTP and stdio transport

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(mcp): restore timeout/retry/protocol config with rmcp client

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: everettjf <everettjf@live.com>
2026-03-05 08:39:32 -08:00

19 lines
429 B
JSON

{
"defaultProtocolVersion": "2024-11-05",
"mcpServers": {
"filesystem": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
},
"remote": {
"transport": "streamable_http",
"endpoint": "http://127.0.0.1:8080/mcp",
"headers": {
"Authorization": "Bearer REPLACE_ME"
},
"request_timeout_secs": 60
}
}
}