Refactor/update mcp spec #102
Merged
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 sugg
2C7E
estions 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.
This PR aims to update the MCP connector with the latest spec (2025-06-18) with Streamable HTTP Transport Protocol:
Summary
Adds complete MCP (Model Context Protocol) server and client implementation supporting the latest 2025-06-18 Streamable HTTP specification with automatic fallback to legacy protocols.
Key Changes
-New Transport Protocol: Implements Streamable HTTP (2025-06-18) with single endpoint, session management, and protocol headers
-Automatic Fallback: Seamless fallback from 2025-06-18 to 2024-11-05 HTTP+SSE when servers don't support newer protocol
-Session Management: Server-generated sessions with mcp-session-id headers for stateful operations
-Protocol Compliance: Supports 2025-06-18, 2025-03-26, and 2024-11-05 specifications with proper JSON-RPC 2.0 handling
The examples have also been adapted to the new spec.
Fixes elvankonukseven/GSoC-Progress-Tracker#6