redocly-contrib/mcp-typescript-sdk
The official TypeScript SDK for Model Context Protocol servers and clients
Platform-specific configuration:
{
"mcpServers": {
"mcp-typescript-sdk": {
"command": "npx",
"args": [
"-y",
"mcp-typescript-sdk"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements the full MCP specification, making it easy to:
npm install @modelcontextprotocol/sdk> ⚠️ MCP requires Node.js v18.x or higher to work fine.
Let's create a simple MCP server that exposes a calculator tool and some data:
import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } fLoading reviews...