MCP Spec

Router skill for the Model Context Protocol (MCP) open spec, covering the protocol itself (JSON-RPC framing, capabilities, lifecycle), the client and server roles, the transport layers (stdio / streamable HTTP / SSE), and the core primitives (tools, resources, prompts, sampling, roots, completion). Use when the user asks about: writing an MCP server (in any language), writing an MCP client, the JSON-RPC protocol framing, the initialize handshake, capability negotiation, the stdio transport, the streamable HTTP transport, the SSE transport, defining a tool / resource / prompt, sampling, roots, or completion. Includes the TypeScript SDK (`@modelcontextprotocol/sdk`) and Python SDK (`mcp`). Skip: Anthropic's hosted MCP connector (use anthropic-platform-features), the user-facing Claude Connectors directory (use claude-connectors), Claude Code's `.mcp.json` config (use claude-code → SKILL-mcp).

xiaolai baa1c1f 24 files · 188.8 KB Updated

File contents

xiaolai/anthropic-docs/tree/main/skills/mcp-spec commit baa1c1f7ed

Frequently asked questions

npx skillmds@latest add xiaolai/mcp-spec