import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { McpContext } from './mcp-server.js'; import type { RegisteredServer } from './registry.js'; /** * Resolve a project target to a server. Accepts: * - server ID (projectId:type) * - projectId (basename-hash4) — picks first server * - full directory path — picks first server * - undefined — uses session currentServer, or auto if only one */ declare function resolveServer(ctx: McpContext, target?: string): RegisteredServer | null; declare function getLogPaths(ctx: McpContext, projectArg?: string): Record; declare function errResult(err: any): { content: { type: "text"; text: string; }[]; isError: boolean; }; declare function jsonResult(data: any): { content: { type: "text"; text: string; }[]; }; /** Send a command to the session's locked browser. Tries Playwright (CDP) first, falls back to RPC. */ declare function cmd(ctx: McpContext, method: string, params?: any): Promise; export { resolveServer, getLogPaths, errResult, jsonResult, cmd }; export declare function registerCoreTools(mcp: McpServer, ctx: McpContext): void; //# sourceMappingURL=mcp-tools-core.d.ts.map