fix: snapshot saves logs+prompt to logs/ subdir; routing via_x under start pad; router disabled
This commit is contained in:
@@ -232,7 +232,9 @@ export class KiCADMcpServer {
|
||||
logger.info("Registering KiCAD tools, resources, and prompts...");
|
||||
|
||||
// Register router tools FIRST (for tool discovery and execution)
|
||||
registerRouterTools(this.server, this.callKicadScript.bind(this));
|
||||
// NOTE: Router disabled — causes Claude to hallucinate tool schemas via search_tools/execute_tool.
|
||||
// All tools are registered directly below and are immediately visible to Claude.
|
||||
// registerRouterTools(this.server, this.callKicadScript.bind(this));
|
||||
|
||||
// Register all tools
|
||||
registerProjectTools(this.server, this.callKicadScript.bind(this));
|
||||
|
||||
@@ -84,8 +84,9 @@ export function registerProjectTools(server: McpServer, callKicadScript: Functio
|
||||
{
|
||||
step: z.string().describe("Step number or identifier, e.g. '1' or '2'"),
|
||||
label: z.string().describe("Short label for this checkpoint, e.g. 'schematic_ok' or 'layout_ok'"),
|
||||
prompt: z.string().optional().describe("Full prompt text to save as PROMPT_step{step}_{timestamp}.md alongside the snapshot"),
|
||||
},
|
||||
async (args: { step: string; label: string }) => {
|
||||
async (args: { step: string; label: string; prompt?: string }) => {
|
||||
const result = await callKicadScript("snapshot_project", args);
|
||||
return {
|
||||
content: [{
|
||||
|
||||
Reference in New Issue
Block a user