@cocaxcode/api-testing-mcp 0.6.0 → 0.8.0

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
@@ -351,11 +351,24 @@ curl -X POST \
351
351
 
352
352
  Save requests for reuse (with tags), manage variables across environments (dev/staging/prod), and switch contexts instantly.
353
353
 
354
+ ### Project-Scoped Environments
355
+
356
+ Different projects can have different active environments. When you switch to an environment for a specific project, it only affects that project — other projects keep their own active environment.
357
+
358
+ ```
359
+ "Switch to dev for this project" → dev is active only in the current project
360
+ "Switch to prod globally" → prod is the default for projects without a specific assignment
361
+ "Show me which projects have environments" → lists all project-environment assignments
362
+ "Clear the project environment for this project" → falls back to the global active environment
363
+ ```
364
+
365
+ Resolution order: project-specific environment → global active environment.
366
+
354
367
  ---
355
368
 
356
369
  ## Tool Reference
357
370
 
358
- 25 tools organized in 8 categories:
371
+ 27 tools organized in 8 categories:
359
372
 
360
373
  | Category | Tools | Count |
361
374
  |----------|-------|-------|
@@ -363,7 +376,7 @@ Save requests for reuse (with tags), manage variables across environments (dev/s
363
376
  | **Testing** | `assert` | 1 |
364
377
  | **Flows** | `flow_run` | 1 |
365
378
  | **Collections** | `collection_save` `collection_list` `collection_get` `collection_delete` | 4 |
366
- | **Environments** | `env_create` `env_list` `env_set` `env_get` `env_switch` `env_rename` `env_delete` `env_spec` | 8 |
379
+ | **Environments** | `env_create` `env_list` `env_set` `env_get` `env_switch` `env_rename` `env_delete` `env_spec` `env_project_clear` `env_project_list` | 10 |
367
380
  | **API Specs** | `api_import` `api_spec_list` `api_endpoints` `api_endpoint_detail` | 4 |
368
381
  | **Mock** | `mock` | 1 |
369
382
  | **Utilities** | `load_test` `export_curl` `diff_responses` `bulk_test` | 4 |
@@ -378,7 +391,8 @@ All data lives in `~/.api-testing/` (user home directory) as plain JSON — no d
378
391
 
379
392
  ```
380
393
  ~/.api-testing/
381
- ├── active-env # Active environment name
394
+ ├── active-env # Global active environment name
395
+ ├── project-envs.json # Per-project active environments
382
396
  ├── collections/ # Saved requests
383
397
  ├── environments/ # Environment variables (dev, prod, ...)
384
398
  └── specs/ # Imported OpenAPI specs
@@ -412,7 +426,7 @@ Override the default directory in your MCP config:
412
426
  git clone https://github.com/cocaxcode/api-testing-mcp.git
413
427
  cd api-testing-mcp
414
428
  npm install
415
- npm test # 77 tests across 10 suites
429
+ npm test # 83 tests across 10 suites
416
430
  npm run build # ESM bundle via tsup
417
431
  npm run typecheck # Strict TypeScript
418
432
  ```