Skip to main content
Glama

MCP Server Starter

by GreatAuk
index.ts748 B
import type { ToolRegistration } from "@/types"; import { someFunctionTool } from "./exampleTool"; import { getAlertTool } from "./getAlert"; // biome-ignore lint/suspicious/noExplicitAny: Any is fine here because all tools validate their input schemas. export const createTools = (): ToolRegistration<any>[] => { return [ { ...someFunctionTool, // biome-ignore lint/suspicious/noExplicitAny: All tools validate their input schemas, so any is fine. handler: (args: any) => someFunctionTool.handler(args), }, { ...getAlertTool, // biome-ignore lint/suspicious/noExplicitAny: All tools validate their input schemas, so any is fine. handler: (args: any) => getAlertTool.handler(args), }, ]; };

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/GreatAuk/mcp-weather'

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