core: add configurable timeout for MCP tool calls to prevent hanging requests

This commit is contained in:
Dax Raad
2025-12-30 23:06:07 -05:00
parent 94dca309e9
commit ed4ce67cdc
2 changed files with 25 additions and 7 deletions

View File

@@ -844,6 +844,12 @@ export namespace Config {
.optional()
.describe("Tools that should only be available to primary agents."),
continue_loop_on_deny: z.boolean().optional().describe("Continue the agent loop when a tool call is denied"),
mcp_timeout: z
.number()
.int()
.positive()
.optional()
.describe("Timeout in milliseconds for model context protocol (MCP) requests"),
})
.optional(),
})