The Model Context Protocol: extending LLMs with tools
Explains the Model Context Protocol and how tool access complements structured outputs for LLM-powered apps. Walks through building a simple FastMCP email server that can list messages and return content from a sample mailbox. Shows how to expose the server through a Cloudflare tunnel and connect it to OpenAI's remote MCP support so models can call the tools. Discusses security considerations and the flexibility MCP provides for richer, multi-step workflows.