fix: extend timeout for schematic query commands on large files

Add list_schematic_nets, list_schematic_labels, and get_schematic_view
to the longRunningCommands list so they use the 10-minute timeout
instead of the default 30 seconds. These commands regularly exceed
the 30s limit on larger schematic files.
This commit is contained in:
William Viana
2026-04-05 09:33:29 -07:00
parent 25f856024c
commit c43784cd78

View File

@@ -522,6 +522,9 @@ export class KiCADMcpServer {
"export_pdf",
"export_3d",
"sync_schematic_to_board",
"list_schematic_nets",
"list_schematic_labels",
"get_schematic_view",
];
if (longRunningCommands.includes(command)) {
commandTimeout = 600000; // 10 minutes for long operations