Skip to main content
Glama
to-mpc-tools.ts330 B
import type { ToolDefinition } from '../types/tool.js'; import { z } from 'zod'; export const toMpcTools = (defs: ToolDefinition<any>[]) => { return defs.map((def) => ({ name: def.name, description: def.description, inputSchema: z.toJSONSchema(def.inputSchema, { reused: 'ref' }), annotations: def.annotations, })); };

Latest Blog Posts

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/JoshTheDerf/directus-extension-mcp'

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