Skip to content

Personal AI, On Personal Devices

Python

fix(mcp): bump default tool timeout 30s → 600s for MCP-discovered tools

Gilles Ceyssat36482b1a2781
diff --git a/src/openjarvis/mcp/client.py b/src/openjarvis/mcp/client.py
index c37a04a0..5b495922 100644
--- a/src/openjarvis/mcp/client.py
+++ b/src/openjarvis/mcp/client.py
@@ -84,11 +84,15 @@ class MCPClient:
"""
response = self._send("tools/list")
tools = response.result.get("tools", [])
+ # MCP tools often wrap long-running pentest/scan commands. The default
+ # ToolSpec timeout (30s) kills them mid-scan. Bump to 600s — individual
+ # MCP servers can shorten via their own protocol if needed.
return [
ToolSpec(
name=t["name"],
description=t.get("description", ""),
parameters=t.get("inputSchema", {}),
+ timeout_seconds=600.0,
)
for t in tools
]