Building an MCP server: the Model Context Protocol explained by hand
I built a tiny Model Context Protocol server in Python stdlib and drove it by hand over stdio. Real JSON-RPC frames for initialize, tools/list, and tools/call — plus the architecture, tool schemas, security boundaries, and where an MCP server honestly beats plain function calling.