@cubis/foundry 0.3.51 → 0.3.53

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.
Files changed (30) hide show
  1. package/README.md +26 -12
  2. package/bin/cubis.js +662 -80
  3. package/mcp/dist/index.js +108 -46
  4. package/mcp/src/server.ts +51 -39
  5. package/mcp/src/upstream/passthrough.test.ts +30 -0
  6. package/mcp/src/upstream/passthrough.ts +113 -17
  7. package/package.json +1 -1
  8. package/workflows/skills/postman/SKILL.md +31 -25
  9. package/workflows/skills/postman/references/full-mode-setup.md +36 -0
  10. package/workflows/skills/postman/references/troubleshooting.md +25 -0
  11. package/workflows/skills/postman/references/workspace-policy.md +20 -0
  12. package/workflows/workflows/agent-environment-setup/manifest.json +1 -1
  13. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/database.md +1 -1
  14. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/database.md +1 -1
  15. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/AGENTS.md +4 -3
  16. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +1 -1
  17. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/SKILL.md +31 -25
  18. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/full-mode-setup.md +36 -0
  19. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/troubleshooting.md +25 -0
  20. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/workspace-policy.md +20 -0
  21. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/database.md +1 -1
  22. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/SKILL.md +31 -25
  23. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/full-mode-setup.md +36 -0
  24. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/troubleshooting.md +25 -0
  25. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/workspace-policy.md +20 -0
  26. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/SKILL.md +31 -25
  27. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/full-mode-setup.md +36 -0
  28. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/troubleshooting.md +25 -0
  29. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/workspace-policy.md +20 -0
  30. package/workflows/workflows/agent-environment-setup/shared/workflows/database.md +1 -1
package/README.md CHANGED
@@ -2,13 +2,16 @@
2
2
 
3
3
  Workflow-first installer for multi-platform AI agent environments.
4
4
 
5
- Last updated: 2026-03-03.
5
+ Last updated: 2026-03-04.
6
6
 
7
7
  `cbx` installs workflows, skills, wrappers, and rule files for:
8
8
  - Codex
9
9
  - Antigravity (Gemini)
10
10
  - GitHub Copilot
11
11
 
12
+ Official install targets: `codex`, `antigravity`, `copilot`.
13
+ Mirror/parity artifacts are maintained for `cursor` and `windsurf`, but those are not direct install targets.
14
+
12
15
  Skill install default is profile-based:
13
16
  - default profile: `core`
14
17
  - add `--skill-profile web-backend` for broader web/backend stack
@@ -48,6 +51,7 @@ Recommended environment setup:
48
51
  ```bash
49
52
  export POSTMAN_API_KEY_DEFAULT="<your-postman-api-key>"
50
53
  export STITCH_API_KEY_DEFAULT="<your-stitch-api-key>" # Antigravity StitchMCP only
54
+ cbx workflows config keys persist-env --service all --scope global
51
55
  ```
52
56
 
53
57
  ## Quickstarts
@@ -55,7 +59,7 @@ export STITCH_API_KEY_DEFAULT="<your-stitch-api-key>" # Antigravity StitchMCP on
55
59
  ### Codex (recommended baseline)
56
60
 
57
61
  ```bash
58
- cbx workflows install --platform codex --bundle agent-environment-setup --postman
62
+ cbx workflows install --platform codex --scope global --bundle agent-environment-setup --postman --postman-mode full
59
63
  ```
60
64
 
61
65
  Important:
@@ -65,7 +69,7 @@ Important:
65
69
  ### Antigravity
66
70
 
67
71
  ```bash
68
- cbx workflows install --platform antigravity --bundle agent-environment-setup --postman
72
+ cbx workflows install --platform antigravity --scope global --bundle agent-environment-setup --postman --postman-mode full
69
73
  ```
70
74
 
71
75
  This also manages default `StitchMCP` wiring for Antigravity.
@@ -73,7 +77,7 @@ This also manages default `StitchMCP` wiring for Antigravity.
73
77
  ### Copilot
74
78
 
75
79
  ```bash
76
- cbx workflows install --platform copilot --bundle agent-environment-setup --postman
80
+ cbx workflows install --platform copilot --scope global --bundle agent-environment-setup --postman --postman-mode full
77
81
  ```
78
82
 
79
83
  ## Scope Model (Global vs Project)
@@ -129,7 +133,7 @@ Postman and Stitch now support multiple named profiles with active selection.
129
133
  }
130
134
  ],
131
135
  "activeProfileName": "default",
132
- "mcpUrl": "https://mcp.postman.com/minimal"
136
+ "mcpUrl": "https://mcp.postman.com/mcp"
133
137
  },
