/** * Auto-completion handlers for prompt arguments and resource URIs. * Uses the MCP SDK's completable() to provide suggestions for: * - Prompt names (8 prompts) * - Resource URI paths (repo-summary template) */ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; import { z } from "zod"; declare const PROMPT_NAMES: string[]; /** * Creates a completable schema for prompt name suggestions. */ export declare function completablePromptName(): import("@modelcontextprotocol/sdk/server/completable.js").CompletableSchema; /** * Attempts to discover git repository paths for path completion. * Returns paths based on common locations and git rev-parse. */ declare function completeRepoPath(value: string): Promise; /** * Creates a ResourceTemplate with path completion for repo-summary. */ export declare function createCompletableRepoSummaryTemplate(): ResourceTemplate; /** * Registers a completable resource for repo-summary. * This replaces the original repo-summary resource registration * with one that supports auto-completion of the path variable. */ export declare function registerCompletableRepoSummary(server: McpServer, readCallback: (uri: URL, variables: Variables) => Promise<{ contents: { uri: string; mimeType: string; text: string; }[]; }>): void; export { PROMPT_NAMES, completeRepoPath };