Commit 8bfc9b3
authored
fix(release): install the MCPB CLI before packing (#53)
The mcpb job failed on 24 of the 26 repos with a pack:mcpb script.
Pack scripts shell out to `npx mcpb pack`, which needs the mcpb CLI on
PATH. Only autotask-mcp and blumira-mcp carry @anthropic-ai/mcpb as a
dependency; everywhere else npx tried to fetch a package literally named
"mcpb" from the public registry:
npm error 404 Not Found - GET https://registry.npmjs.org/mcpb
The hand-rolled per-repo workflows all ran `npm install -g
@anthropic-ai/mcpb` for exactly this reason. This job omitted it because
it was validated only against autotask-mcp — one of the two repos where
the omission is invisible. Caught live on atera-mcp.
npx resolves node_modules/.bin before the global prefix, so a repo that
pins its own @anthropic-ai/mcpb version still wins; this is a fallback,
not an override.
Also corrects a false claim in this file's own comments. They said a
pack failure "cannot cascade into skipping the deploy chain" because
mcpb needs only `release`. That is true within this workflow and false
from the caller's side: a caller invokes this whole file as ONE job, so
any failure here fails the caller's `release` job and skips a caller
`deploy: needs: release`. Confirmed on atera-mcp — docker, mcp-registry
and security all succeeded, mcpb failed, deploy was skipped anyway.
A bug in this job is deploy-blocking, and the comments now say so.1 parent 097afd8 commit 8bfc9b3
2 files changed
Lines changed: 62 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
499 | 501 | | |
500 | 502 | | |
501 | 503 | | |
502 | | - | |
503 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
504 | 519 | | |
505 | 520 | | |
506 | 521 | | |
| |||
560 | 575 | | |
561 | 576 | | |
562 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
563 | 596 | | |
564 | 597 | | |
565 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
11 | 33 | | |
12 | 34 | | |
13 | 35 | | |
| |||
0 commit comments