134
138
  "stitch": {
135
139
  "profiles": [
@@ -178,6 +182,9 @@ cbx workflows config keys migrate-inline --scope global --redact
178
182
 
179
183
  # Doctor check for inline keys / unsafe headers
180
184
  cbx workflows config keys doctor --scope global
185
+
186
+ # Persist selected env aliases to ~/.cbx/credentials.env (mode 600)
187
+ cbx workflows config keys persist-env --service all --scope global
181
188
  ```
182
189
 
183
190
  Alias commands are also available:
@@ -188,7 +195,7 @@ Alias commands are also available:
188
195
  ### Interactive Postman workspace selection
189
196
 
190
197
  ```bash
191
- cbx workflows install --platform codex --bundle agent-environment-setup --postman
198
+ cbx workflows install --platform codex --scope global --bundle agent-environment-setup --postman --postman-mode full
192
199
  ```
193
200
 
194
201
  If active Postman env var (for example `POSTMAN_API_KEY_DEFAULT`) is available and `--yes` is not used, installer can show workspace chooser and save selected `workspaceId` in active Postman profile.
@@ -196,7 +203,7 @@ If active Postman env var (for example `POSTMAN_API_KEY_DEFAULT`) is available a
196
203
  `--postman` now installs side-by-side MCP topology by default:
197
204
  - direct Postman MCP server (`postman`)
198
205
  - direct Stitch MCP server where applicable (`StitchMCP` for Antigravity)
199
- - local Foundry MCP command server (`cubis-foundry` via `cbx mcp serve --transport stdio --scope auto`)
206
+ - local Foundry MCP command server (`cubis-foundry` via `cbx mcp serve --transport stdio --scope global`)
200
207
 
201
208
  `--postman` also installs the `postman` skill. Managed platform rules then treat Postman intent as skill-first:
202
209
  - run `skill_search "postman"`
@@ -206,25 +213,25 @@ If active Postman env var (for example `POSTMAN_API_KEY_DEFAULT`) is available a
206
213
  To opt out of Foundry MCP registration during install:
207
214
 
208
215
  ```bash
209
- cbx workflows install --platform codex --bundle agent-environment-setup --postman --no-foundry-mcp
216
+ cbx workflows install --platform codex --scope global --bundle agent-environment-setup --postman --postman-mode full --no-foundry-mcp
210
217
  ```
211
218
 
212
219
  ### Manual workspace ID
213
220
 
214
221
  ```bash
215
- cbx workflows install --platform codex --bundle agent-environment-setup --postman --postman-workspace-id "<workspace-id>" --yes
222
+ cbx workflows install --platform codex --scope global --bundle agent-environment-setup --postman --postman-mode full --postman-workspace-id "<workspace-id>" --yes
216
223
  ```
217
224
 
218
225
  Clear workspace ID:
219
226
 
220
227
  ```bash
221
- cbx workflows install --platform codex --bundle agent-environment-setup --postman --postman-workspace-id null --yes
228
+ cbx workflows install --platform codex --scope global --bundle agent-environment-setup --postman --postman-mode full --postman-workspace-id null --yes
222
229
  ```
223
230
 
224
231
  If config already exists and you want to overwrite saved values:
225
232
 
226
233
  ```bash
227
- cbx workflows install --platform codex --bundle agent-environment-setup --postman --overwrite --yes
234
+ cbx workflows install --platform codex --scope global --bundle agent-environment-setup --postman --postman-mode full --overwrite --yes
228
235
  ```
229
236
 
230
237
  ### StitchMCP (Antigravity)
@@ -261,17 +268,20 @@ Runtime target patching:
261
268
  Codex:
262
269
  - Global MCP runtime target: `~/.codex/config.toml` (via `codex mcp add/remove`)
263
270
  - Project MCP runtime target: `<workspace>/.vscode/mcp.json`
264
- - Foundry side-by-side server id: `cubis-foundry` (command: `cbx mcp serve --transport stdio --scope auto`)
271
+ - Foundry side-by-side server id: `cubis-foundry` (command: `cbx mcp serve --transport stdio --scope <global|project>`)
272
+ - Install now pins scope explicitly (`global` or `project`) in this command.
265
273
 
266
274
  Antigravity:
267
275
  - Global runtime target: `~/.gemini/settings.json` (`mcpServers`)
268
276
  - Project runtime target: `<workspace>/.gemini/settings.json` (`mcpServers`)
269
277
  - Foundry side-by-side server id: `cubis-foundry` (command template)
278
+ - Install now pins scope explicitly (`global` or `project`) in this command.
270
279
 
271
280
  Copilot:
272
281
  - Global runtime target: `~/.copilot/mcp-config.json` (`servers`)
273
282
  - Project runtime target: `<workspace>/.vscode/mcp.json` (`servers`)
274
283
  - Foundry side-by-side server id: `cubis-foundry` (stdio command server)
284
+ - Install now pins scope explicitly (`global` or `project`) in this command.
275
285
 
276
286
  ## Command Reference
277
287
 
@@ -289,6 +299,7 @@ MCP runtime flags (install):
289
299
 
290
300
  ```bash
291
301
  cbx workflows install --platform codex --bundle agent-environment-setup --postman \
302
+ --postman-mode full \
292
303
  --mcp-runtime docker \
293
304
  --mcp-fallback local \
294
305
  --mcp-image ghcr.io/cubetiq/foundry-mcp:<package-version> \
@@ -429,6 +440,9 @@ cbx workflows config --scope global --edit
429
440
  cbx workflows config --scope global --workspace-id "<workspace-id>"
430
441
  cbx workflows config --scope global --clear-workspace-id
431
442
 
443
+ # Set Postman MCP mode without jq edits (also patches MCP artifacts/targets)
444
+ cbx workflows config --scope global --platform codex --postman-mode full
445
+
432
446
  # Switch MCP runtime preference quickly
433
447
  cbx workflows config --scope project --mcp-runtime local
434
448
  cbx workflows config --scope project --mcp-runtime docker --mcp-fallback local