@http-forge/core 0.5.1 → 0.5.3

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 CHANGED
@@ -688,9 +688,10 @@ interface McpConfig {
688
688
  excludedCollections: string[]; // IDs or names to hide (default: [] = expose all)
689
689
  excludedSuites: string[]; // IDs or names to hide (default: [] = expose all)
690
690
  toolPrefix: string; // Prefix for every tool name (default: "")
691
- maxRequestsPerCall: number; // Safety cap per collection/suite call (default: 50)
692
- toolMode: 'flat' | 'drilldown' | 'auto'; // How tools are exposed (default: 'flat')
693
- drilldownThreshold: number; // 'auto' switches to drill-down above this request-tool count (default: 200)
691
+ maxRequestsPerCall: number; // Safety cap per collection/suite call (default: 500; min 1, max 10000)
692
+ toolMode: 'flat' | 'drilldown' | 'auto'; // How tools are exposed (default: 'auto')
693
+ drilldownThreshold: number; // 'auto' switches to drill-down above this request-tool count (default: 100; min 10, max 500)
694
+ toolPageSize: number; // Max tools per tools/list page (default: 150; 0 = no pagination; min 10, max 1000)
694
695
  cors: {
695
696
  allowedOrigins: string[]; // CORS origins (default: ["http://localhost","http://127.0.0.1"])
696
697
  };
@@ -699,9 +700,9 @@ interface McpConfig {
699
700
 
700
701
  **`toolMode`** controls how collections/requests are surfaced as MCP tools:
701
702
 
702
- - `flat` (default) — one tool per request, folder, collection, and suite. Richest discoverability; best for normal workspaces.
703
- - `drilldown` — a small fixed set of generic tools (`list_collections`, `list_requests`, `run_request`, `run_folder`, `run_collection`, `run_suite`) whose arguments select the target. Collection/suite names are advertised as JSON-schema `enum`s so agents pick real values. Keeps the tool list tiny for very large workspaces.
704
- - `auto` — stays `flat` until the per-request tool count would exceed `drilldownThreshold`, then switches to `drilldown`.
703
+ - `auto` (**default**) — uses `flat` below `drilldownThreshold` (100 requests), then switches to `drilldown`. Adapts automatically as the workspace grows.
704
+ - `drilldown` — a small fixed set of generic tools (`list_collections`, `list_requests`, `run_request`, `run_folder`, `run_collection`, `run_suite`) whose arguments select the target. Keeps the tool list tiny regardless of scale.
705
+ - `flat` — one tool per request, folder, collection, and suite. Only suitable for small, stable collections (<100 requests). **Avoid for large workspaces** — the tool list bloats the AI context window and degrades tool-selection accuracy.
705
706
 
706
707
  Use `IConfigService.getMcpConfig()` to read the resolved config with all defaults applied.
707
708