UNPKG

mcp-quickbase

Version:

Work with Quickbase via Model Context Protocol

42 lines (41 loc) 1.11 kB
import { McpTool, ToolRegistry } from "../types/mcp"; /** * Implementation of the MCP Tool Registry * Manages all available MCP tools */ export declare class ToolRegistryImpl implements ToolRegistry { private tools; /** * Get a tool by name * @param name Tool name * @returns The tool or undefined if not found */ getTool(name: string): McpTool<any, any> | undefined; /** * Register a tool * @param tool Tool to register */ registerTool<TParams, TResult>(tool: McpTool<TParams, TResult>): void; /** * Get all registered tools * @returns Array of all registered tools */ getAllTools(): McpTool<any, any>[]; /** * Get tool names * @returns Array of tool names */ getToolNames(): string[]; /** * Check if a tool exists * @param name Tool name * @returns True if the tool exists */ hasTool(name: string): boolean; /** * Get tool count * @returns Number of registered tools */ getToolCount(): number; } export declare const toolRegistry: ToolRegistryImpl;