HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
The MCP bridges wait 90 s for a call, not the SDK's 5 s (#310)
github-actions[bot]898c002cd9fb
diff --git a/runner/aider_mcp_bridge.py b/runner/aider_mcp_bridge.pyindex 9850e698..8c627ea0 100644--- a/runner/aider_mcp_bridge.py+++ b/runner/aider_mcp_bridge.py@@ -72,7 +72,9 @@ def _target(servers: dict, name: str):if headers:import httpx2from mcp.client.streamable_http import streamable_http_client- return streamable_http_client(url, http_client=httpx2.AsyncClient(headers=headers))+ # 90 s, not httpx's 5 s read default: the plugs plane caps a call at 60 s and a takeover+ # holds one 45 s; under load a navigate answered ReadTimeout (hosted, 2026-09-28).+ return streamable_http_client(url, http_client=httpx2.AsyncClient(headers=headers, timeout=90.0))return urlcmd = entry.get("command")if cmd:diff --git a/runner/mcp_bridge.py b/runner/mcp_bridge.pyindex 6b3ec0f8..2b11914a 100644--- a/runner/mcp_bridge.py+++ b/runner/mcp_bridge.py@@ -34,7 +34,11 @@ async def main() -> int:headers = json.loads(os.environ.get("HR_MCP_HEADERS") or "{}")except json.JSONDecodeError:headers = {}- remote = sse_client(url, headers=headers or None) if transport == "sse" else streamablehttp_client(url, headers=headers or None)+ # 90 s per request and 600 s on the event stream, not the SDK's 5 s and 30 s: the plugs plane+ # caps a call at 60 s and a takeover holds one 45 s; under load a browser call and even the+ # tool listing timed out (hosted, omp and aider, 2026-09-28).+ remote = (sse_client(url, headers=headers or None, timeout=90, sse_read_timeout=600) if transport == "sse"+ else streamablehttp_client(url, headers=headers or None, timeout=90, sse_read_timeout=600))async with remote as streams:async with ClientSession(streams[0], streams[1]) as session:init = await session.initialize()diff --git a/runner/tests/test_aider_driver.py b/runner/tests/test_aider_driver.pyindex 5ed6c790..313ad635 100644--- a/runner/tests/test_aider_driver.py+++ b/runner/tests/test_aider_driver.py@@ -468,7 +468,7 @@ def _stub_mcp_sdk(monkeypatch):sh = types.ModuleType("mcp.client.streamable_http")sh.streamable_http_client = lambda url, http_client=None: ("http", url, http_client)hx = types.ModuleType("httpx2")- hx.AsyncClient = lambda headers=None: ("client", headers)+ hx.AsyncClient = lambda headers=None, timeout=None: ("client", headers)client = types.ModuleType("mcp.client")pkg = types.ModuleType("mcp")pkg.client = client