fix(mcp): fix streamable HTTP transport protocol compliance#190
Merged
everettjf merged 4 commits intomicroclaw:mainfrom Mar 5, 2026
Merged
fix(mcp): fix streamable HTTP transport protocol compliance#190everettjf merged 4 commits intomicroclaw:mainfrom
everettjf merged 4 commits intomicroclaw:mainfrom
Conversation
- 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>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
@everettjf I tried using streaming http mcp tools and they didnt work. I started fixing the implementation in the codebase, but quickly ran into more issues. So I replaced the implementation with the library one. MCP is not simple to implement, so many tricky little cases. Now it works great with my http servers (fast mcp python servers) |
Contributor
|
Good job. Thank you :) |
Contributor
|
@tdonovic Codex did a quick optimization:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rmcpcrate for both stdio (child process) and streamable HTTP transportsrmcpTest plan
🤖 Generated with Claude Code