Conceptsampling / 采样机制
MCP Sampling
A mechanism in the Model Context Protocol (MCP) that allows MCP servers to request LLM completions through an MCP client, enabling servers to obtain AI-generation capabilities without managing model integrations directly. Due to the complexity introduced by bidirectional calls, the mechanism has been progressively deprecated.
Timeline (last 90 days)
Oct 24
In the MCP specification, Sampling, Roots, and Logging have been marked as deprecated and can still be used for at least 12 months; the long-running Tasks capability has been moved out of the core to become an official extension; SSE is the deprecated legacy transport method—local processes use Standard IO, and remote services use Streamable HTTP.
Unverified50%