Create a complete Model Context Protocol (MCP) server in TypeScript with the following specifications:
npm init and create package.json@modelcontextprotocol/sdk, zod@3, and transport-specific packages"type": "module" in package.jsontsx or ts-node for developmentMcpServer class for high-level implementationregisterTool() method with descriptive namestitle and description fieldscontent and structuredContent in resultsregisterResource() with ResourceTemplate for dynamic URIsregisterPrompt() with argument schemasFor HTTP Servers:
For stdio Servers:
npm start or npx tsx server.ts)npx @modelcontextprotocol/inspector
http://localhost:PORT/mcp
Generate a complete, production-ready MCP server with comprehensive documentation, type safety, and error handling.