Build a stateless MCP v2 server in TypeScript. A hands-on guide to the MCP TypeScript v2 SDK — the new @modelcontextprotocol/server packages, createMcpHandler, Standard Schema tools, and what replaces session handling.
Introduction
MCP v2 is final. Protocol revision 2026-07-28 shipped, and the TypeScript SDK shipped with it: @modelcontextprotocol/server 2.0.0 and its companion packages are on npm as stable releases.
If you want a v2 server running today, this guide gets you there. The fastest path is one command:
npx @agentailor/create-mcp-server@0.7.0 --name=fetch-mcp-server








