Skip to content

SEP-2575: error codes contradict the draft schema and conformance suite #3091

Closed

Description

@DaleSeo

What's broken?

The spec is ambiguous or self-contradictory

Where in the spec or docs?

https://modelcontextprotocol.io/seps/2575-stateless-mcp

What should happen?

The SEP-2575 uses different error codes from the draft schema and conformance suite:

Error SEP Draft schema Conformance Suite
MISSING_REQUIRED_CLIENT_CAPABILITY -32003 -32021 -32021
UNSUPPORTED_PROTOCOL_VERSION -32004 -32022 -32022

https://modelcontextprotocol.io/seps/2575-stateless-mcp#unsupported-protocol-versions

Image

https://modelcontextprotocol.io/seps/2575-stateless-mcp#missing-required-capabilities

Image

https://modelcontextprotocol.io/specification/draft/schema#unsupported_protocol_version

Image

https://modelcontextprotocol.io/specification/draft/schema#missing_required_client_capability

Image

What actually happens?

The accepted SEP still shows the original low-range allocations, while the draft schema and conformance suite use the renumbered values. An SDK following the SEP literally would emit errors that fail current conformance tests. Updating both values would give SDK implementers one consistent source of truth.

Anything else?

The values were intentionally renumbered in f505a6c to avoid collisions with implementation-defined server errors:

  • MISSING_REQUIRED_CLIENT_CAPABILITY: -32003 → -32021
  • UNSUPPORTED_PROTOCOL_VERSION: -32004 → -32022

The draft conformance suite currently validates the new values. This surfaced while implementing and reviewing SEP-2575 support in modelcontextprotocol/rust-sdk#973.

Activity

  1. added
    bug
    on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions