Skip to main content
Glama
index.ts364 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { McpToolDefinition } from "../types/MCP.js"; export const prettifyJson = (data: any) => { return JSON.stringify(data, null, 2); }; export const registerTool = (server: McpServer, tool: McpToolDefinition) => { server.tool(tool.name, tool.description, tool.params, tool.handler); };

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/mauricio-cantu/brasil-api-mcp-server'

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