/** * get_config Tool * * MCP tool to retrieve the configuration for the current project's index. * Returns the config file path and its contents, allowing users to view * and locate their project's configuration. * * Features: * - Returns the full path to the config file * - Returns the current configuration contents * - Works even if index doesn't exist (returns path where config would be) */ import { z } from 'zod'; import { type Config } from '../storage/config.js'; import type { ToolContext } from './searchCode.js'; /** * Input schema for get_config tool (no required inputs) */ export declare const GetConfigInputSchema: z.ZodObject<{}, z.core.$strip>; /** * Inferred input type from schema */ export type GetConfigInput = z.infer; /** * Output structure for get_config tool */ export interface GetConfigOutput { /** Whether the config file exists */ exists: boolean; /** Absolute path to the config file */ configPath: string; /** Absolute path to the index directory */ indexPath: string; /** Current configuration (if exists) */ config?: Config; /** Message for the user */ message: string; } /** * Get configuration for the current project * * Returns the config file path and contents for the current project's index. * If no config exists, returns the path where it would be created. * * @param input - The input (empty object, uses project context) * @param context - Tool context containing the project path * @returns Config file information * * @example * ```typescript * const result = await getConfig( * {}, * { projectPath: '/path/to/project' } * ); * * console.log(result.configPath); // '/Users/you/.mcp/search/indexes/abc123/config.json' * console.log(result.config); // { include: ["**\/*"], exclude: [], ... } * ``` */ export declare function getConfig(input: GetConfigInput, context: ToolContext): Promise; /** * MCP tool definition for get_config * * This tool retrieves configuration information. * It does NOT require confirmation as it's a read-only operation. */ export declare const getConfigTool: { name: string; description: string; inputSchema: { type: "object"; properties: {}; required: string[]; }; requiresConfirmation: boolean; }; //# sourceMappingURL=getConfig.d.ts.map