Webmcp
WebMCP enables servers to request LLM completions through client-side sampling. This process allows for advanced agentic behaviors while ensuring security and privacy through human oversight. Users interact with a modal dialog to provide responses to sampling requests.
- ▪WebMCP facilitates sampling requests from servers to clients.
- ▪The system maintains security and privacy through human oversight.
- ▪Users are prompted to respond to sampling requests via a dialog.
Opening excerpt (first ~120 words) tap to expand
Sampling with WebMCP Sampling allows servers to request LLM completions through the client. This enables sophisticated agentic behaviors while maintaining security and privacy via human oversight. When a sampling request is received, WebMCP displays a modal dialog asking the user to provide a response: // Sampling is handled automatically by WebMCP // The server sends a sampling request: { "method": "sampling/createMessage", "params": { "messages": [ { "role": "user", "content": { "type": "text", "text": "Write the appropriate DuckDB SQL to get the list of users joined with their accounts" } } ], "systemPrompt": "You are a helpful assistant.", "includeContext": "thisServer", "maxTokens": 100 } } // The WebMCP widget shows a dialog to the user, who can then type a response // The response…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Webmcp.