Skip to content

Log warning on MCP protocol version mismatch #11

@jserv

Description

@jserv

Summary

The server does not inspect the client's protocolVersion during initialize. Per MCP spec, the server returns its version and the client decides whether to disconnect — but a mismatch should be logged for debugging.

Details

  • Fix: log a warning to stderr when the client's protocol version differs from the server's. No handshake behavior change.
  • Gate: E2E test verifies initialize succeeds with a mismatched version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitectural improvements

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions