Repository navigation
fix(deploy): drop some tools and fix descriptions - #266
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The deployment instructions can build the wrong environment and leave tools-only clients without recovery guidance for unknown outcomes, risking duplicate funded canisters.
2 open issues
What changed in this PR
This PR reduces the MCP deployment tool set and expands the remaining deployment instructions to guide agents through bundling and preserving canister mappings.
Changes:
- Remove
icp_cycles_balanceandicp_deploy_guidefrom the deploy tool group, retaining the guide resource. - Expand deployment descriptions with bundle-transfer steps, creation confirmation, and mapping persistence.
- Align documentation and hosted/local server tests with the reduced tool set.
| File | Description |
|---|---|
src/deploy.rs |
Update hosted tool-list and request-size tests. |
README.md |
Remove references to the retired deploy helper tools. |
crates/imcp2-local/src/server.rs |
Adjust tool-count assertions and remove guide-tool checks. |
crates/imcp2-local/README.md |
Align local deployment documentation with the remaining tools. |
crates/imcp2-core/static/skills/deploy-with-mcp.md |
Remove balance-tool guidance from prerequisites. |
crates/imcp2-core/src/deploy/server.rs |
Clarify server instructions for saving canister mappings. |
crates/imcp2-core/src/deploy/mod.rs |
Remove helper tools and supporting code; expand deployment instructions and update tests. |
Review effort: Max
aterga
reviewed
Nov 19, 2026
aterga
reviewed
Nov 19, 2026
Co-authored-by: Arshavir Ter-Gabrielyan <[email protected]>
Users ask to deploy their app, not a bundle; the tool's description already says it takes the bundle `icp project bundle` writes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The deployment instructions omit the canister ID mapping needed to prevent duplicate canisters on redeploy, assume unavailable local upload support, and lack the promised funding default and creation confirmation.
1 open issue
2 resolved since last review
Review effort: Max
aterga
previously approved these changes
Nov 19, 2026
aterga
approved these changes
Nov 19, 2026
sea-snake
approved these changes
Nov 19, 2026
|
|
||
| #[tool( | ||
| description = "Deploy an icp project bundle (the .tar.gz that `icp project bundle` writes) to the Internet Computer as the user, running every phase of `icp deploy`. Pass the canister_ids a previous deploy returned to upgrade rather than create anew. The call lasts as long as the deploy and reports each phase as it completes, as a progress notification (send a progressToken) and a log message; cancelling the call interrupts the deploy at its next step. Returns the status, the resulting canister-id mapping, and a log of each phase; on failure or interruption the mapping still holds every canister that was created.", | ||
| description = "Deploy an ICP app to the Internet Computer. The steps: (1) bundle the project in the user's environment with `icp project bundle --output <file>.tar.gz`; (2) upload that bundle via icp_deploy_upload; (3) save the `canister_ids` this tool returns, unchanged, into `.icp/data/mappings/<environment>.ids.json` file of the project. Skipping step 3 makes the next deploy create a new set of canisters instead of upgrading these. The call lasts as long as the deploy and reports each phase as it completes, as a progress notification (send a progressToken) and a log message; cancelling the call interrupts the deploy at its next step. Returns the status, the resulting canister-id mapping, and a log of each phase; on failure or interruption the mapping still holds every canister that was created, so write it back then too. The resource `skill://deploy-with-mcp` has the full guide.", |
aterga
pushed a commit
that referenced
this pull request
Nov 19, 2026
#266 rewrote the icp_deploy description and hard-coded its step (2) as "upload that bundle via icp_deploy_upload". The local server does not list that tool: it takes the bundle as `bundle_path`. The sentence that IcDeployTools::tools() put in per server was anchored on text the rewrite removed, so it silently stopped being put in, and a_server_lists_the_bundle_argument_it_takes has failed on main since. Step (2) is now the anchor. The description says "hand that bundle to this tool", and each server replaces that with its own way in: upload via `icp_deploy_upload` on a server with an upload store, the bundle's absolute path as `bundle_path` on one without. The hosted server's text is what #266 wrote, with the tool name in backticks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTGJNrpdaVxN1aY8XSX
aterga
pushed a commit
that referenced
this pull request
Nov 19, 2026
Review asked for the description's text back. The tool's description in the source says step (2) as #266 wrote it, "upload that bundle via icp_deploy_upload", and the hosted server lists it unchanged. Only a server without an upload store, imcp2-local, puts "pass that bundle's absolute path as `bundle_path`" in its place, since it lists no icp_deploy_upload. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTGJNrpdaVxN1aY8XSX
aterga
pushed a commit
that referenced
this pull request
Nov 19, 2026
* Bump crates to 0.7.0 All three crates share one version. A minor bump: since 0.6.1 the server gained the deploy tools (bundle host, upload store, pipeline, MCP tools, remote serving and metrics, #261, #265, #266), the cap on the MCP request body behind the bearer gate (#241), vetted-connector branding surfaced to Internet Identity (#200), and get_canister_candid now carries the interface text in its structured output (#229). The rc-0.7.0 candidate needs this on main first: deploy-candidate.yml and publish-crate.yml both refuse a tag whose version disagrees with every Cargo.toml. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTGJNrpdaVxN1aY8XSX * Deploy tools: say per server how to hand icp_deploy the bundle again #266 rewrote the icp_deploy description and hard-coded its step (2) as "upload that bundle via icp_deploy_upload". The local server does not list that tool: it takes the bundle as `bundle_path`. The sentence that IcDeployTools::tools() put in per server was anchored on text the rewrite removed, so it silently stopped being put in, and a_server_lists_the_bundle_argument_it_takes has failed on main since. Step (2) is now the anchor. The description says "hand that bundle to this tool", and each server replaces that with its own way in: upload via `icp_deploy_upload` on a server with an upload store, the bundle's absolute path as `bundle_path` on one without. The hosted server's text is what #266 wrote, with the tool name in backticks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTGJNrpdaVxN1aY8XSX * README: depend on imcp2 0.7 `imcp2 = "0.6"` matches 0.6.x only, and the README ships in the crate, so a reader of 0.7.0's page would be told to depend on the release before it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTGJNrpdaVxN1aY8XSX * Deploy tools: keep the description's step (2) as written Review asked for the description's text back. The tool's description in the source says step (2) as #266 wrote it, "upload that bundle via icp_deploy_upload", and the hosted server lists it unchanged. Only a server without an upload store, imcp2-local, puts "pass that bundle's absolute path as `bundle_path`" in its place, since it lists no icp_deploy_upload. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP2vTGJNrpdaVxN1aY8XSX --------- Co-authored-by: Claude <[email protected]>
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.



Removes two tools from the deploy group,
icp_cycles_balanceandicp_deploy_guide, so the deploy surface is justicp_deploy_bundle, plusicp_deploy_uploadon the hosted server. With the guide tool gone,icp_deploy_bundle's own description now carries the steps.Tools removed
icp_cycles_balance(deploy group copy). Also removes the code only it used:cli_identityand theCyclesBalance/cycles_balance_ofimports. The core copy intools.rsstays, but it's in the deferred protocol half, so no server lists a balance tool now.icp_deploy_guideand itsDeployGuideOutput. The guide is still served as theskill://deploy-with-mcpresource.Descriptions
icp_deploy_bundleis rewritten so an agent can deploy correctly without reading the skill resource:icp project bundle, hand the bundle over (upload on a server that listsicp_deploy_upload,bundle_pathotherwise), call with the contents of.icp/data/mappings/<environment>.ids.json, then write the returnedcanister_idsback to that file.icp_deploy_uploadgoes back to its ticket/curl description. An earlier commit on this branch had given it the deploy tool's text by mistake.skill://deploy-with-mcpinstead oficp_deploy_guide.Docs and tests
README.md,crates/imcp2-local/README.mdand the deploy skill no longer mention the removed tools.icp_cycles_balance.icp_deploy_uploadas its target.Testing
cargo test --workspaceandcargo clippy --all-targets --workspacepass.🤖 Generated with Claude Code