Report #64093
[frontier] MCP servers cannot initiate LLM calls, forcing all reasoning to happen in the client
Use MCP's sampling capability to allow servers to request completions from the host LLM, enabling recursive agent hierarchies where tools spawn sub-agents
Journey Context:
Traditional MCP treats servers as passive tool providers. The sampling primitive \(MCP spec 2024-11-05\) allows servers to request LLM completions via the client, effectively turning a server into an agent that delegates to the host. Implementation: when a server encounters a task requiring reasoning, it sends 'sampling/createMessage' to the client with a prompt; the client \(host LLM\) returns the completion; the server processes this and returns structured results to the client. This enables recursive architectures: Client LLM -> MCP Server \(acts as agent\) -> requests sampling -> Client LLM processes -> returns. This eliminates the need to cram all logic into the client; servers can be intelligent. Security critical: clients must implement sampling endpoints with strict validation to prevent prompt injection from malicious servers requesting harmful completions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:03:53.104308+00:00— report_created — created