Repository navigation
Conversation
This was referenced Nov 18, 2026
This was referenced Nov 18, 2026
raymondk
force-pushed
the
deploy-2b-uploads
branch
from
November 18, 2026 03:17
d1a3669 to
19b7215
Compare
… a file to A model cannot write an archive into a tool call, so a server on another machine than the project needs the bytes another way. `Uploads` is the store behind that way: a ticket minted for a session (256 random bits, single use, five minutes, one pending per session), the archive streamed to a private file under a size cap on presenting it, and the upload held fifteen minutes for the session that minted the ticket to take, once. The store alone; the tool that mints the ticket and the route that takes the PUT follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
raymondk
force-pushed
the
deploy-2b-uploads
branch
from
November 18, 2026 03:31
19b7215 to
732711b
Compare
Contributor
Author
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.
Summary
The store behind uploading a bundle, on its own: one file, no caller yet.
An MCP tool call carries JSON the model writes, and a model cannot write an archive. A server on another machine than the project therefore needs the bytes to arrive another way.
Uploadsis that way's state: a ticket minted inside an authenticated tool call, presented once on an ordinaryPUTof the archive, producing an upload id the deploy call names.0600under a0700directory, resolved to an absolute path when the store is made.The tool that mints the ticket (
icp_deploy_upload) is in #232 with the rest of the tool group, and the route that takes thePUTis in #243.Where this came from
uploads.rswas part of #243; the file is unchanged from the top of the old stack. It is a PR of its own so that the ticket's properties can be reviewed apart from the HTTP composition.Review so far
Carried over from #243:
expectwording nit is applied.curlis the right way to upload.Changes
crates/imcp2-deploy/src/uploads.rs(294 lines of code, 101 of tests).crates/imcp2-deploy/Cargo.tomladdsgetrandom.Testing
cargo build --locked --workspace --all-targetscargo test --locked --workspace --all-targetscargo fmt --all -- --checkTested: the ticket lifecycle, session binding, the cap declared and undeclared, nothing kept of a refused upload, re-minting.
The stack
Six stacked PRs that bring
icp deployto the MCP servers through the icp CLI's own project library. Re-cut on 2026-11-18 so that each file arrives once, in the form it has at the top; the tree at the top is unchanged from before the re-cut, rebased onto currentmain.icp-projecthost for an untrusted bundleic-agent, an identity that refreshes#242 (streamed phases, interruption) and #245 (one bundle source per server, crates.io) are closed: their changes are folded into the PRs above.
Checklist
🤖 Generated with Claude Code