Skip to content

Support multiple MCP protocol versions #1746

Description

@maxisbey

Summary

Handle different MCP protocol versions gracefully, particularly for proxy/gateway use cases where servers may be on older spec versions.

Problem

  • Proxies connecting to third-party MCP servers may encounter older protocol versions
  • Per spec, if mcp-protocol-version header is not set in HTTP transport, SDK should assume 2025-03-26
  • Currently unclear how version mismatches are handled

Goal

  • Graceful handling of protocol version negotiation
  • Clear behavior when connecting to servers on different versions
  • Support for proxies that need to bridge different versions

AI Disclaimer

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featureenhancementRequest for a new feature that's not currently supportedv2Affects the v2 line (2.x on main)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions