Skip to main content
Glama
config.ts903 B
import { z } from "zod"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export interface ToolRegistry { name: string; // Unique name for the tool description: string; // Human-readable description schema: z.ZodRawShape; // Zod schema for tool parameters handler: ( args: { [key: string]: any }, extra: any ) => Promise<{ content: { type: "text"; text: string; }[]; isError?: boolean; }>; // Function to execute when tool is called enabled: boolean; // Whether the tool is enabled by default } // Configuration for API export const API_CONFIG = { BASE_URL: 'https://api.exa.ai', ENDPOINTS: { SEARCH: '/search' }, DEFAULT_NUM_RESULTS: 5, DEFAULT_MAX_CHARACTERS: 3000 } as const; // Tool registry that will be populated by tool modules export const toolRegistry: Record<string, ToolRegistry> = {};

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/jackedelic/exa-mcp-server'

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