18. Building a local MCP server
Build a local server around a small real data source, then add tools, resources, prompts, validation, logging, and graceful failure behavior. Connect it over standard input/output and verify it with an inspector and an existing host.