Currently, the MCP Hub server endpoint at /mcp only supports Server-Sent Events (SSE) for client connections, as implemented in src/mcp/server.js using SSEServerTransport.
However, the client-side MCPConnection in src/MCPConnection.js is already designed to prefer a generic StreamableHTTPClientTransport and only falls back to SSE. This creates a mismatch where the hub's client capabilities are more advanced than its server's.
Additionally, the project's README.md states that streamable-http is the primary transport protocol, which can be misleading for users trying to connect clients that might not support SSE or would prefer a different streaming mechanism.
This feature request is to implement a StreamableHTTPServerTransport for the /mcp endpoint to align with the client's capabilities and the project's documentation. This would make the hub more flexible and compliant with its own stated standards.
Currently, the MCP Hub server endpoint at
/mcponly supports Server-Sent Events (SSE) for client connections, as implemented insrc/mcp/server.jsusingSSEServerTransport.However, the client-side
MCPConnectioninsrc/MCPConnection.jsis already designed to prefer a genericStreamableHTTPClientTransportand only falls back to SSE. This creates a mismatch where the hub's client capabilities are more advanced than its server's.Additionally, the project's
README.mdstates thatstreamable-httpis the primary transport protocol, which can be misleading for users trying to connect clients that might not support SSE or would prefer a different streaming mechanism.This feature request is to implement a
StreamableHTTPServerTransportfor the/mcpendpoint to align with the client's capabilities and the project's documentation. This would make the hub more flexible and compliant with its own stated standards.