You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rust dataplane does not currently advertise or proxy Sampling. Sampling is deprecated in MCP 2026-07-28; this work is a deliberate compatibility exception for existing counterparts during the deprecation window. It must not add legacy protocol or session behavior, and the gateway must not become an LLM provider.
Gateway work
Carry the per-request ClientCapabilities.sampling declaration and its tools/context sub-capabilities through the modern request path.
Proxy sampling/createMessage as an MRTR inputRequest, and route the corresponding inputResponses entry back to the originating upstream request.
Part of #5677
Split from #5690.
Spec: https://modelcontextprotocol.io/specification/2026-07-28/client/sampling
SEP: https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging
Depends on: #5682 for the generic Multi Round-Trip Requests (MRTR) transport and retry flow.
Context
The Rust dataplane does not currently advertise or proxy Sampling. Sampling is deprecated in MCP
2026-07-28; this work is a deliberate compatibility exception for existing counterparts during the deprecation window. It must not add legacy protocol or session behavior, and the gateway must not become an LLM provider.Gateway work
ClientCapabilities.samplingdeclaration and itstools/contextsub-capabilities through the modern request path.sampling/createMessageas an MRTRinputRequest, and route the correspondinginputResponsesentry back to the originating upstream request.includeContext: "thisServer"and"allServers"to omission or"none"when proxying.Acceptance criteria
sampling.toolsis declared.includeContextvalues are normalized and covered by tests.