sampling support in MCP clients
Which MCP clients support sampling, and how each claim is known. The protocol introduced it in 2024-11-05. It was deprecated in 2026-07-28.
Has sampling.context, sampling.tools.
Support
| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| goose | host | ○ unsupported | read, declared | 2025-03-26, 2026-07-28 |
Removed in 7b68b47ff (2026-09-22, #12193). GooseClient has no create_message and declares no sampling capability, so rmcp 3.11.0's default handler answers method not found. |
| Codex CLI | host | ○ unsupported | read | 2025-06-18 |
Not in the declared capabilities and no create_message handler. The word appears in the codebase only for Codex's own model calls. |
| opencode | host | ○ unsupported | read | 2025-11-25 |
Not declared, and no sampling/createMessage handler is registered. The commented-out key from the old client is gone. |
| Cline * | host | ○ unsupported | read | 2024-11-05, 2025-11-25 |
Both surfaces initialize with an empty capabilities object by default, and no CreateMessageRequestSchema handler exists. |
| fast-agent | framework | ● full | read | 2026-07-28 |
Declared and served by default: auto_sampling is on, so a server gets a sampling capability unless the config turns it off. The model is the server entry's sampling.model, else the agent's model, else the global default; with none of those the request fails with an internal error rather than falling back. A failure is returned as ErrorData, so a sampling problem does not break the connection. |
| OpenClaw * | host | ○ unsupported | read | 2025-11-25 |
Not declared and not implemented for configured servers. A sampling/createMessage handler exists only on the native projection bridge, registered when a borrowing caller supplies a sampling capability, and nothing in production acquires that view. |
| Hermes Agent | host | ● full | read, declared | 2025-11-25 |
Declared and served by default: sampling.enabled defaults to true on the server entry. Requests are rate-limited, ten a minute by default, audited to the log with model and token counts, and a failure is returned as ErrorData. A docstring records sampling as deprecated upstream under SEP-2577 and freezes the handler. |
| Kilo Code * | host | ○ unsupported | read | 2025-11-25 |
Commented out in the capability object, against opencode issue 11948. Kilo kept opencode's comments and links. |
| Mastra | framework | ○ unsupported | read, declared | 2026-07-28 |
Not declared, and no sampling/createMessage handler is registered. MCPClientCapabilities admits only elicitation and extensions, and its comment calls sampling deprecated and unsupported. 1.x had it; the 2.0.0 changelog lists it as removed. |
| fx (native engine) | host | ○ unsupported | read | 2025-11-25, 2026-07-28 |
Never declared. A 2026 input_required round that asks for sampling ends the call as unsupported input. A 2025 sampling/createMessage request gets -32601. |
| libfx (fx JavaScript adapter) * | framework | ○ unsupported | read | 2025-11-25 |
libfx registers no sampling handler and does not touch the client's capabilities. A Client constructed without options declares none: the probe's initialize capture shows "capabilities": {}. An application can register its own handler on its client. libfx offers its model to no such handler. |
| eve | framework | ○ unsupported | read | 2026-07-28 |
Not declared: the capabilities object is {}. The SDK answers sampling/createMessage with -32601. On 2026-07-28 an input request other than form elicitation fails the call. |
| pi * | host | ○ unsupported | read | 2025-11-25 |
Not declared. The client registers handlers for ping and roots/list only, so sampling/createMessage is answered with -32601 Method not found. The pi-mcp README lists sampling as outside the initial core. |
| Strands Agents | framework | ○ unsupported | read, declared | 2026-07-28 |
ClientSession is built with no sampling callback and MCPClient has no parameter for one, so the capability is not declared and the SDK answers a request with an error. TypeScript: the capability object has no sampling key, and a task input request for sampling throws CapabilityNotSupported. |
| crewAI * | framework | ○ unsupported | read | 2025-11-25 |
Not declared. No sampling_callback is passed, so the SDK leaves sampling out of the capabilities and answers a sampling/createMessage request with an Invalid Request error, "Sampling not supported". |
| deepagents * | framework | ○ unsupported | read, declared | 2025-11-25 |
Declared to every server and not served. FastMCP's ProxyClient installs a forwarding handler by default, and the handler relays sampling/createMessage to the in-process router session, whose client deepagents-code builds with no handler. On deepagents-code 0.2.5 with fastmcp 4.1.2 and mcp 2.2.0 a server that sent sampling/createMessage got a JSON-RPC error: "Cannot send 'sampling/createMessage': this transport context has no back-channel for server-initiated requests." The loader code is the same at 87f6080d. |
| Google ADK (Python) | framework | ○ unsupported | read | 2026-07-28 |
On this path a server asks for sampling inside an InputRequiredResult. ADK calls call_tool without allow_input_required, the SDK raises, and the model receives an error dict. An application sampling_callback is still advertised in each request and is not called for tool calls. Read from source, not run. |
| Microsoft Agent Framework | framework | ◐ partial | read | 2026-07-28 |
Every framework-owned connection declares sampling, because MCPTool always passes its sampling_callback and the SDK declares the capability for any callback that is not its default. A default construction has no chat client, and the callback answers -32603 'No chat client available'. With a chat client and no sampling_approval_callback it answers -32600 and logs a warning. With both, the request goes to the chat client with maxTokens capped at 4096 and at most 25 requests per session. The framework marks its own sampling support deprecated. The probe's wire capture at 1.25.0 shows clientCapabilities {"sampling":{}} on every request. .NET: the clients the framework builds register no SamplingHandler and declare none. |
| Google Antigravity | host | ○ unsupported | declared | 2025-06-18 |
|
| Claude Code | host | ○ unsupported | declared | 2025-06-18 |
|
| Claude.ai | host | ○ unsupported | declared | 2025-06-18 |
|
| ChatGPT | host | ○ unsupported | declared | 2025-06-18 |
|
| Hugging Face Chat UI | host | ○ unsupported | read | 2026-07-28 |
Not declared and no handler. On a 2026-07-28 connection an input_required round that asks for sampling/createMessage is refused as an unsupported input request. |
| Cursor * | host | ○ unsupported | declared | 2025-06-18 |
|
| Visual Studio Code * | host | ◐ partial | read, declared | 2025-06-18, 2025-11-25 |
Declared as a bare sampling: {} on every connection. The first request from a server asks the user, separately for requests made during a tool call and outside one, and chat.mcp.serverSampling can pre-approve servers and pick allowed models. Text, image and audio parts go to the chosen chat model. maxTokens, temperature and stopSequences are not passed, and the reply is text only. |
| n8n * | host | ○ unsupported | read | 2025-11-25 |
Every client is constructed with capabilities: {}. |
| Langflow * | host | ○ unsupported | read | 2025-11-25 |
Not declared. No sampling_callback is passed, so the SDK leaves sampling out of the capabilities and answers sampling/createMessage with an Invalid Request error. |
| mcp-use | framework | ◇ opt-in | read | 2026-07-28 |
Declared only when onSampling is passed to MCPClient, to a config root or to a server entry. The callback answers sampling/createMessage, and on a 2026-07-28 connection the SDK uses the same handler for input_required rounds. MCPAgent passes no callback. The option is marked deprecated in the source. Python: sampling_callback on MCPClient. |
| Zed * | host | ○ unsupported | read | 2025-11-25 |
ClientCapabilities is built with sampling: None. Server-to-client requests have no handlers. |
| TypeScript SDK Client | sdk | ◇ opt-in | read | 2025-11-25 |
Not declared by default. The application passes capabilities.sampling and registers setRequestHandler('sampling/createMessage'). The SDK validates the request and the handler result against the negotiated era, including the tool-use result shape when the request carries tools. The class comment marks sampling deprecated as of 2026-07-28 (SEP-2577). |
| Warp | host | ○ unsupported | read | 2026-07-28 |
Not declared. A sampling request reaches rmcp's default create_message, which returns method not found. |
| Reachy Mini conversation app | host | ○ unsupported | read | 2026-07-28 |
The SDK Client is built from the transport alone, with no sampling_callback, so the SDK declares no sampling capability. |
Not recorded for Codex Desktop. A missing record is not the same as unsupported.
Rows describe each client on 2026-07-28. A row marked * is for the newest revision the client speaks, because it cannot negotiate 2026-07-28: 2025-11-25 for 12 clients.
Tiers are not ranked. read is a source read at a pinned commit, verified is a probe run, observed is telemetry, and declared is what the client or a curated list says. "Through" names the parent capability whose evidence a row rests on when it has none of its own.
By protocol revision
On 2025-11-25 these clients record a different row. The other clients' rows above hold on 2025-11-25 as well.
| Client | On 2026-07-28 |
On 2025-11-25 |
Notes on 2025-11-25 |
|---|---|---|---|
| Google ADK (Python) | ○ unsupported | ○ unsupported | Not declared by a default construction, and ADK ships no handler. McpToolset takes an optional sampling_callback and sampling_capabilities and passes them to ClientSession, and the SDK declares sampling when the callback is present. The handler and the model it calls are the application's. |
goose, Hermes Agent, Google Antigravity, Claude Code, Claude.ai, ChatGPT, Warp, Reachy Mini conversation app have one set of rows for every revision they speak, not yet split by revision.
The matrix on 2025-11-25 shows every capability on that revision.
Where the tiers disagree
- deepagents is recorded as unsupported. declared at
2025-11-25says full: canimcp-probe, 2026-11-08. The initialize request in probe/runs/deepagents@0.7.34+code-0.2.5/default/both-http/tools.result.app_only/wire.jsonl, from deepagents-code 0.2.5 on fastmcp 4.1.2 and mcp 2.2.0, declares sampling: {}.
Evidence
- read at
2026-07-28: aaif-goose/goose atc546eaa1crates/oi-kit-agent/src/mcp/client.rs:GooseClient, 2026-11-27 - declared at
2025-03-26says unsupported: apify/mcp-client-capabilities at4406120, 2026-02-02. No sampling key on the goose record.
- read at
2025-06-18: openai/codex at18c09f20codex-rs/codex-mcp/src/rmcp_client.rs:mcp_initialize_request_params, 2026-11-27
- read at
2025-11-25: anomalyco/opencode at5d1f7884packages/core/src/mcp/client.ts:initialize, 2026-11-27
- read at
2025-11-25: cline/cline atcbc7d141apps/vscode/src/services/mcp/McpHub.ts:McpHub.connectToServer, 2026-11-27 - read at
2024-11-05: cline/cline atcbc7d141sdk/packages/core/src/extensions/mcp/client.ts:StdioMcpClient.connect, 2026-11-27
- read at
2026-07-28: evalstate/fast-agent at16f8bb65src/fast_agent/mcp/client_callback_runtime.py:MCPClientCallbackRuntime, 2026-11-27 - read at
2026-07-28: evalstate/fast-agent at16f8bb65src/fast_agent/config.py:MCPClientSettings, 2026-11-27. auto_sampling defaults to true. - read at
2026-07-28: evalstate/fast-agent at16f8bb65src/fast_agent/mcp/sampling.py:sample, 2026-11-27
- read at
2025-11-25: openclaw/openclaw atb607eb7bsrc/agents/mcp-metadata.ts:buildMcpClientCapabilities, 2026-11-27 - read at
2025-11-25: openclaw/openclaw atb607eb7bsrc/node-host/mcp.ts:connectionAdmission, 2026-11-27 - read at
2025-11-25: openclaw/openclaw atb607eb7bsrc/agents/native-mcp-runtime-client.ts:createNativeMcpClientBridge, 2026-11-27
- read at
2025-11-25: NousResearch/hermes-agent at77236c4atools/mcp_tool_server_run.py:MCPServerRunMixin._prepare_run, 2026-11-27 - read at
2025-11-25: NousResearch/hermes-agent at77236c4atools/mcp_tool_sampling.py:SamplingHandler, 2026-11-27 - declared at
2025-11-25says full: canimcp-probe, 2026-11-08. initialize.capabilities on the wire was {"sampling":{},"elicitation":{"form":{},"url":{}}} (wire.jsonl).
- read at
2025-11-25: Kilo-Org/kilocode at3c7f2659packages/opencode/src/mcp/index.ts:CLIENT_OPTIONS, 2026-11-27
- read at
2026-07-28: mastra-ai/mastra at0a31d4d0packages/mcp/src/client/types.ts:MCPClientCapabilities, 2026-11-27 - read at
2026-07-28: mastra-ai/mastra at0a31d4d0packages/mcp/src/client/client.ts:InternalMastraMCPClient, 2026-11-27. The capability object and the only request handler the client registers. - read at
2026-07-28: mastra-ai/mastra at0a31d4d0packages/mcp/CHANGELOG.md:Major Changes, 2026-11-27 - declared at
2026-07-28says unsupported: canimcp-probe, 2026-11-08. The clientCapabilities sent with server/discover and every later request were {"extensions":{"io.modelcontextprotocol/ui":{}}} (wire.jsonl). The probe ran @mastra/mcp 2.9.0-alpha.1; the capability code is the same at bb984550.
- read at
2026-07-28: vercel-labs/fx atb4502b01src/core/mcp_host/runtime.zig:declaredCapabilities, 2026-11-27 - read at
2026-07-28: vercel-labs/fx atb4502b01src/mcp/protocol/mrtr.zig:supported, 2026-11-27 - read at
2026-07-28: vercel-labs/fx atb4502b01src/core/mcp/mrtr.zig, 2026-11-27. The host names sampling and roots as unsupported methods. - read at
2025-11-25: vercel-labs/fx atb4502b01src/mcp/server.zig:Server, 2026-11-27
libfx (fx JavaScript adapter):
- read at
2025-11-25: vercel-labs/fx atb4502b01sdk/types/mcp.d.ts, 2026-11-27 - read at
2025-11-25: vercel-labs/fx atb4502b01sdk/mcp.js:createMcpAdapter, 2026-11-27
eve:
- read at
2026-07-28: vercel/eve at4545806dpackages/eve/src/runtime/connections/mcp-client.ts:McpConnectionClient.createClient, 2026-11-27. createMCPClient is called with protocolVersionDiscovery and transport only. No capabilities, name or handlers are passed. - read at
2026-07-28: @ai-sdk/mcpdist/index.js, 2026-11-16. @ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches. clientCapabilities defaults to {}. - read at
2026-07-28: @ai-sdk/mcpdist/index.js, 2026-11-16. @ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches. onRequestMessage answers ping, handles elicitation/create when a handler is registered, and returns -32601 for every other server request. - read at
2026-07-28: @ai-sdk/mcpdist/index.js, 2026-11-16. @ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches.
pi:
- read at
2025-11-25: earendil-works/pi atcdf74062packages/mcp/src/client.ts:McpClient,McpClient.handleRequest, 2026-11-27 - read at
2025-11-25: earendil-works/pi atcdf74062packages/coding-agent/src/extensions/mcp/runtime.ts:McpServerConnection.connectOnce, 2026-11-27 - read at
2025-11-25: earendil-works/pi atcdf74062packages/mcp/README.md:Supported protocol surface, 2026-11-27
- read at
2026-07-28: strands-agents/harness-sdk at78855cadstrands-py/src/strands/tools/mcp/mcp_client.py:MCPClient._async_background_thread, 2026-11-27 - read at
2026-07-28: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 2.3.0. sampling is declared only when a sampling callback was passed. - read at
2026-07-28: strands-agents/harness-sdk at78855cadstrands-ts/src/mcp/client.ts:McpClient._createClient,McpClient.sampling, 2026-11-27. TypeScript binding. - declared at
2026-07-28says unsupported: canimcp-probe, 2026-11-08. The server/discover request and every later request carried io.modelcontextprotocol/clientCapabilities {} and clientInfo {"name":"mcp","version":"0.1.0"} (wire.jsonl). The server answered discover, so no initialize was sent.
- read at
2025-11-25: crewAIInc/crewAI at77237aeclib/crewai/src/crewai/mcp/client.py:MCPClient.connect, 2026-11-27. ClientSession is constructed with the two streams and nothing else: no callbacks, no message_handler, no client_info. - read at
2025-11-25: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 1.30.0 wheel. The default callback and the capability built from it.
- declared at
2025-11-25says full: canimcp-probe, 2026-11-08. The initialize request in probe/runs/deepagents@0.7.34+code-0.2.5/default/both-http/tools.result.app_only/wire.jsonl, from deepagents-code 0.2.5 on fastmcp 4.1.2 and mcp 2.2.0, declares sampling: {}. - read at
2025-11-25: langchain-ai/deepagents atc84eb7f1libs/code/deepagents_code/mcp_tools.py:connect, 2026-11-27. The per-server client is StatefulProxyClient(transport=..., log_handler=...). No mode, client_info, roots, sampling_handler, elicitation_handler or message_handler is passed. The calls on it are connect and list_tools. - read at
2025-11-25: langchain-ai/deepagents atc84eb7f1libs/code/deepagents_code/mcp_tools.py:_mount_backends, 2026-11-27. Each connected client is wrapped with create_proxy and mounted on a FastMCP router. The tools call through FastMCPClient(router), built with no handlers. - read at
2025-11-25: PrefectHQ/fastmcpfastmcp/server/providers/proxy.py, 2026-11-16. fastmcp-slim 4.1.2, from the PyPI wheel. ProxyClient sets mode to legacy when none is given and installs forwarding handlers for roots, sampling, elicitation, logging and progress. - read at
2025-11-25: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 2.3.0, from the PyPI wheel. A capability is declared for each callback that is not the SDK default: sampling, elicitation with form and url, roots with listChanged true.
- read at
2026-07-28: google/adk-python at03725e8csrc/google/adk/tools/mcp_tool/mcp_tool.py:McpTool._run_async_impl,McpTool._call_tool_on_session, 2026-11-27. call_tool is called without allow_input_required. - read at
2026-07-28: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 2.3.0. An InputRequiredResult raises RuntimeError unless allow_input_required is true.
- read at
2026-07-28: microsoft/agent-framework atf8ade3e9python/packages/core/agent_framework/_mcp.py:MCPTool._connect_on_owner, 2026-11-27. sampling_callback is passed on every Client construction. - read at
2026-07-28: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 2.3.0 wheel. sampling is declared when the callback is not the SDK default. - read at
2026-07-28: microsoft/agent-framework atf8ade3e9python/packages/core/agent_framework/_mcp.py:MCPTool.sampling_callback, 2026-11-27. The three refusals. - read at
2026-07-28: microsoft/agent-framework atf8ade3e9python/packages/core/agent_framework/_mcp.py, 2026-11-27. Default caps and the deprecation message. - read at
2026-07-28: microsoft/agent-framework atf8ade3e9dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Mcp/DefaultMcpToolHandler.cs, 2026-11-27. .NET: McpClientOptions with no Handlers. - read at
2026-07-28: modelcontextprotocol/csharp-sdk at6fa38259src/ModelContextProtocol.Core/Client/McpClientImpl.cs, 2026-11-16. ModelContextProtocol 2.2.0 (tag v2.2.0). Sampling is declared only when a SamplingHandler is set.
- declared at
2025-06-18: apify/mcp-client-capabilities at2b28e97, 2026-11-11. No sampling key on the antigravity-client record.
- declared at
2025-06-18: apify/mcp-client-capabilities at2b28e97, 2026-11-15. No sampling key on the claude-code record.
- declared at
2025-06-18: apify/mcp-client-capabilities at2b28e97, 2026-11-15. No sampling key on the claude-ai record.
- declared at
2025-06-18: apify/mcp-client-capabilities at2b28e97, 2026-11-15. No sampling key on the ChatGPT record.
- read at
2026-07-28: huggingface/chat-ui at7fc0f672src/lib/server/mcp/client.ts:mcpClientCapabilities,createMcpClient, 2026-11-27 - read at
2026-07-28: huggingface/chat-ui at7fc0f672src/lib/server/mcp/elicitation.ts:openDurableElicitation, 2026-11-27
- declared at
2025-06-18: apify/mcp-client-capabilities at2b28e97, 2026-11-15. No sampling key on the cursor-vscode record.
- declared at
2025-06-18: apify/mcp-client-capabilities at2b28e97, 2026-11-15 - read at
2025-11-25: microsoft/vscode at6737a1ccsrc/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.ts:McpServerRequestHandler.create, 2026-11-27 - read at
2025-11-25: microsoft/vscode at6737a1ccsrc/vs/workbench/contrib/mcp/common/mcpSamplingService.ts:McpSamplingService.sample,McpSamplingService._getMatchingModel,McpSamplingService._getMatchingModelInner, 2026-11-27 - read at
2025-11-25: microsoft/vscode at6737a1ccsrc/vs/workbench/contrib/mcp/common/mcpServer.ts:McpServer.start, 2026-11-27
n8n:
- read at
2025-11-25: n8n-io/n8n atfb1aec9cpackages/@n8n/nodes-langchain/nodes/mcp/shared/utils.ts:connectMcpClient, 2026-11-27 - read at
2025-11-25: n8n-io/n8n atfb1aec9cpackages/@n8n/agents/src/runtime/mcp/mcp-connection.ts:McpConnection.doConnect, 2026-11-27
- read at
2025-11-25: langflow-ai/langflow at2b6faa1csrc/lfx/src/lfx/base/mcp/util.py:MCPSessionManager.session_task, 2026-11-27. ClientSession(read, write) with no callbacks. - read at
2025-11-25: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-20. mcp 1.30.0 wheel. The default callback and the capability built from it.
- read at
2026-07-28: mcp-use/mcp-use atbc8fb6f3libraries/typescript/packages/client/src/core/node.ts:MCPClientOptions,MCPClient, 2026-11-27 - read at
2026-07-28: mcp-use/mcp-use atbc8fb6f3libraries/typescript/packages/client/src/transport/base.ts:BaseConnector.setupSamplingHandler, 2026-11-27 - read at
2026-07-28: mcp-use/mcp-use atbc8fb6f3libraries/typescript/packages/client/src/transport/http.ts:HttpConnector.buildClientOptions, 2026-11-27 - read at
2026-07-28: @modelcontextprotocol/clientdist/index.mjs, 2026-11-20. @modelcontextprotocol/client 2.3.1. input_required rounds are fulfilled through the registered handlers.
Zed:
- read at
2025-11-25: zed-industries/zed atda3a2740crates/context_server/src/protocol.rs:ModelContextProtocol.initialize, 2026-11-27 - read at
2025-11-25: zed-industries/zed atda3a2740crates/context_server/src/client.rs:Client,Client.handle_input, 2026-11-27
- read at
2025-11-25: modelcontextprotocol/typescript-sdk at5ee54ee3packages/client/src/client/client.ts:Client, 2026-11-20. The constructor copies options.capabilities, or {} when none are given. - read at
2025-11-25: modelcontextprotocol/typescript-sdk at5ee54ee3packages/client/src/client/client.ts:Client.assertRequestHandlerCapability, 2026-11-20. assertRequestHandlerCapability: registering a sampling, elicitation or roots handler throws unless the matching capability was declared. - read at
2025-11-25: modelcontextprotocol/typescript-sdk at5ee54ee3packages/client/src/client/client.ts:Client._wrapHandler, 2026-11-20 - read at
2025-11-25: modelcontextprotocol/typescript-sdk at5ee54ee3packages/client/src/client/client.ts, 2026-11-20
Warp:
- read at
2026-07-28: warpdotdev/warp at1c7fda11crates/mcp/src/runtime.rs:make_client_info, 2026-11-27 - read at
2026-07-28: rmcpsrc/handler/client.rs, 2026-11-21
- read at
2026-07-28: pollen-robotics/reachy_mini_conversation_app at622a3a67src/reachy_mini_conversation_app/mcp_client.py:377-381, 2026-11-26 - read at
2026-07-28: modelcontextprotocol/python-sdkmcp/client/session.py:614-649, 2026-11-26. mcp 2.2.0. sampling, elicitation and roots are declared only when the matching callback is passed.
Google ADK (Python) on 2025-11-25:
- read at
2025-11-25: google/adk-python at03725e8csrc/google/adk/tools/mcp_tool/mcp_toolset.py:McpToolset.__init__, 2026-11-27 - read at
2025-11-25: google/adk-python at03725e8csrc/google/adk/tools/mcp_tool/session_context.py:SessionContext._run, 2026-11-27. The only ClientSession construction under src. It passes sampling_callback, sampling_capabilities, elicitation_callback, message_handler and client_info, and no list_roots_callback or logging_callback. - read at
2025-11-25: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 2.3.0. _build_capabilities declares sampling, elicitation and roots only when a non-default callback was passed.
Lifecycle
| Revision | Change |
|---|---|
2024-11-05 |
Introduced. |
2026-07-28 |
Server-initiated sampling/createMessage replaced by the Multi Round-Trip Requests (MRTR) inputRequests pattern (SEP-2322). Feature deprecated (SEP-2577) |
2026-07-28 |
Deprecated. Earliest removal First revision released on or after 2027-07-28. |
Integrate directly with LLM provider APIs.
SEP-2577.
Research notes
- ADK Python declares no client capabilities unless the application passes callbacks
- Agent Framework's Python binding declares sampling on every connection and refuses it by default
- Agent Framework's Python and .NET bindings are two different MCP clients
- Cline declares an empty capability object on both surfaces
- deepagents-code declares sampling, elicitation and roots to every server and answers none of them
- fast-agent's capability declaration varies from server to server
- Hermes runs one MCP client across every surface, and a second one it does not expose
- Hugging Face Chat UI answers 2026-07-28 elicitations after the tool call has returned
- Langflow's MCP client is its own wrapper on the mcp SDK, and langchain-mcp-adapters is an unused extra
- A default Mastra MCPClient declares the MCP Apps extension and nothing else
- A default OpenClaw install declares no client capabilities at all
- opencode declares roots and nothing else, with sampling, elicitation and tasks commented out
- Warp declares no client capabilities, and rmcp still answers roots and elicitation for it
- Zed hand-writes its MCP client, declares no capabilities and never answers a server request
Kinds
- framework: A library an application embeds. A capability row is what a default install declares, and the embedding application can change it.
- sdk: An MCP SDK. A capability row is the default every client on it inherits unless it overrides.
Data
This page as JSON: /data/capabilities/sampling.json. All capabilities: /data/capabilities/index.json, and the matrix.