@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 +7 -6
- package/dist/index.js +233 -233
- package/dist/index.mjs +238 -238
- package/dist/infrastructure/config/config.interface.d.ts +17 -9
- package/dist/infrastructure/script/interfaces.d.ts +7 -0
- package/dist/infrastructure/test-suite/test-suite-service.d.ts +1 -1
- package/dist/runtime/mcp-tool-schemas.d.ts +20 -0
- package/package.json +1 -1
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:
|
|
692
|
-
toolMode: 'flat' | 'drilldown' | 'auto'; // How tools are exposed (default: '
|
|
693
|
-
drilldownThreshold: number; // 'auto' switches to drill-down above this request-tool count (default:
|
|
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
|
-
- `
|
|
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.
|
|
704
|
-
- `
|
|
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
|
|