@cubis/foundry 0.3.50 → 0.3.52

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 (32) hide show
  1. package/README.md +31 -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 +76 -7
  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/rules/GEMINI.md +10 -1
  14. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/database.md +1 -1
  15. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +10 -1
  16. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/database.md +1 -1
  17. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/AGENTS.md +14 -4
  18. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +11 -2
  19. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/SKILL.md +76 -7
  20. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/full-mode-setup.md +36 -0
  21. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/troubleshooting.md +25 -0
  22. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/workspace-policy.md +20 -0
  23. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/database.md +1 -1
  24. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/SKILL.md +76 -7
  25. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/full-mode-setup.md +36 -0
  26. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/troubleshooting.md +25 -0
  27. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/workspace-policy.md +20 -0
  28. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/SKILL.md +76 -7
  29. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/full-mode-setup.md +36 -0
  30. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/troubleshooting.md +25 -0
  31. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/workspace-policy.md +20 -0
  32. 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,30 +203,35 @@ 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`)
207
+
208
+ `--postman` also installs the `postman` skill. Managed platform rules then treat Postman intent as skill-first:
209
+ - run `skill_search "postman"`
210
+ - load `skill_get "postman"` before workflow/agent routing
211
+ - prefer Postman MCP tools over Newman/CLI fallback unless explicitly requested
200
212
 
201
213
  To opt out of Foundry MCP registration during install:
202
214
 
203
215
  ```bash
204
- 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
205
217
  ```
206
218
 
207
219
  ### Manual workspace ID
208
220
 
209
221
  ```bash
210
- 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
211
223
  ```
212
224
 
213
225
  Clear workspace ID:
214
226
 
215
227
  ```bash
216
- 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
217
229
  ```
218
230
 
219
231
  If config already exists and you want to overwrite saved values:
220
232
 
221
233
  ```bash
222
- 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
223
235
  ```
224
236
 
225
237
  ### StitchMCP (Antigravity)
@@ -256,17 +268,20 @@ Runtime target patching:
256
268
  Codex:
257
269
  - Global MCP runtime target: `~/.codex/config.toml` (via `codex mcp add/remove`)
258
270
  - Project MCP runtime target: `<workspace>/.vscode/mcp.json`
259
- - 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.
260
273
 
261
274
  Antigravity:
262
275
  - Global runtime target: `~/.gemini/settings.json` (`mcpServers`)
263
276
  - Project runtime target: `<workspace>/.gemini/settings.json` (`mcpServers`)
264
277
  - Foundry side-by-side server id: `cubis-foundry` (command template)
278
+ - Install now pins scope explicitly (`global` or `project`) in this command.
265
279
 
266
280
  Copilot:
267
281
  - Global runtime target: `~/.copilot/mcp-config.json` (`servers`)
268
282
  - Project runtime target: `<workspace>/.vscode/mcp.json` (`servers`)
269
283
  - Foundry side-by-side server id: `cubis-foundry` (stdio command server)
284
+ - Install now pins scope explicitly (`global` or `project`) in this command.
270
285
 
271
286
  ## Command Reference
272
287
 
@@ -284,6 +299,7 @@ MCP runtime flags (install):
284
299
 
285
300
  ```bash
286
301
  cbx workflows install --platform codex --bundle agent-environment-setup --postman \
302
+ --postman-mode full \
287
303
  --mcp-runtime docker \
288
304
  --mcp-fallback local \
289
305
  --mcp-image ghcr.io/cubetiq/foundry-mcp:<package-version> \
@@ -424,6 +440,9 @@ cbx workflows config --scope global --edit
424
440
  cbx workflows config --scope global --workspace-id "<workspace-id>"
425
441
  cbx workflows config --scope global --clear-workspace-id
426
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
+
427
446
  # Switch MCP runtime preference quickly
428
447
  cbx workflows config --scope project --mcp-runtime local
429
448
  cbx workflows config --scope project --mcp-runtime docker --mcp-fallback local