mushcode-mcp-server
Version:
A specialized Model Context Protocol server for MUSHCODE development assistance. Provides AI-powered code generation, validation, optimization, and examples for MUD development.
59 lines • 1.53 kB
TypeScript
import { Tool } from '@modelcontextprotocol/sdk/types.js';
import { ToolRegistry, ToolHandler } from '../types/mcp.js';
export declare class MushcodeToolRegistry implements ToolRegistry {
private tools;
private handlers;
/**
* Register a tool definition
*/
registerTool(tool: Tool): void;
/**
* Register a tool handler function
*/
registerToolHandler(name: string, handler: ToolHandler): void;
/**
* Get all registered tools
*/
getTools(): Tool[];
/**
* Get a specific tool by name
*/
getTool(name: string): Tool | undefined;
/**
* Get a tool handler by name
*/
getToolHandler(name: string): ToolHandler | undefined;
/**
* Check if a tool is registered
*/
hasTool(name: string): boolean;
/**
* Check if a tool handler is registered
*/
hasToolHandler(name: string): boolean;
/**
* Get the names of all registered tools
*/
getToolNames(): string[];
/**
* Get the count of registered tools
*/
getToolCount(): number;
/**
* Unregister a tool and its handler
*/
unregisterTool(name: string): boolean;
/**
* Clear all tools and handlers
*/
clear(): void;
/**
* Execute a tool with the given arguments
*/
callTool(name: string, args?: any): Promise<any>;
/**
* Validate that all registered tools have corresponding handlers
*/
validateRegistry(): string[];
}
//# sourceMappingURL=registry.d.ts.map