Back to articles
How to generate docs for your MCP server in 30 seconds

How to generate docs for your MCP server in 30 seconds

via Dev.to PythonNamish Saxena

You built an MCP server. Now someone asks: "What tools does it expose?" And you point them at a README. Or tell them to run tools/list and stare at raw JSON. Or you copy-paste the schema into a doc that will drift from reality within a week. There's a better way. Here's how to get this instead: Install # TypeScript npm install @mcpspec-dev/typescript # Python pip install mcpspec-dev Add one line to your server TypeScript: import { McpServer } from " @modelcontextprotocol/sdk/server/mcp.js " ; import { mcpspec } from " @mcpspec-dev/typescript " ; const server = new McpServer ({ name : " my-server " , version : " 1.0.0 " }); // Your existing tools, resources, prompts — untouched const app = mcpspec ( server , { info : { title : " My MCP Server " , version : " 1.0.0 " }, }); app . listen ( 3000 ); Python (FastMCP): from mcp.server.fastmcp import FastMCP from mcpspec_dev import McpSpec mcp = FastMCP ( " my-server " ) # Your existing tools — untouched spec = McpSpec ( mcp , info = { " title

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
2 views

Related Articles