---
title: "sampling support in MCP clients"
description: "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."
canonical: https://canimcp.io/capabilities/sampling
last-updated: 2026-11-27
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# `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`](/capabilities/sampling-context.md), [`sampling.tools`](/capabilities/sampling-tools.md).

## Support

| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| [goose](/clients/goose.md) | 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](/clients/openai-codex.md) | 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](/clients/opencode.md) | 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](/clients/cline.md) * | 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](/clients/fast-agent.md) | 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](/clients/openclaw.md) * | 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](/clients/hermes-agent.md) | 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](/clients/kilocode.md) * | host | ○ unsupported | read | `2025-11-25` | Commented out in the capability object, against opencode issue 11948. Kilo kept opencode's comments and links. |
| [Mastra](/clients/mastra.md) | 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)](/clients/fx.md) | 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)](/clients/libfx.md) * | 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](/clients/eve.md) | 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](/clients/pi.md) * | 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](/clients/strands.md) | 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](/clients/crewai.md) * | 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](/clients/deepagents.md) * | 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)](/clients/adk-python.md) | 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](/clients/agent-framework.md) | 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](/clients/antigravity.md) | host | ○ unsupported | declared | `2025-06-18` |  |
| [Claude Code](/clients/claude-code.md) | host | ○ unsupported | declared | `2025-06-18` |  |
| [Claude.ai](/clients/claude-ai.md) | host | ○ unsupported | declared | `2025-06-18` |  |
| [ChatGPT](/clients/chatgpt.md) | host | ○ unsupported | declared | `2025-06-18` |  |
| [Hugging Face Chat UI](/clients/huggingface-chat-ui.md) | 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](/clients/cursor.md) * | host | ○ unsupported | declared | `2025-06-18` |  |
| [Visual Studio Code](/clients/vscode.md) * | 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](/clients/n8n.md) * | host | ○ unsupported | read | `2025-11-25` | Every client is constructed with capabilities: {}. |
| [Langflow](/clients/langflow.md) * | 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](/clients/mcp-use.md) | 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](/clients/zed.md) * | host | ○ unsupported | read | `2025-11-25` | ClientCapabilities is built with sampling: None. Server-to-client requests have no handlers. |
| [TypeScript SDK Client](/clients/ts-sdk-client.md) | 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](/clients/warp.md) | 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](/clients/reachy-mini-conversation-app.md) | 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](/clients/codex-desktop.md). 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)](/clients/adk-python.md) | ○ 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](/clients/goose.md), [Hermes Agent](/clients/hermes-agent.md), [Google Antigravity](/clients/antigravity.md), [Claude Code](/clients/claude-code.md), [Claude.ai](/clients/claude-ai.md), [ChatGPT](/clients/chatgpt.md), [Warp](/clients/warp.md), [Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md) have one set of rows for every revision they speak, not yet split by revision.

The [matrix on `2025-11-25`](/capabilities/revision/2025-11-25.md) shows every capability on that revision.

## Where the tiers disagree

- [deepagents](/clients/deepagents.md) is recorded as unsupported. *declared* at `2025-11-25` says 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

[goose](/clients/goose.md):

- *read* at `2026-07-28`: aaif-goose/goose at `c546eaa1` `crates/oi-kit-agent/src/mcp/client.rs:GooseClient`, 2026-11-27
- *declared* at `2025-03-26` says unsupported: apify/mcp-client-capabilities at `4406120`, 2026-02-02. No sampling key on the goose record.

[Codex CLI](/clients/openai-codex.md):

- *read* at `2025-06-18`: openai/codex at `18c09f20` `codex-rs/codex-mcp/src/rmcp_client.rs:mcp_initialize_request_params`, 2026-11-27

[opencode](/clients/opencode.md):

- *read* at `2025-11-25`: anomalyco/opencode at `5d1f7884` `packages/core/src/mcp/client.ts:initialize`, 2026-11-27

[Cline](/clients/cline.md):

- *read* at `2025-11-25`: cline/cline at `cbc7d141` `apps/vscode/src/services/mcp/McpHub.ts:McpHub.connectToServer`, 2026-11-27
- *read* at `2024-11-05`: cline/cline at `cbc7d141` `sdk/packages/core/src/extensions/mcp/client.ts:StdioMcpClient.connect`, 2026-11-27

[fast-agent](/clients/fast-agent.md):

- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/mcp/client_callback_runtime.py:MCPClientCallbackRuntime`, 2026-11-27
- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/config.py:MCPClientSettings`, 2026-11-27. auto_sampling defaults to true.
- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/mcp/sampling.py:sample`, 2026-11-27

[OpenClaw](/clients/openclaw.md):

- *read* at `2025-11-25`: openclaw/openclaw at `b607eb7b` `src/agents/mcp-metadata.ts:buildMcpClientCapabilities`, 2026-11-27
- *read* at `2025-11-25`: openclaw/openclaw at `b607eb7b` `src/node-host/mcp.ts:connectionAdmission`, 2026-11-27
- *read* at `2025-11-25`: openclaw/openclaw at `b607eb7b` `src/agents/native-mcp-runtime-client.ts:createNativeMcpClientBridge`, 2026-11-27

[Hermes Agent](/clients/hermes-agent.md):

- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool_server_run.py:MCPServerRunMixin._prepare_run`, 2026-11-27
- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool_sampling.py:SamplingHandler`, 2026-11-27
- *declared* at `2025-11-25` says full: canimcp-probe, 2026-11-08. initialize.capabilities on the wire was {"sampling":{},"elicitation":{"form":{},"url":{}}} (wire.jsonl).

[Kilo Code](/clients/kilocode.md):

- *read* at `2025-11-25`: Kilo-Org/kilocode at `3c7f2659` `packages/opencode/src/mcp/index.ts:CLIENT_OPTIONS`, 2026-11-27

[Mastra](/clients/mastra.md):

- *read* at `2026-07-28`: mastra-ai/mastra at `0a31d4d0` `packages/mcp/src/client/types.ts:MCPClientCapabilities`, 2026-11-27
- *read* at `2026-07-28`: mastra-ai/mastra at `0a31d4d0` `packages/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 at `0a31d4d0` `packages/mcp/CHANGELOG.md:Major Changes`, 2026-11-27
- *declared* at `2026-07-28` says 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.

[fx (native engine)](/clients/fx.md):

- *read* at `2026-07-28`: vercel-labs/fx at `b4502b01` `src/core/mcp_host/runtime.zig:declaredCapabilities`, 2026-11-27
- *read* at `2026-07-28`: vercel-labs/fx at `b4502b01` `src/mcp/protocol/mrtr.zig:supported`, 2026-11-27
- *read* at `2026-07-28`: vercel-labs/fx at `b4502b01` `src/core/mcp/mrtr.zig`, 2026-11-27. The host names sampling and roots as unsupported methods.
- *read* at `2025-11-25`: vercel-labs/fx at `b4502b01` `src/mcp/server.zig:Server`, 2026-11-27

[libfx (fx JavaScript adapter)](/clients/libfx.md):

- *read* at `2025-11-25`: vercel-labs/fx at `b4502b01` `sdk/types/mcp.d.ts`, 2026-11-27
- *read* at `2025-11-25`: vercel-labs/fx at `b4502b01` `sdk/mcp.js:createMcpAdapter`, 2026-11-27

[eve](/clients/eve.md):

- *read* at `2026-07-28`: vercel/eve at `4545806d` `packages/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/mcp](https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99) `dist/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/mcp](https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99) `dist/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/mcp](https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99) `dist/index.js`, 2026-11-16. @ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches.

[pi](/clients/pi.md):

- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/mcp/src/client.ts:McpClient,McpClient.handleRequest`, 2026-11-27
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/coding-agent/src/extensions/mcp/runtime.ts:McpServerConnection.connectOnce`, 2026-11-27
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/mcp/README.md:Supported protocol surface`, 2026-11-27

[Strands Agents](/clients/strands.md):

- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-py/src/strands/tools/mcp/mcp_client.py:MCPClient._async_background_thread`, 2026-11-27
- *read* at `2026-07-28`: [modelcontextprotocol/python-sdk](https://pypi.org/project/mcp/2.3.0/) `mcp/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 at `78855cad` `strands-ts/src/mcp/client.ts:McpClient._createClient,McpClient.sampling`, 2026-11-27. TypeScript binding.
- *declared* at `2026-07-28` says 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.

[crewAI](/clients/crewai.md):

