Implement MCP 2025-06-18 specification compliance
- Replace cookie-based session with Mcp-Session-Id header per MCP spec - Add MCP-Protocol-Version header validation (supports 2025-06-18 only) - Require Mcp-Session-Id header for non-initialize requests per spec - Set Mcp-Session-Id response header during initialization - Update CORS headers to include MCP-specific headers This ensures full compliance with MCP Streamable HTTP transport specification: - Proper session management via headers instead of cookies - Protocol version negotiation and validation - Session ID validation for security - Standards-compliant header handling
Showing
1 changed file
with
27 additions
and
2 deletions
-
Please register or sign in to post a comment