import type { Engine } from '../core/engine.ts'; import { type McpAccessContext } from './access.ts'; import type { McpSession } from './session.ts'; /** MCP tool definition. */ export type McpToolDefinition = { readonly name: string; readonly title?: string; readonly description: string; readonly inputSchema: Record; }; /** Result shape returned by MCP `tools/call`. */ export type McpToolResult = { readonly content: ReadonlyArray<{ readonly type: 'text'; readonly text: string; }>; readonly isError?: boolean; }; type ToolCallContext = McpAccessContext & { readonly session: McpSession; readonly requestId: unknown; }; /** Build deterministic MCP tool definitions for the current engine registry. */ export declare function listMcpTools(engine: Engine): McpToolDefinition[]; /** Invoke an MCP tool and shape application failures as tool errors. */ export declare function callMcpTool(name: string, argumentsValue: unknown, context: ToolCallContext): Promise; export {};