Skip to main content
Glama

Muni-MCP

by leafsicle
add.ts443 B
import { z } from "zod"; import { experimental_PaidMcpAgent as PaidMcpAgent } from "@stripe/agent-toolkit/cloudflare"; export function addTool(agent: PaidMcpAgent<Env, any, any>) { const server = agent.server; // @ts-ignore server.tool( "add", "This tool adds two numbers together.", { a: z.number(), b: z.number() }, async ({ a, b }: { a: number; b: number }) => ({ content: [{ type: "text", text: String(a + b) }], }) ); }

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/leafsicle/muni-mcp'

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