{
  "capability": "sampling",
  "slug": "sampling",
  "page": "https://canimcp.io/capabilities/sampling",
  "lifecycle": {
    "kind": "client-feature",
    "introducedIn": "2024-11-05",
    "deprecatedIn": "2026-07-28",
    "earliestRemoval": "First revision released on or after 2027-07-28",
    "sep": "SEP-2577",
    "migration": "Integrate directly with LLM provider APIs.",
    "changes": {
      "2026-07-28": "Server-initiated sampling/createMessage replaced by the Multi Round-Trip Requests (MRTR) inputRequests pattern (SEP-2322). Feature deprecated (SEP-2577)"
    }
  },
  "parent": null,
  "children": [
    "sampling.context",
    "sampling.tools"
  ],
  "clients": [
    {
      "id": "goose",
      "title": "goose",
      "kind": "host",
      "page": "https://canimcp.io/clients/goose",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "aaif-goose/goose",
          "date": "2026-11-27",
          "commit": "c546eaa1",
          "path": "crates/oi-kit-agent/src/mcp/client.rs:GooseClient"
        },
        {
          "tier": "declared",
          "at": "2025-03-26",
          "source": "apify/mcp-client-capabilities",
          "date": "2026-02-02",
          "commit": "4406120",
          "note": "No sampling key on the goose record.",
          "status": "unsupported"
        }
      ],
      "research": [],
      "tiers": [
        "read",
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "openai-codex",
      "title": "Codex CLI",
      "kind": "host",
      "page": "https://canimcp.io/clients/openai-codex",
      "status": "unsupported",
      "notes": "Not in the declared capabilities and no create_message handler. The word appears in the codebase only for Codex's own model calls.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-06-18",
          "source": "openai/codex",
          "date": "2026-11-27",
          "commit": "18c09f20",
          "path": "codex-rs/codex-mcp/src/rmcp_client.rs:mcp_initialize_request_params"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "opencode",
      "title": "opencode",
      "kind": "host",
      "page": "https://canimcp.io/clients/opencode",
      "status": "unsupported",
      "notes": "Not declared, and no sampling/createMessage handler is registered. The commented-out key from the old client is gone.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "anomalyco/opencode",
          "date": "2026-11-27",
          "commit": "5d1f7884",
          "path": "packages/core/src/mcp/client.ts:initialize"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "cline",
      "title": "Cline",
      "kind": "host",
      "page": "https://canimcp.io/clients/cline",
      "status": "unsupported",
      "notes": "Both surfaces initialize with an empty capabilities object by default, and no CreateMessageRequestSchema handler exists.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "cline/cline",
          "date": "2026-11-27",
          "commit": "cbc7d141",
          "path": "apps/vscode/src/services/mcp/McpHub.ts:McpHub.connectToServer"
        },
        {
          "tier": "read",
          "at": "2024-11-05",
          "source": "cline/cline",
          "date": "2026-11-27",
          "commit": "cbc7d141",
          "path": "sdk/packages/core/src/extensions/mcp/client.ts:StdioMcpClient.connect"
        }
      ],
      "research": [
        "cline-declares-no-client-capabilities"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "fast-agent",
      "title": "fast-agent",
      "kind": "framework",
      "page": "https://canimcp.io/clients/fast-agent",
      "status": "full",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "evalstate/fast-agent",
          "date": "2026-11-27",
          "commit": "16f8bb65",
          "path": "src/fast_agent/mcp/client_callback_runtime.py:MCPClientCallbackRuntime"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "evalstate/fast-agent",
          "date": "2026-11-27",
          "commit": "16f8bb65",
          "path": "src/fast_agent/config.py:MCPClientSettings",
          "note": "auto_sampling defaults to true."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "evalstate/fast-agent",
          "date": "2026-11-27",
          "commit": "16f8bb65",
          "path": "src/fast_agent/mcp/sampling.py:sample"
        }
      ],
      "research": [
        "fast-agent-declares-capabilities-per-server"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "openclaw",
      "title": "OpenClaw",
      "kind": "host",
      "page": "https://canimcp.io/clients/openclaw",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "openclaw/openclaw",
          "date": "2026-11-27",
          "commit": "b607eb7b",
          "path": "src/agents/mcp-metadata.ts:buildMcpClientCapabilities"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "openclaw/openclaw",
          "date": "2026-11-27",
          "commit": "b607eb7b",
          "path": "src/node-host/mcp.ts:connectionAdmission"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "openclaw/openclaw",
          "date": "2026-11-27",
          "commit": "b607eb7b",
          "path": "src/agents/native-mcp-runtime-client.ts:createNativeMcpClientBridge"
        }
      ],
      "research": [
        "openclaw-declares-nothing-unless-mcp-apps-is-on"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "hermes-agent",
      "title": "Hermes Agent",
      "kind": "host",
      "page": "https://canimcp.io/clients/hermes-agent",
      "status": "full",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "NousResearch/hermes-agent",
          "date": "2026-11-27",
          "commit": "77236c4a",
          "path": "tools/mcp_tool_server_run.py:MCPServerRunMixin._prepare_run"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "NousResearch/hermes-agent",
          "date": "2026-11-27",
          "commit": "77236c4a",
          "path": "tools/mcp_tool_sampling.py:SamplingHandler"
        },
        {
          "tier": "declared",
          "status": "full",
          "at": "2025-11-25",
          "source": "canimcp-probe",
          "date": "2026-11-08",
          "clientVersion": "0.23.0+689.ga9ff979",
          "config": "default",
          "artifact": "probe/runs/hermes-agent@0.23.0+689.ga9ff979/default/both-http/tools.result.mirror",
          "note": "initialize.capabilities on the wire was {\"sampling\":{},\"elicitation\":{\"form\":{},\"url\":{}}} (wire.jsonl)."
        }
      ],
      "research": [],
      "tiers": [
        "read",
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "kilocode",
      "title": "Kilo Code",
      "kind": "host",
      "page": "https://canimcp.io/clients/kilocode",
      "status": "unsupported",
      "notes": "Commented out in the capability object, against opencode issue 11948. Kilo kept opencode's comments and links.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "Kilo-Org/kilocode",
          "date": "2026-11-27",
          "commit": "3c7f2659",
          "path": "packages/opencode/src/mcp/index.ts:CLIENT_OPTIONS"
        }
      ],
      "research": [
        "opencode-declares-only-roots"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "mastra",
      "title": "Mastra",
      "kind": "framework",
      "page": "https://canimcp.io/clients/mastra",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "mastra-ai/mastra",
          "date": "2026-11-27",
          "commit": "0a31d4d0",
          "path": "packages/mcp/src/client/types.ts:MCPClientCapabilities"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "mastra-ai/mastra",
          "date": "2026-11-27",
          "commit": "0a31d4d0",
          "path": "packages/mcp/src/client/client.ts:InternalMastraMCPClient",
          "note": "The capability object and the only request handler the client registers."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "mastra-ai/mastra",
          "date": "2026-11-27",
          "commit": "0a31d4d0",
          "path": "packages/mcp/CHANGELOG.md:Major Changes"
        },
        {
          "tier": "declared",
          "status": "unsupported",
          "at": "2026-07-28",
          "source": "canimcp-probe",
          "date": "2026-11-08",
          "clientVersion": "mcp-2.9.0-alpha.1+core-1.83.0-alpha.1",
          "config": "default",
          "artifact": "probe/runs/mastra@mcp-2.9.0-alpha.1+core-1.83.0-alpha.1/default/both-stdio/tools.result.mirror",
          "note": "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."
        }
      ],
      "research": [
        "mastra-declares-only-mcp-apps-and-dropped-roots-and-sampling"
      ],
      "tiers": [
        "read",
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "fx",
      "title": "fx (native engine)",
      "kind": "host",
      "page": "https://canimcp.io/clients/fx",
      "status": "unsupported",
      "notes": "Never declared. A 2026 input_required round that asks for sampling ends the call as unsupported input. A 2025 sampling/createMessage request gets -32601.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "vercel-labs/fx",
          "date": "2026-11-27",
          "commit": "b4502b01",
          "path": "src/core/mcp_host/runtime.zig:declaredCapabilities"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "vercel-labs/fx",
          "date": "2026-11-27",
          "commit": "b4502b01",
          "path": "src/mcp/protocol/mrtr.zig:supported"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "vercel-labs/fx",
          "date": "2026-11-27",
          "commit": "b4502b01",
          "path": "src/core/mcp/mrtr.zig",
          "note": "The host names sampling and roots as unsupported methods."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "vercel-labs/fx",
          "date": "2026-11-27",
          "commit": "b4502b01",
          "path": "src/mcp/server.zig:Server"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "libfx",
      "title": "libfx (fx JavaScript adapter)",
      "kind": "framework",
      "page": "https://canimcp.io/clients/libfx",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "vercel-labs/fx",
          "date": "2026-11-27",
          "commit": "b4502b01",
          "path": "sdk/types/mcp.d.ts"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "vercel-labs/fx",
          "date": "2026-11-27",
          "commit": "b4502b01",
          "path": "sdk/mcp.js:createMcpAdapter"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "eve",
      "title": "eve",
      "kind": "framework",
      "page": "https://canimcp.io/clients/eve",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "vercel/eve",
          "date": "2026-11-27",
          "commit": "4545806d",
          "path": "packages/eve/src/runtime/connections/mcp-client.ts:McpConnectionClient.createClient",
          "note": "createMCPClient is called with protocolVersionDiscovery and transport only. No capabilities, name or handlers are passed."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "@ai-sdk/mcp",
          "url": "https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99",
          "date": "2026-11-16",
          "path": "dist/index.js",
          "note": "@ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches. clientCapabilities defaults to {}."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "@ai-sdk/mcp",
          "url": "https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99",
          "date": "2026-11-16",
          "path": "dist/index.js",
          "note": "@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."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "@ai-sdk/mcp",
          "url": "https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99",
          "date": "2026-11-16",
          "path": "dist/index.js",
          "note": "@ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "pi",
      "title": "pi",
      "kind": "host",
      "page": "https://canimcp.io/clients/pi",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "earendil-works/pi",
          "date": "2026-11-27",
          "commit": "cdf74062",
          "path": "packages/mcp/src/client.ts:McpClient,McpClient.handleRequest"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "earendil-works/pi",
          "date": "2026-11-27",
          "commit": "cdf74062",
          "path": "packages/coding-agent/src/extensions/mcp/runtime.ts:McpServerConnection.connectOnce"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "earendil-works/pi",
          "date": "2026-11-27",
          "commit": "cdf74062",
          "path": "packages/mcp/README.md:Supported protocol surface"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "strands",
      "title": "Strands Agents",
      "kind": "framework",
      "page": "https://canimcp.io/clients/strands",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "strands-agents/harness-sdk",
          "date": "2026-11-27",
          "commit": "78855cad",
          "path": "strands-py/src/strands/tools/mcp/mcp_client.py:MCPClient._async_background_thread"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "modelcontextprotocol/python-sdk",
          "url": "https://pypi.org/project/mcp/2.3.0/",
          "date": "2026-11-16",
          "path": "mcp/client/session.py",
          "note": "mcp 2.3.0. sampling is declared only when a sampling callback was passed."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "strands-agents/harness-sdk",
          "date": "2026-11-27",
          "commit": "78855cad",
          "path": "strands-ts/src/mcp/client.ts:McpClient._createClient,McpClient.sampling",
          "note": "TypeScript binding."
        },
        {
          "tier": "declared",
          "status": "unsupported",
          "at": "2026-07-28",
          "source": "canimcp-probe",
          "date": "2026-11-08",
          "clientVersion": "1.64.0+mcp-2.3.0",
          "config": "default",
          "artifact": "probe/runs/strands@1.64.0+mcp-2.3.0/default/both-http/tools.result.mirror",
          "note": "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."
        }
      ],
      "research": [],
      "tiers": [
        "read",
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "crewai",
      "title": "crewAI",
      "kind": "framework",
      "page": "https://canimcp.io/clients/crewai",
      "status": "unsupported",
      "notes": "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\".",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "crewAIInc/crewAI",
          "date": "2026-11-27",
          "commit": "77237aec",
          "path": "lib/crewai/src/crewai/mcp/client.py:MCPClient.connect",
          "note": "ClientSession is constructed with the two streams and nothing else: no callbacks, no message_handler, no client_info."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/python-sdk",
          "url": "https://pypi.org/project/mcp/1.30.0/",
          "date": "2026-11-16",
          "path": "mcp/client/session.py",
          "note": "mcp 1.30.0 wheel. The default callback and the capability built from it."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "deepagents",
      "title": "deepagents",
      "kind": "framework",
      "page": "https://canimcp.io/clients/deepagents",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "declared",
          "status": "full",
          "at": "2025-11-25",
          "source": "canimcp-probe",
          "date": "2026-11-08",
          "note": "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: {}."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "langchain-ai/deepagents",
          "date": "2026-11-27",
          "commit": "c84eb7f1",
          "path": "libs/code/deepagents_code/mcp_tools.py:connect",
          "note": "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."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "langchain-ai/deepagents",
          "date": "2026-11-27",
          "commit": "c84eb7f1",
          "path": "libs/code/deepagents_code/mcp_tools.py:_mount_backends",
          "note": "Each connected client is wrapped with create_proxy and mounted on a FastMCP router. The tools call through FastMCPClient(router), built with no handlers."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "PrefectHQ/fastmcp",
          "date": "2026-11-16",
          "path": "fastmcp/server/providers/proxy.py",
          "note": "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."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/python-sdk",
          "date": "2026-11-16",
          "path": "mcp/client/session.py",
          "note": "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."
        }
      ],
      "research": [
        "deepagents-code-declares-capabilities-it-cannot-serve"
      ],
      "tiers": [
        "read",
        "declared"
      ],
      "disagreements": [
        {
          "tier": "declared",
          "status": "full",
          "at": "2025-11-25",
          "source": "canimcp-probe",
          "date": "2026-11-08",
          "note": "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: {}."
        }
      ]
    },
    {
      "id": "adk-python",
      "title": "Google ADK (Python)",
      "kind": "framework",
      "page": "https://canimcp.io/clients/adk-python",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "google/adk-python",
          "date": "2026-11-27",
          "commit": "03725e8c",
          "path": "src/google/adk/tools/mcp_tool/mcp_tool.py:McpTool._run_async_impl,McpTool._call_tool_on_session",
          "note": "call_tool is called without allow_input_required."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "modelcontextprotocol/python-sdk",
          "url": "https://pypi.org/project/mcp/2.3.0/",
          "date": "2026-11-16",
          "path": "mcp/client/session.py",
          "note": "mcp 2.3.0. An InputRequiredResult raises RuntimeError unless allow_input_required is true."
        }
      ],
      "research": [
        "adk-python-declares-no-client-capabilities-by-default"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "agent-framework",
      "title": "Microsoft Agent Framework",
      "kind": "framework",
      "page": "https://canimcp.io/clients/agent-framework",
      "status": "partial",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "microsoft/agent-framework",
          "date": "2026-11-27",
          "commit": "f8ade3e9",
          "path": "python/packages/core/agent_framework/_mcp.py:MCPTool._connect_on_owner",
          "note": "sampling_callback is passed on every Client construction."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "modelcontextprotocol/python-sdk",
          "date": "2026-11-16",
          "path": "mcp/client/session.py",
          "note": "mcp 2.3.0 wheel. sampling is declared when the callback is not the SDK default."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "microsoft/agent-framework",
          "date": "2026-11-27",
          "commit": "f8ade3e9",
          "path": "python/packages/core/agent_framework/_mcp.py:MCPTool.sampling_callback",
          "note": "The three refusals."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "microsoft/agent-framework",
          "date": "2026-11-27",
          "commit": "f8ade3e9",
          "path": "python/packages/core/agent_framework/_mcp.py",
          "note": "Default caps and the deprecation message."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "microsoft/agent-framework",
          "date": "2026-11-27",
          "commit": "f8ade3e9",
          "path": "dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Mcp/DefaultMcpToolHandler.cs",
          "note": ".NET: McpClientOptions with no Handlers."
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "modelcontextprotocol/csharp-sdk",
          "date": "2026-11-16",
          "commit": "6fa38259",
          "path": "src/ModelContextProtocol.Core/Client/McpClientImpl.cs",
          "note": "ModelContextProtocol 2.2.0 (tag v2.2.0). Sampling is declared only when a SamplingHandler is set."
        }
      ],
      "research": [
        "agent-framework-declares-sampling-it-declines-by-default"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "antigravity",
      "title": "Google Antigravity",
      "kind": "host",
      "page": "https://canimcp.io/clients/antigravity",
      "status": "unsupported",
      "evidence": [
        {
          "tier": "declared",
          "at": "2025-06-18",
          "source": "apify/mcp-client-capabilities",
          "url": "https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json",
          "date": "2026-11-11",
          "commit": "2b28e97",
          "note": "No sampling key on the antigravity-client record."
        }
      ],
      "research": [],
      "tiers": [
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "claude-code",
      "title": "Claude Code",
      "kind": "host",
      "page": "https://canimcp.io/clients/claude-code",
      "status": "unsupported",
      "evidence": [
        {
          "tier": "declared",
          "at": "2025-06-18",
          "source": "apify/mcp-client-capabilities",
          "url": "https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json",
          "date": "2026-11-15",
          "commit": "2b28e97",
          "note": "No sampling key on the claude-code record."
        }
      ],
      "research": [],
      "tiers": [
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "claude-ai",
      "title": "Claude.ai",
      "kind": "host",
      "page": "https://canimcp.io/clients/claude-ai",
      "status": "unsupported",
      "evidence": [
        {
          "tier": "declared",
          "at": "2025-06-18",
          "source": "apify/mcp-client-capabilities",
          "url": "https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json",
          "date": "2026-11-15",
          "commit": "2b28e97",
          "note": "No sampling key on the claude-ai record."
        }
      ],
      "research": [],
      "tiers": [
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "chatgpt",
      "title": "ChatGPT",
      "kind": "host",
      "page": "https://canimcp.io/clients/chatgpt",
      "status": "unsupported",
      "evidence": [
        {
          "tier": "declared",
          "at": "2025-06-18",
          "source": "apify/mcp-client-capabilities",
          "url": "https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json",
          "date": "2026-11-15",
          "commit": "2b28e97",
          "note": "No sampling key on the ChatGPT record."
        }
      ],
      "research": [],
      "tiers": [
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "huggingface-chat-ui",
      "title": "Hugging Face Chat UI",
      "kind": "host",
      "page": "https://canimcp.io/clients/huggingface-chat-ui",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "huggingface/chat-ui",
          "date": "2026-11-27",
          "commit": "7fc0f672",
          "path": "src/lib/server/mcp/client.ts:mcpClientCapabilities,createMcpClient"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "huggingface/chat-ui",
          "date": "2026-11-27",
          "commit": "7fc0f672",
          "path": "src/lib/server/mcp/elicitation.ts:openDurableElicitation"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "cursor",
      "title": "Cursor",
      "kind": "host",
      "page": "https://canimcp.io/clients/cursor",
      "status": "unsupported",
      "evidence": [
        {
          "tier": "declared",
          "at": "2025-06-18",
          "source": "apify/mcp-client-capabilities",
          "url": "https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json",
          "date": "2026-11-15",
          "commit": "2b28e97",
          "note": "No sampling key on the cursor-vscode record."
        }
      ],
      "research": [],
      "tiers": [
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "vscode",
      "title": "Visual Studio Code",
      "kind": "host",
      "page": "https://canimcp.io/clients/vscode",
      "status": "partial",
      "notes": "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.",
      "evidence": [
        {
          "tier": "declared",
          "at": "2025-06-18",
          "source": "apify/mcp-client-capabilities",
          "url": "https://github.com/apify/mcp-client-capabilities/blob/2b28e97/src/mcp_client_capabilities/mcp-clients.json",
          "date": "2026-11-15",
          "commit": "2b28e97"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "microsoft/vscode",
          "date": "2026-11-27",
          "commit": "6737a1cc",
          "path": "src/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.ts:McpServerRequestHandler.create"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "microsoft/vscode",
          "date": "2026-11-27",
          "commit": "6737a1cc",
          "path": "src/vs/workbench/contrib/mcp/common/mcpSamplingService.ts:McpSamplingService.sample,McpSamplingService._getMatchingModel,McpSamplingService._getMatchingModelInner"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "microsoft/vscode",
          "date": "2026-11-27",
          "commit": "6737a1cc",
          "path": "src/vs/workbench/contrib/mcp/common/mcpServer.ts:McpServer.start"
        }
      ],
      "research": [],
      "tiers": [
        "read",
        "declared"
      ],
      "disagreements": []
    },
    {
      "id": "n8n",
      "title": "n8n",
      "kind": "host",
      "page": "https://canimcp.io/clients/n8n",
      "status": "unsupported",
      "notes": "Every client is constructed with capabilities: {}.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "n8n-io/n8n",
          "date": "2026-11-27",
          "commit": "fb1aec9c",
          "path": "packages/@n8n/nodes-langchain/nodes/mcp/shared/utils.ts:connectMcpClient"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "n8n-io/n8n",
          "date": "2026-11-27",
          "commit": "fb1aec9c",
          "path": "packages/@n8n/agents/src/runtime/mcp/mcp-connection.ts:McpConnection.doConnect"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "langflow",
      "title": "Langflow",
      "kind": "host",
      "page": "https://canimcp.io/clients/langflow",
      "status": "unsupported",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "langflow-ai/langflow",
          "date": "2026-11-27",
          "commit": "2b6faa1c",
          "path": "src/lfx/src/lfx/base/mcp/util.py:MCPSessionManager.session_task",
          "note": "ClientSession(read, write) with no callbacks."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/python-sdk",
          "url": "https://pypi.org/project/mcp/1.30.0/",
          "date": "2026-11-20",
          "path": "mcp/client/session.py",
          "note": "mcp 1.30.0 wheel. The default callback and the capability built from it."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "mcp-use",
      "title": "mcp-use",
      "kind": "framework",
      "page": "https://canimcp.io/clients/mcp-use",
      "status": "opt-in",
      "notes": "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.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "mcp-use/mcp-use",
          "date": "2026-11-27",
          "commit": "bc8fb6f3",
          "path": "libraries/typescript/packages/client/src/core/node.ts:MCPClientOptions,MCPClient"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "mcp-use/mcp-use",
          "date": "2026-11-27",
          "commit": "bc8fb6f3",
          "path": "libraries/typescript/packages/client/src/transport/base.ts:BaseConnector.setupSamplingHandler"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "mcp-use/mcp-use",
          "date": "2026-11-27",
          "commit": "bc8fb6f3",
          "path": "libraries/typescript/packages/client/src/transport/http.ts:HttpConnector.buildClientOptions"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "@modelcontextprotocol/client",
          "url": "https://www.npmjs.com/package/@modelcontextprotocol/client/v/2.3.1",
          "date": "2026-11-20",
          "path": "dist/index.mjs",
          "note": "@modelcontextprotocol/client 2.3.1. input_required rounds are fulfilled through the registered handlers."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "zed",
      "title": "Zed",
      "kind": "host",
      "page": "https://canimcp.io/clients/zed",
      "status": "unsupported",
      "notes": "ClientCapabilities is built with sampling: None. Server-to-client requests have no handlers.",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "zed-industries/zed",
          "date": "2026-11-27",
          "commit": "da3a2740",
          "path": "crates/context_server/src/protocol.rs:ModelContextProtocol.initialize"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "zed-industries/zed",
          "date": "2026-11-27",
          "commit": "da3a2740",
          "path": "crates/context_server/src/client.rs:Client,Client.handle_input"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "ts-sdk-client",
      "title": "TypeScript SDK Client",
      "kind": "sdk",
      "page": "https://canimcp.io/clients/ts-sdk-client",
      "status": "opt-in",
      "notes": "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).",
      "evidence": [
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/typescript-sdk",
          "date": "2026-11-20",
          "commit": "5ee54ee3",
          "path": "packages/client/src/client/client.ts:Client",
          "note": "The constructor copies options.capabilities, or {} when none are given."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/typescript-sdk",
          "date": "2026-11-20",
          "commit": "5ee54ee3",
          "path": "packages/client/src/client/client.ts:Client.assertRequestHandlerCapability",
          "note": "assertRequestHandlerCapability: registering a sampling, elicitation or roots handler throws unless the matching capability was declared."
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/typescript-sdk",
          "date": "2026-11-20",
          "commit": "5ee54ee3",
          "path": "packages/client/src/client/client.ts:Client._wrapHandler"
        },
        {
          "tier": "read",
          "at": "2025-11-25",
          "source": "modelcontextprotocol/typescript-sdk",
          "date": "2026-11-20",
          "commit": "5ee54ee3",
          "path": "packages/client/src/client/client.ts"
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "warp",
      "title": "Warp",
      "kind": "host",
      "page": "https://canimcp.io/clients/warp",
      "status": "unsupported",
      "notes": "Not declared. A sampling request reaches rmcp's default create_message, which returns method not found.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "warpdotdev/warp",
          "date": "2026-11-27",
          "commit": "1c7fda11",
          "path": "crates/mcp/src/runtime.rs:make_client_info"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "rmcp",
          "url": "https://crates.io/crates/rmcp/3.5.0",
          "date": "2026-11-21",
          "path": "src/handler/client.rs"
        }
      ],
      "research": [
        "warp-declares-no-client-capabilities"
      ],
      "tiers": [
        "read"
      ],
      "disagreements": []
    },
    {
      "id": "reachy-mini-conversation-app",
      "title": "Reachy Mini conversation app",
      "kind": "host",
      "page": "https://canimcp.io/clients/reachy-mini-conversation-app",
      "status": "unsupported",
      "notes": "The SDK Client is built from the transport alone, with no sampling_callback, so the SDK declares no sampling capability.",
      "evidence": [
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "pollen-robotics/reachy_mini_conversation_app",
          "date": "2026-11-26",
          "commit": "622a3a67",
          "path": "src/reachy_mini_conversation_app/mcp_client.py:377-381"
        },
        {
          "tier": "read",
          "at": "2026-07-28",
          "source": "modelcontextprotocol/python-sdk",
          "url": "https://pypi.org/project/mcp/2.2.0/",
          "date": "2026-11-26",
          "path": "mcp/client/session.py:614-649",
          "note": "mcp 2.2.0. sampling, elicitation and roots are declared only when the matching callback is passed."
        }
      ],
      "research": [],
      "tiers": [
        "read"
      ],
      "disagreements": []
    }
  ],
  "notRecorded": [
    "codex-desktop"
  ],
  "research": [
    "adk-python-declares-no-client-capabilities-by-default",
    "agent-framework-declares-sampling-it-declines-by-default",
    "agent-framework-python-and-dotnet-are-two-mcp-clients",
    "cline-declares-no-client-capabilities",
    "deepagents-code-declares-capabilities-it-cannot-serve",
    "fast-agent-declares-capabilities-per-server",
    "hermes-runs-one-mcp-client-for-every-surface",
    "huggingface-chat-ui-parks-modern-elicitations-in-its-database",
    "langflow-speaks-mcp-through-its-own-sdk-wrapper",
    "mastra-declares-only-mcp-apps-and-dropped-roots-and-sampling",
    "openclaw-declares-nothing-unless-mcp-apps-is-on",
    "opencode-declares-only-roots",
    "warp-declares-no-client-capabilities",
    "zed-hand-writes-its-mcp-client-and-answers-no-server-requests"
  ],
  "byRevision": {
    "2025-11-25": [
      {
        "id": "adk-python",
        "title": "Google ADK (Python)",
        "kind": "framework",
        "page": "https://canimcp.io/clients/adk-python",
        "status": "unsupported",
        "notes": "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.",
        "evidence": [
          {
            "tier": "read",
            "at": "2025-11-25",
            "source": "google/adk-python",
            "date": "2026-11-27",
            "commit": "03725e8c",
            "path": "src/google/adk/tools/mcp_tool/mcp_toolset.py:McpToolset.__init__"
          },
          {
            "tier": "read",
            "at": "2025-11-25",
            "source": "google/adk-python",
            "date": "2026-11-27",
            "commit": "03725e8c",
            "path": "src/google/adk/tools/mcp_tool/session_context.py:SessionContext._run",
            "note": "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."
          },
          {
            "tier": "read",
            "at": "2025-11-25",
            "source": "modelcontextprotocol/python-sdk",
            "url": "https://pypi.org/project/mcp/2.3.0/",
            "date": "2026-11-16",
            "path": "mcp/client/session.py",
            "note": "mcp 2.3.0. _build_capabilities declares sampling, elicitation and roots only when a non-default callback was passed."
          }
        ],
        "research": [
          "adk-python-declares-no-client-capabilities-by-default"
        ],
        "revisionRecord": "2025-11-25",
        "tiers": [
          "read"
        ],
        "disagreements": []
      }
    ]
  }
}
