context-optimizer-mcp-server
Version:
Context optimization tools MCP server for AI coding assistants - compatible with GitHub Copilot, Cursor AI, and other MCP-supporting assistants
19 lines • 822 B
TypeScript
/**
* Base tool implementation for MCP tools
*
* Provides common functionality and interface for all context optimization tools
*/
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types';
export type MCPToolResponse = CallToolResult;
export declare abstract class BaseMCPTool {
abstract readonly name: string;
abstract readonly description: string;
abstract readonly inputSchema: object;
abstract execute(args: any): Promise<MCPToolResponse>;
protected createSuccessResponse(content: string): MCPToolResponse;
protected createErrorResponse(error: string): MCPToolResponse;
protected validateRequiredFields(args: any, required: string[]): string | null;
protected logOperation(message: string, data?: any): void;
toMCPTool(): Tool;
}
//# sourceMappingURL=base.d.ts.map