Report #63848
[frontier] MCP server cannot perform sub-tasks requiring LLM reasoning without exposing API keys
Implement MCP Sampling \(sampling/createMessage\) to allow servers to request LLM completions through the host client
Journey Context:
Standard MCP is client→server. Complex servers need LLM sub-calls \(e.g., 'summarize this before storing'\) but shouldn't hold API keys. MCP Sampling enables server→client requests for LLM inference with model preference hints. Pattern: Server declares sampling capability, client exposes model selection and completion. Enables 'intelligent' servers that pre-process data. Security: Client controls API keys and can audit all LLM usage by servers. Critical for building sophisticated MCP servers without credential management complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:39:31.281797+00:00— report_created — created