UNPKG

@gebrai/gebrai

Version:

Model Context Protocol server for GeoGebra mathematical visualization

41 lines 1.03 kB
import { McpTool, ToolDefinition } from '../types/mcp'; /** * Tool Registry for managing MCP tools */ export declare class ToolRegistry { private tools; /** * Register a new tool */ register(definition: ToolDefinition): void; /** * Get all registered tools */ getTools(): McpTool[]; /** * Get a specific tool by name */ getTool(name: string): ToolDefinition | undefined; /** * Execute a tool by name with given parameters */ executeTool(name: string, params?: Record<string, unknown>): Promise<{ content: Array<{ type: "text" | "image" | "resource"; text?: string; data?: string; mimeType?: string; }>; isError?: boolean; }>; /** * Check if a tool exists */ hasTool(name: string): boolean; /** * Get the number of registered tools */ getToolCount(): number; } export declare const toolRegistry: ToolRegistry; //# sourceMappingURL=index.d.ts.map