feat(ci): ship one MCP Bundle per release, for every operating system - #6
Merged
Conversation
The 0.2.0 release attached six loose binaries and no `.mcpb`. That leaves a user to work out which of the six matches their machine, put it somewhere, and wire stdio up by hand — for a server whose whole point is that a host launches it. The cross-builds were already there; nothing combined them. A `bundle` job now collects the same three server binaries the build matrix already produces onto one runner and packs them into a single `devup-mcp-<version>.mcpb`. One file installs on any of the three, because `server.mcp_config.platform_overrides` — keyed by `linux`, `darwin` and `win32`, which is Node's `process.platform` and so exactly what the host looks itself up by — names the matching command at launch. Its one required `user_config` value is the workspace directory, which becomes the server's only writable root, so the install dialog asks for the thing that would otherwise be an unpredictable process cwd. Only the MCP server is carried: devup-mcp-visual is a comparison CLI a consumer repository runs in its own CI, not something a host ever launches. `finalize` waits on the bundle as well as the binaries, so a published release cannot be missing it, exactly as it already could not be missing a platform. Three checks hold the bundle to what it claims, each for a failure that is invisible until a user hits it. The manifest is schema-validated on every pull request. It was otherwise first exercised on a release run, where a malformed manifest is found after the tag and the draft already exist. Every command the manifest can select is confirmed to exist inside the staged archive. `mcpb validate` only ever inspects `server.entry_point`, so a typo in a `platform_overrides` path passes validation and ships a bundle broken on exactly one operating system and healthy on the two the runner can see. The packed archive is read back to confirm the two Unix binaries kept their executable bit. This is why the job must run on Linux: mcpb writes Unix permission bits into the zip only from a Unix host — from Windows it writes none at all — and the artifact round trip between jobs does not carry file modes either, so the bit has to be restored and then proved. Measured rather than assumed: mcpb stores `(mode & 0o777) << 16`, without the regular-file type bits, so zipinfo renders the type column as `?` even for a correct archive, and a check on a leading `-` would have rejected every good bundle instead of the bad ones. The assertion reads the owner execute position, and was run against four archives — packed Unix-executable, Unix-executable with type bits, Unix non-executable, and Windows-packed — passing the first two and failing the last two. The version comes from `[workspace.package]` through one script shared with the release path, so the manifest, the archive filename and the tag cannot drift apart. The mcpb CLI is pinned, since its packing behaviour is load-bearing here. No crate behaviour changes. The version moves because the released artifacts do.
Contributor
Changepacksdevup-mcp@0.2.0 → 0.2.1 - crates/devup-mcp/Cargo.tomlPatch
devup-mcp-devup-ui@0.2.0 → 0.2.1 - crates/devup-mcp-devup-ui/Cargo.tomlPatch
devup-mcp-figma@0.2.0 → 0.2.1 - crates/devup-mcp-figma/Cargo.tomlPatch
devup-mcp-visual@0.2.0 → 0.2.1 - crates/devup-mcp-visual/Cargo.tomlPatch
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(ci): ship one MCP Bundle per release, for every operating system
The 0.2.0 release attached six loose binaries and no
.mcpb. That leavesa user to work out which of the six matches their machine, put it
somewhere, and wire stdio up by hand — for a server whose whole point is
that a host launches it. The cross-builds were already there; nothing
combined them.
A
bundlejob now collects the same three server binaries the buildmatrix already produces onto one runner and packs them into a single
devup-mcp-<version>.mcpb. One file installs on any of the three,because
server.mcp_config.platform_overrides— keyed bylinux,darwinandwin32, which is Node'sprocess.platformand so exactlywhat the host looks itself up by — names the matching command at launch.
Its one required
user_configvalue is the workspace directory, whichbecomes the server's only writable root, so the install dialog asks for
the thing that would otherwise be an unpredictable process cwd. Only the
MCP server is carried: devup-mcp-visual is a comparison CLI a consumer
repository runs in its own CI, not something a host ever launches.
finalizewaits on the bundle as well as the binaries, so a publishedrelease cannot be missing it, exactly as it already could not be missing
a platform.
Three checks hold the bundle to what it claims, each for a failure that
is invisible until a user hits it.
The manifest is schema-validated on every pull request. It was otherwise
first exercised on a release run, where a malformed manifest is found
after the tag and the draft already exist.
Every command the manifest can select is confirmed to exist inside the
staged archive.
mcpb validateonly ever inspectsserver.entry_point,so a typo in a
platform_overridespath passes validation and ships abundle broken on exactly one operating system and healthy on the two the
runner can see.
The packed archive is read back to confirm the two Unix binaries kept
their executable bit. This is why the job must run on Linux: mcpb writes
Unix permission bits into the zip only from a Unix host — from Windows it
writes none at all — and the artifact round trip between jobs does not
carry file modes either, so the bit has to be restored and then proved.
Measured rather than assumed: mcpb stores
(mode & 0o777) << 16, withoutthe regular-file type bits, so zipinfo renders the type column as
?even for a correct archive, and a check on a leading
-would haverejected every good bundle instead of the bad ones. The assertion reads
the owner execute position, and was run against four archives — packed
Unix-executable, Unix-executable with type bits, Unix non-executable, and
Windows-packed — passing the first two and failing the last two.
The version comes from
[workspace.package]through one script sharedwith the release path, so the manifest, the archive filename and the tag
cannot drift apart. The mcpb CLI is pinned, since its packing behaviour
is load-bearing here.
No crate behaviour changes. The version moves because the released
artifacts do.