/** * Reusable prompt templates exposed over MCP `prompts/list` / `prompts/get`. * * These are TEMPLATES: they return instructions for the calling client's model * to execute, which is the standard MCP contract. The previous versions on * /api/v1/mcp called a server-side `complete()` instead — that burned Misar AI * credits on every prompt fetch, produced text the client had no way to steer, * and could not work at all on the stdio transport, where no inference * credential exists. Every tool name referenced below is a real tool in * `src/tools/`. */ /** One argument a prompt accepts. */ export interface PromptArgument { name: string; description: string; required: boolean; } /** A prompt template: its metadata plus the builder that renders it. */ export interface PromptDefinition { name: string; description: string; arguments: PromptArgument[]; build: (args: Record) => string; } /** Every prompt this server exposes. */ export declare const PROMPTS: PromptDefinition[]; /** One prompt as advertised by `prompts/list`. */ export interface PromptSummary { /** Prompt id to pass to {@link getPrompt}. */ name: string; /** What the prompt is for. */ description: string; /** Arguments it accepts, and which are required. */ arguments: Array<{ name: string; description: string; required?: boolean; }>; } /** A rendered prompt, as returned by `prompts/get`. */ export interface RenderedPrompt { /** What the prompt is for. */ description: string; /** The messages to seed the conversation with. */ messages: Array<{ role: "user"; content: { type: "text"; text: string; }; }>; } /** Every prompt this server exposes, as `prompts/list` returns them. */ export declare function listPrompts(): PromptSummary[]; /** Render one prompt by name, or null when no such prompt exists. */ export declare function getPrompt(name: string, args?: Record): RenderedPrompt | null; //# sourceMappingURL=prompts.d.ts.map