feat(mcp): make tool_timeout configurable per server via config

This commit is contained in:
Re-bin
2026-02-22 18:04:13 +00:00
parent 51f6247aed
commit 437ebf4e6e
3 changed files with 23 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
⚡️ Delivers core agent functionality in just **~4,000** lines of code — **99% smaller** than Clawdbot's 430k+ lines.
📏 Real-time line count: **3,806 lines** (run `bash core_agent_lines.sh` to verify anytime)
📏 Real-time line count: **3,862 lines** (run `bash core_agent_lines.sh` to verify anytime)
## 📢 News
@@ -776,6 +776,21 @@ Two transport modes are supported:
| **Stdio** | `command` + `args` | Local process via `npx` / `uvx` |
| **HTTP** | `url` + `headers` (optional) | Remote endpoint (`https://mcp.example.com/sse`) |
Use `toolTimeout` to override the default 30s per-call timeout for slow servers:
```json
{
"tools": {
"mcpServers": {
"my-slow-server": {
"url": "https://example.com/mcp/",
"toolTimeout": 120
}
}
}
}
```
MCP tools are automatically discovered and registered on startup. The LLM can use them alongside built-in tools — no extra configuration needed.