@greynewell/mcpbr 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -402,6 +402,45 @@ mcp_server:
|
|
|
402
402
|
SUPERMODEL_API_KEY: "${SUPERMODEL_API_KEY}"
|
|
403
403
|
```
|
|
404
404
|
|
|
405
|
+
### MCP Timeout Configuration
|
|
406
|
+
|
|
407
|
+
mcpbr supports configurable timeouts for MCP server operations to handle different server types and workloads.
|
|
408
|
+
|
|
409
|
+
#### Configuration Fields
|
|
410
|
+
|
|
411
|
+
| Field | Description | Default |
|
|
412
|
+
|-------|-------------|---------|
|
|
413
|
+
| `startup_timeout_ms` | Timeout in milliseconds for MCP server startup | 60000 (60s) |
|
|
414
|
+
| `tool_timeout_ms` | Timeout in milliseconds for MCP tool execution | 900000 (15 min) |
|
|
415
|
+
|
|
416
|
+
These fields map to the `MCP_TIMEOUT` and `MCP_TOOL_TIMEOUT` environment variables used by Claude Code. See the [Claude Code settings documentation](https://code.claude.com/docs/en/settings.md) for more details.
|
|
417
|
+
|
|
418
|
+
#### Example Configuration
|
|
419
|
+
|
|
420
|
+
```yaml
|
|
421
|
+
mcp_server:
|
|
422
|
+
command: "npx"
|
|
423
|
+
args: ["-y", "@modelcontextprotocol/server-filesystem", "{workdir}"]
|
|
424
|
+
startup_timeout_ms: 60000 # 60 seconds for server to start
|
|
425
|
+
tool_timeout_ms: 900000 # 15 minutes for long-running tools
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
#### Common Timeout Values
|
|
429
|
+
|
|
430
|
+
Different server types require different timeout settings based on their operational characteristics:
|
|
431
|
+
|
|
432
|
+
| Server Type | startup_timeout_ms | tool_timeout_ms | Notes |
|
|
433
|
+
|-------------|-------------------|-----------------|-------|
|
|
434
|
+
| Fast (filesystem, git) | 10000 (10s) | 30000 (30s) | Local operations with minimal overhead |
|
|
435
|
+
| Medium (web search, APIs) | 30000 (30s) | 120000 (2m) | Network I/O with moderate latency |
|
|
436
|
+
| Slow (code analysis, databases) | 60000 (60s) | 900000 (15m) | Complex processing or large datasets |
|
|
437
|
+
|
|
438
|
+
**When to adjust timeouts:**
|
|
439
|
+
|
|
440
|
+
- **Increase `startup_timeout_ms`** if your server takes longer to initialize (e.g., loading large models, establishing database connections)
|
|
441
|
+
- **Increase `tool_timeout_ms`** if your tools perform long-running operations (e.g., codebase analysis, file processing, AI inference)
|
|
442
|
+
- **Decrease timeouts** for fast servers to fail quickly on connection issues
|
|
443
|
+
|
|
405
444
|
### Custom Agent Prompt
|
|
406
445
|
|
|
407
446
|
You can customize the prompt sent to the agent using the `agent_prompt` field:
|