Add Streamable HTTP transport, progress/notifications, and ping#17
Merged
Conversation
…g support Features: - StreamableHttpTransport client: single POST endpoint with session management - StreamableHttpServerWrapper: MCP 2025-03-26 compliant server - ServerSession::send_notification() and send_progress() for server-to-client messages - ping method support in all MCP handlers Implementation: - Client transport uses Mcp-Session-Id header for session tracking - Server wrapper manages sessions via thread-safe session map - Progress notifications sent via existing SSE infrastructure - All 7 handler variants support ping method Tests: - 59/59 unit tests passing - Streamable HTTP integration tests - Interop tests (T5: C++ server + Python fastmcp client) Spec: MCP 2025-03-26 (Streamable HTTP transport)
a82f282 to
e381c8d
Compare
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
ServerSession::send_notification()andsend_progress()Changes
Client
StreamableHttpTransport: Single POST endpoint at/mcpwithMcp-Session-Idheader for session managementServer
StreamableHttpServerWrapper: Thread-safe session management, request routingServerSession: New methods for sending notifications and progress updates to clientsHandler
pingmethod support in all handler variants (ToolManager, Server, McpApp, ProxyApp, sampling)Test Plan