Testing finds Claude Code does not respond to MCP Sampling requests
Start here
An October 21, 2026 hands-on testing article states that Claude Code 2.1.283 does not support MCP Sampling, and related requests return Method not found. The author concludes from this that this client has no privilege escalation path via Sampling, but prompt injection in tool descriptions or return values can still take effect through other paths. The article also notes that Sampling was deprecated in version 2026-07-28 of the MCP specification.
Generated by AI from reports · Updated 2026-10-24
Progress timeline
- QiitaClaude Code does not respond to MCP Sampling: test it before talking about privilege escalation
Testing Claude Code 2.1.283 shows it does not support MCP Sampling; requests return Method not found. Therefore this client has no privilege escalation path via Sampling, but prompt injection in tool descriptions or return values still goes through other paths. Sampling was deprecated in version 2026-07-28 of the MCP specification.