Using Mastra as an example of how an MCP server can be built.
import { FastMCP } from 'tylerbarnes-fastmcp-fix';
const server = new FastMCP({
name: 'Mastra Documentation Server',
version: "1.0.0"
});
server.addTool(docsTool);
export { server };
Docs tool:
https://github.com/mastra-ai/mastra/blob/6bea86da52314a6465734d49ab58feb099955d70/packages/mcp-docs-server/src/tools/docs.ts
We can just generate all of this when we make a docs release, it will automatically publish @zetachain/docs on npm, which will contain an MCP server that can be installed into Cursor, for example.
Using Mastra as an example of how an MCP server can be built.
Docs tool:
https://github.com/mastra-ai/mastra/blob/6bea86da52314a6465734d49ab58feb099955d70/packages/mcp-docs-server/src/tools/docs.ts
We can just generate all of this when we make a docs release, it will automatically publish
@zetachain/docson npm, which will contain an MCP server that can be installed into Cursor, for example.