Skip to main content
Glama
server.ts510 B
import { z } from "zod"; import { initializeMcpApiHandler } from "../lib/mcp-api-handler"; const handler = initializeMcpApiHandler( (server) => { // Add more tools, resources, and prompts here server.tool("echo", { message: z.string() }, async ({ message }) => ({ content: [{ type: "text", text: `Tool echo: ${message}` }], })); }, { capabilities: { tools: { echo: { description: "Echo a message", }, }, }, } ); export default handler;

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/dougdotcon/QuantMCP'

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