Skip to main content
Glama

MCP Server Boilerplate

by cds-id
index.ts463 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { calculatorTool } from './calculatorTool.js'; import { timestampTool } from './timestampTool.js'; /** * Register all tools with the MCP server * @param server The MCP server instance */ export function registerTools(server: McpServer): void { // Register calculator tool calculatorTool(server); // Register timestamp tool timestampTool(server); // Add more tools here }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cds-id/mcp-server-boilerplate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server