Skip to main content
Glama

MCP Files

by OrionPotter
types.tsโ€ข531 B
import type { z, ZodSchema } from 'zod' export interface ToolResult { success: boolean output: string error?: string } export interface ToolConfig<N extends string, S extends ZodSchema = ZodSchema> { id: N name?: string schema: S description: string isReadOnly?: boolean isEnabled?: boolean isResource?: boolean handler: (args: z.infer<S>, context?: any) => Promise<any> | any fromArgs: (args: string[]) => z.infer<S> } export type Tool<S extends ZodSchema = ZodSchema> = Required<ToolConfig<string, S>>

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/OrionPotter/flesler-mcp-tools'

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