🔌MCP Sampling
Also known as Sampling (MCP), Server-Initiated Sampling
A server asks the app's own model to write text. Now deprecated.
Think of it like
Think of it like a man in a shop who asks to use your phone. He has none of his own.
Example
Lucy's file server needs a one-line summary of each new file. It asks for one through sampling, and her own model writes it.
Why it matters
You will still meet sampling in older servers and clients. New work calls a model's API instead.
Definition
Common mistake
Key takeaways
- 1Server asks. The client's model writes.
- 2User can review. Request and reply.
- 3Deprecated in 2026. Use a model's API instead.