/** * The unit's MCP tool list (DES-MCP-TOOLS-001 ยง8; slice S4): what the garden shim's `list` shows a * worker. The registry's callable tools are judged by the engine (`Core.listMcpTools`) for the unit * the worker's `WICKED_MCP_TOKEN` is bound to, with the same evaluation a call gets and no * arguments; a certain deny (an evaluator's write tool, a policy deny) is left out, and nothing is * recorded, so a list is never mistaken for a call. */ import type { McpToolsResponse } from '../core/types.js'; import type { McpCallableTool } from './registry.js'; export interface McpToolListDeps { registry: { callableTools(): Promise; }; /** `Core.listMcpTools`, read per request; `null` = the linked engine has none. */ lister: () => ((requestJson: string) => Promise) | null; } export interface McpToolListAnswer { status: number; body: McpToolsResponse | { error: string; code: 'invalid_token' | 'bad_request' | 'guard_error' | 'mcp_unavailable'; }; } export declare function listUnitTools(deps: McpToolListDeps, token: string): Promise; //# sourceMappingURL=tool-list.d.ts.map