How-toAI Engineering
Build a Custom MCP Server in TypeScript and Add It to Claude Code (Tested)
A custom MCP server, built and tested on the current SDK: @modelcontextprotocol/server 2.4.0 and the 2026-07-28 protocol. Register a tool with a Zod schema, serve it with serveStdio, test it with the official client or the MCP Inspector, add it to Claude Code with claude mcp add, and see what really happens when your server writes to stdout.
· 20 min read