Skip to content

[Server][Protocol] SEP-2260: Scope server-to-client requests to in-flight client requests #343

Closed

Description

@chr-hertel

Implements SEP-2260 for the MCP Spec 2026-07-28 release.

Tracked by umbrella #334.

Spec summary

Servers can only send requests to clients (sampling, elicitation, roots/list) as a child of an in-flight client request. Unsolicited server-to-client requests are removed in preparation for stateless transports.

PHP SDK changes

  • src/Server/Protocol.php — Fiber-based server-initiated requests must validate they are running inside a client request's Fiber context. Block/error on unsolicited dispatch.
  • src/Schema/Request/CreateSamplingMessageRequest.php, ElicitRequest.php, ListRootsRequest.php — require/encode the originating client request ID in _meta (verify final spec field name).
  • src/Client/Protocol.php — client must reject server-initiated requests with no associated client request ID.
  • Update Fiber suspension docs in CLAUDE.md and docs/server-client-communication.md.

Notifications remain unaffected (this is requests-only).

Breaking change. Touches public Fiber suspension behavior used by tool authors.

Related

Activity

  1. added
    Server
    Client
    breaking change
    P0
    improves spec compliance
    enhancement
    on May 26, 2026
  2. added
    2026-07-28
    on May 26, 2026
  3. removed
    P0
    on Aug 19, 2026
  4. chr-hertel commented on Aug 19, 2026

    @chr-hertel
    MemberAuthor

    Closed by the same mechanism as #342 (#446, #449): readNotification() rejects any unsolicited server-initiated request outright, so there's no unscoped server→client request path left to guard against.

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

    2026-07-28ClientServerbreaking changeenhancementimproves spec compliance

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions