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
28 lines • 1.02 kB
TypeScript
/**
* File Analysis Tool - Extract specific information from files without reading entire contents into chat
*
* Ports the FileAnalysisTool from VS Code extension to MCP with Node.js file system
*/
import { BaseMCPTool, MCPToolResponse } from './base';
export declare class AskAboutFileTool extends BaseMCPTool {
readonly name = "askAboutFile";
readonly description = "Extract specific information from files without reading their entire contents into chat context. Works with text files, code files, images, PDFs, and more.";
readonly inputSchema: {
type: string;
properties: {
filePath: {
type: string;
description: string;
};
question: {
type: string;
description: string;
};
};
required: string[];
};
execute(args: any): Promise<MCPToolResponse>;
private createFileAnalysisPrompt;
private getApiKey;
}
//# sourceMappingURL=askAboutFile.d.ts.map