- *read* at `2025-11-25`: crewAIInc/crewAI at `77237aec` `lib/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-sdk](https://pypi.org/project/mcp/1.30.0/) `mcp/client/session.py`, 2026-11-16. mcp 1.30.0 wheel. The default callback and the capability built from it.

[deepagents](/clients/deepagents.md):

- *declared* at `2025-11-25` says 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 at `c84eb7f1` `libs/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 at `c84eb7f1` `libs/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/fastmcp `fastmcp/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-sdk `mcp/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.

[Google ADK (Python)](/clients/adk-python.md):

- *read* at `2026-07-28`: google/adk-python at `03725e8c` `src/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-sdk](https://pypi.org/project/mcp/2.3.0/) `mcp/client/session.py`, 2026-11-16. mcp 2.3.0. An InputRequiredResult raises RuntimeError unless allow_input_required is true.

[Microsoft Agent Framework](/clients/agent-framework.md):

- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `python/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-sdk `mcp/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 at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPTool.sampling_callback`, 2026-11-27. The three refusals.
- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py`, 2026-11-27. Default caps and the deprecation message.
- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `dotnet/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 at `6fa38259` `src/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.

[Google Antigravity](/clients/antigravity.md):

- *declared* at `2025-06-18`: [apify/mcp-client-capabilities](https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json) at `2b28e97`, 2026-11-11. No sampling key on the antigravity-client record.

[Claude Code](/clients/claude-code.md):

- *declared* at `2025-06-18`: [apify/mcp-client-capabilities](https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json) at `2b28e97`, 2026-11-15. No sampling key on the claude-code record.

[Claude.ai](/clients/claude-ai.md):

- *declared* at `2025-06-18`: [apify/mcp-client-capabilities](https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json) at `2b28e97`, 2026-11-15. No sampling key on the claude-ai record.

[ChatGPT](/clients/chatgpt.md):

- *declared* at `2025-06-18`: [apify/mcp-client-capabilities](https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json) at `2b28e97`, 2026-11-15. No sampling key on the ChatGPT record.

[Hugging Face Chat UI](/clients/huggingface-chat-ui.md):

- *read* at `2026-07-28`: huggingface/chat-ui at `7fc0f672` `src/lib/server/mcp/client.ts:mcpClientCapabilities,createMcpClient`, 2026-11-27
- *read* at `2026-07-28`: huggingface/chat-ui at `7fc0f672` `src/lib/server/mcp/elicitation.ts:openDurableElicitation`, 2026-11-27

[Cursor](/clients/cursor.md):

- *declared* at `2025-06-18`: [apify/mcp-client-capabilities](https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json) at `2b28e97`, 2026-11-15. No sampling key on the cursor-vscode record.

[Visual Studio Code](/clients/vscode.md):

- *declared* at `2025-06-18`: [apify/mcp-client-capabilities](https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json) at `2b28e97`, 2026-11-15
- *read* at `2025-11-25`: microsoft/vscode at `6737a1cc` `src/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.ts:McpServerRequestHandler.create`, 2026-11-27
- *read* at `2025-11-25`: microsoft/vscode at `6737a1cc` `src/vs/workbench/contrib/mcp/common/mcpSamplingService.ts:McpSamplingService.sample,McpSamplingService._getMatchingModel,McpSamplingService._getMatchingModelInner`, 2026-11-27
- *read* at `2025-11-25`: microsoft/vscode at `6737a1cc` `src/vs/workbench/contrib/mcp/common/mcpServer.ts:McpServer.start`, 2026-11-27

[n8n](/clients/n8n.md):

- *read* at `2025-11-25`: n8n-io/n8n at `fb1aec9c` `packages/@n8n/nodes-langchain/nodes/mcp/shared/utils.ts:connectMcpClient`, 2026-11-27
- *read* at `2025-11-25`: n8n-io/n8n at `fb1aec9c` `packages/@n8n/agents/src/runtime/mcp/mcp-connection.ts:McpConnection.doConnect`, 2026-11-27

[Langflow](/clients/langflow.md):

- *read* at `2025-11-25`: langflow-ai/langflow at `2b6faa1c` `src/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-sdk](https://pypi.org/project/mcp/1.30.0/) `mcp/client/session.py`, 2026-11-20. mcp 1.30.0 wheel. The default callback and the capability built from it.

[mcp-use](/clients/mcp-use.md):

- *read* at `2026-07-28`: mcp-use/mcp-use at `bc8fb6f3` `libraries/typescript/packages/client/src/core/node.ts:MCPClientOptions,MCPClient`, 2026-11-27
- *read* at `2026-07-28`: mcp-use/mcp-use at `bc8fb6f3` `libraries/typescript/packages/client/src/transport/base.ts:BaseConnector.setupSamplingHandler`, 2026-11-27
- *read* at `2026-07-28`: mcp-use/mcp-use at `bc8fb6f3` `libraries/typescript/packages/client/src/transport/http.ts:HttpConnector.buildClientOptions`, 2026-11-27
- *read* at `2026-07-28`: [@modelcontextprotocol/client](https://www.npmjs.com/package/@modelcontextprotocol/client/v/2.3.1) `dist/index.mjs`, 2026-11-20. @modelcontextprotocol/client 2.3.1. input_required rounds are fulfilled through the registered handlers.

[Zed](/clients/zed.md):

- *read* at `2025-11-25`: zed-industries/zed at `da3a2740` `crates/context_server/src/protocol.rs:ModelContextProtocol.initialize`, 2026-11-27
- *read* at `2025-11-25`: zed-industries/zed at `da3a2740` `crates/context_server/src/client.rs:Client,Client.handle_input`, 2026-11-27

[TypeScript SDK Client](/clients/ts-sdk-client.md):

- *read* at `2025-11-25`: modelcontextprotocol/typescript-sdk at `5ee54ee3` `packages/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 at `5ee54ee3` `packages/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 at `5ee54ee3` `packages/client/src/client/client.ts:Client._wrapHandler`, 2026-11-20
- *read* at `2025-11-25`: modelcontextprotocol/typescript-sdk at `5ee54ee3` `packages/client/src/client/client.ts`, 2026-11-20

[Warp](/clients/warp.md):

- *read* at `2026-07-28`: warpdotdev/warp at `1c7fda11` `crates/mcp/src/runtime.rs:make_client_info`, 2026-11-27
- *read* at `2026-07-28`: [rmcp](https://crates.io/crates/rmcp/3.5.0) `src/handler/client.rs`, 2026-11-21

[Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md):

- *read* at `2026-07-28`: pollen-robotics/reachy_mini_conversation_app at `622a3a67` `src/reachy_mini_conversation_app/mcp_client.py:377-381`, 2026-11-26
- *read* at `2026-07-28`: [modelcontextprotocol/python-sdk](https://pypi.org/project/mcp/2.2.0/) `mcp/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)](/clients/adk-python.md) on `2025-11-25`:

- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_toolset.py:McpToolset.__init__`, 2026-11-27
- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/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-sdk](https://pypi.org/project/mcp/2.3.0/) `mcp/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](/research/adk-python-declares-no-client-capabilities-by-default.md)
- [Agent Framework's Python binding declares sampling on every connection and refuses it by default](/research/agent-framework-declares-sampling-it-declines-by-default.md)
- [Agent Framework's Python and .NET bindings are two different MCP clients](/research/agent-framework-python-and-dotnet-are-two-mcp-clients.md)
- [Cline declares an empty capability object on both surfaces](/research/cline-declares-no-client-capabilities.md)
- [deepagents-code declares sampling, elicitation and roots to every server and answers none of them](/research/deepagents-code-declares-capabilities-it-cannot-serve.md)
- [fast-agent's capability declaration varies from server to server](/research/fast-agent-declares-capabilities-per-server.md)
- [Hermes runs one MCP client across every surface, and a second one it does not expose](/research/hermes-runs-one-mcp-client-for-every-surface.md)
- [Hugging Face Chat UI answers 2026-07-28 elicitations after the tool call has returned](/research/huggingface-chat-ui-parks-modern-elicitations-in-its-database.md)
- [Langflow's MCP client is its own wrapper on the mcp SDK, and langchain-mcp-adapters is an unused extra](/research/langflow-speaks-mcp-through-its-own-sdk-wrapper.md)
- [A default Mastra MCPClient declares the MCP Apps extension and nothing else](/research/mastra-declares-only-mcp-apps-and-dropped-roots-and-sampling.md)
- [A default OpenClaw install declares no client capabilities at all](/research/openclaw-declares-nothing-unless-mcp-apps-is-on.md)
- [opencode declares roots and nothing else, with sampling, elicitation and tasks commented out](/research/opencode-declares-only-roots.md)
- [Warp declares no client capabilities, and rmcp still answers roots and elicitation for it](/research/warp-declares-no-client-capabilities.md)
- [Zed hand-writes its MCP client, declares no capabilities and never answers a server request](/research/zed-hand-writes-its-mcp-client-and-answers-no-server-requests.md)

## 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`](/data/capabilities/sampling.json). All capabilities: [`/data/capabilities/index.json`](/data/capabilities/index.json), and the [matrix](/capabilities/index.md).

