/** * NCP Management Internal MCP * * Provides tools for managing NCP configuration: * - add: Add MCP(s) with smart detection (single/bulk/file/clipboard/URL) * - remove: Remove MCP * - list: List configured MCPs * - export: Export configuration */ import { InternalMCP, InternalTool, InternalToolResult, ElicitationCapable } from './types.js'; import ProfileManager from '../profiles/profile-manager.js'; export declare class NCPManagementMCP implements InternalMCP { name: string; description: string; private profileManager; private elicitationServer; tools: InternalTool[]; /** * Set the ProfileManager instance * Called by orchestrator after initialization */ setProfileManager(profileManager: ProfileManager): void; /** * Set the elicitation server for user interaction * Called by MCP server after initialization */ setElicitationServer(server: ElicitationCapable): void; executeTool(toolName: string, parameters: any): Promise; private handleAdd; private handleRemove; private handleList; private importFromClipboard; /** * Import Photon from clipboard containing TypeScript code */ private importPhotonFromClipboard; private importFromFile; private importFromDiscovery; private handleExport; /** * Get tools from a newly added MCP by temporarily connecting to it * Returns array of tools or null if connection fails */ private getToolsFromMCP; private handleDoctor; /** * Install Photon from registry * Downloads .photon.ts file and optional schema, saves to ~/.ncp/photons/ */ private installPhoton; /** * Import Photon from a local .photon.ts file * Copies the file (and optional schema) to ~/.ncp/photons/ */ private importPhotonFromFile; /** * Download Photon from a URL * Downloads .photon.ts file and optional schema from HTTP(S) URL */ private downloadPhotonFromURL; /** * Add CLI tool for discovery * Indexes CLI tool operations so they appear in find() results */ private addCliTool; /** * Validate MCP command for security * Prevents command injection by checking against allowlist and validating format * * @returns null if valid, error message if invalid */ private validateMCPCommand; } //# sourceMappingURL=ncp-management.d.ts.map