sampling.context support in MCP clients
Which MCP clients support sampling.context, and how each claim is known. The protocol introduced it in 2024-11-05. It was deprecated in 2025-11-25.
Part of sampling.
Support
| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| fast-agent | framework | ○ unsupported | read | 2026-07-28 |
includeContext is not read anywhere; the sampling converter ignores it. |
| Mastra | framework | ○ unsupported | read | 2026-07-28 |
Sampling is not implemented. |
| eve | framework | ○ unsupported | read | 2026-07-28 |
Sampling is not implemented. |
| crewAI * | framework | ○ unsupported | read, through sampling |
2025-11-25 |
Follows from sampling. |
| deepagents * | framework | ○ unsupported | read | 2025-11-25 |
No sampling handler reads includeContext. |
| Microsoft Agent Framework | framework | ○ unsupported | read | 2026-07-28 |
sampling_callback does not read includeContext or modelPreferences. |
| Visual Studio Code * | host | ○ unsupported | read, declared, through sampling |
2025-06-18, 2025-11-25 |
includeContext is not read. |
| Langflow * | host | ○ unsupported | read, through sampling |
2025-11-25 |
Follows from sampling. |
| TypeScript SDK Client | sdk | ◇ opt-in | read, through sampling |
2025-11-25 |
includeContext reaches the application handler unchanged. Honouring it is the handler's job. |
Not recorded for goose, Codex CLI, opencode, Cline, OpenClaw, Hermes Agent, Kilo Code, fx (native engine), libfx (fx JavaScript adapter), pi, Strands Agents, Google ADK (Python), Google Antigravity, Claude Code, Claude.ai, ChatGPT, Codex Desktop, Hugging Face Chat UI, Cursor, n8n, mcp-use, Zed, Warp, Reachy Mini conversation app. 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 4 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
No client records a different row on 2025-11-25, so the rows above hold there too.
The matrix on 2025-11-25 shows every capability on that revision.
Evidence
- read at
2026-07-28: evalstate/fast-agent at16f8bb65src/fast_agent/llm/sampling_converter.py, 2026-11-27
- read at
2026-07-28: mastra-ai/mastra at0a31d4d0packages/mcp/src/client/types.ts:MCPClientCapabilities, 2026-11-27
eve:
- 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
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
2026-07-28: microsoft/agent-framework atf8ade3e9python/packages/core/agent_framework/_mcp.py:MCPTool.sampling_callback, 2026-11-27
Lifecycle
| Revision | Change |
|---|---|
2024-11-05 |
Introduced. |
2025-11-25 |
thisServer/allServers soft-deprecated |
2025-11-25 |
Deprecated. Earliest removal Follows Sampling (SEP-2577). |
2026-07-28 |
thisServer/allServers reclassified Deprecated under the feature lifecycle policy; deprecation still dates from 2025-11-25 (SEP-2596) |
includeContext parameter (none | thisServer | allServers).
Omit the field or use "none".
SEP-2596.
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-context.json. All capabilities: /data/capabilities/index.json, and the matrix.