modelcontextprotocol/typescript-sdk — reverse-engineered prompt
Reverse engineered prompt
Build me the official TypeScript SDK for Model Context Protocol. I want a monorepo that gives developers everything they need to build MCP servers and MCP clients, with clean APIs for tools, resources, prompts, transports, auth helpers, and some higher level client utilities. It should run on Node, Bun, and Deno, and also include lightweight adapters for plain Node HTTP, Express, and Hono without hiding the core MCP behavior.
Please add runnable examples that make the SDK easy to understand, like a simple greet tool over stdio, a more realistic weather style server, and a client side chatbot example. I also want good documentation, generated API docs, and tests so the packages and examples are actually usable.
Keep the middleware thin and put the real logic in the main server and client packages. Since this repo’s main branch is the in progress v2 line, aim at the current v2 spec and docs, but make it clear that v1 is still the safer production choice for now. If anything is unclear, check the latest MCP docs online.
Want more depth? Deep Reverse