---
title: "sampling.context support in MCP clients"
description: "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."
canonical: https://canimcp.io/capabilities/sampling-context
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.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`](/capabilities/sampling.md).

## Support

| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| [fast-agent](/clients/fast-agent.md) | framework | ○ unsupported | read | `2026-07-28` | includeContext is not read anywhere; the sampling converter ignores it. |
| [Mastra](/clients/mastra.md) | framework | ○ unsupported | read | `2026-07-28` | Sampling is not implemented. |
| [eve](/clients/eve.md) | framework | ○ unsupported | read | `2026-07-28` | Sampling is not implemented. |
| [crewAI](/clients/crewai.md) * | framework | ○ unsupported | read, through [`sampling`](/capabilities/sampling.md) | `2025-11-25` | Follows from sampling. |
| [deepagents](/clients/deepagents.md) * | framework | ○ unsupported | read | `2025-11-25` | No sampling handler reads includeContext. |
| [Microsoft Agent Framework](/clients/agent-framework.md) | framework | ○ unsupported | read | `2026-07-28` | sampling_callback does not read includeContext or modelPreferences. |
| [Visual Studio Code](/clients/vscode.md) * | host | ○ unsupported | read, declared, through [`sampling`](/capabilities/sampling.md) | `2025-06-18`, `2025-11-25` | includeContext is not read. |
| [Langflow](/clients/langflow.md) * | host | ○ unsupported | read, through [`sampling`](/capabilities/sampling.md) | `2025-11-25` | Follows from sampling. |
| [TypeScript SDK Client](/clients/ts-sdk-client.md) | sdk | ◇ opt-in | read, through [`sampling`](/capabilities/sampling.md) | `2025-11-25` | includeContext reaches the application handler unchanged. Honouring it is the handler's job. |

Not recorded for [goose](/clients/goose.md), [Codex CLI](/clients/openai-codex.md), [opencode](/clients/opencode.md), [Cline](/clients/cline.md), [OpenClaw](/clients/openclaw.md), [Hermes Agent](/clients/hermes-agent.md), [Kilo Code](/clients/kilocode.md), [fx (native engine)](/clients/fx.md), [libfx (fx JavaScript adapter)](/clients/libfx.md), [pi](/clients/pi.md), [Strands Agents](/clients/strands.md), [Google ADK (Python)](/clients/adk-python.md), [Google Antigravity](/clients/antigravity.md), [Claude Code](/clients/claude-code.md), [Claude.ai](/clients/claude-ai.md), [ChatGPT](/clients/chatgpt.md), [Codex Desktop](/clients/codex-desktop.md), [Hugging Face Chat UI](/clients/huggingface-chat-ui.md), [Cursor](/clients/cursor.md), [n8n](/clients/n8n.md), [mcp-use](/clients/mcp-use.md), [Zed](/clients/zed.md), [Warp](/clients/warp.md), [Reachy Mini conversation app](/clients/reachy-mini-conversation-app.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 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`](/capabilities/revision/2025-11-25.md) shows every capability on that revision.

## Evidence

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

- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/llm/sampling_converter.py`, 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

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

- *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.

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

- *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.

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

