Repository navigation
Make icp_top_up_canister instructions-only: never execute funding - #153
Merged
Merged
Conversation
Marketplace directories (Anthropic, OpenAI) prohibit connectors that initiate or execute financial transactions on the user's behalf. The top-up tool previously drew cycles from the user's cycles-ledger balance or transferred ICP to the CMC — an on-chain funding operation executed by the server. The tool now executes nothing and moves no funds. It stays on the tool surface for completeness — topping up canisters is an Internet Computer platform capability — but it returns step-by-step CLI instructions (the icp CLI, or dfx) for the user to run the top-up themselves, in their own terminal, with keys they control. The description says exactly that, the annotations flip to read-only/non-destructive, and the structured output carries an explicit executed:false. The execution path and its wire types (cycles-ledger withdraw, CMC notify_top_up, the TPUP memo) are removed rather than left compiled-in, so the binary no longer contains a server-side top-up capability at all. icp_create_canister is unchanged. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk
There was a problem hiding this comment.
Pull request overview
Makes icp_top_up_canister instructions-only to satisfy marketplace transfer restrictions.
Changes:
- Removes server-side top-up execution paths.
- Returns CLI instructions with read-only annotations.
- Updates tests and documentation.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
README.md |
Documents instructions-only top-ups. |
crates/imcp2-core/src/tools.rs |
Changes tool behavior and annotations. |
crates/imcp2-core/src/management.rs |
Replaces funding execution with CLI instructions. |
Suppressed comments (1)
crates/imcp2-core/src/management.rs:395
- The parenthetical is false:
icp_create_canisterstill executes cycles-ledger and ICP/CMC funding paths in this module, and the PR explicitly leaves that behavior unchanged. Limit this compliance-facing assurance to top-ups rather than claiming the server performs no other funding operations.
"No top-up was performed and no funds were moved: this server does not \
execute top-ups (or any other funding operation) on your behalf. This \
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Address the Copilot review on the instructions-only top-up: - The amounts substituted into the printed CLI commands now go through the same validators the executing path used: a zero cycles amount and a non-numeric icp string (including anything smuggling shell input into a command advertised as copy-pastable) are rejected, never printed. A validated icp value is digits with at most one dot, inert in a shell. - The instructions text no longer claims the server executes no other funding operation — icp_create_canister still funds at creation; the assurance is scoped to top-ups. - cycles_balance's doc comment stops naming icp_top_up_canister as a spender, and the README's 'cycles takes precedence' sentence is scoped to icp_create_canister. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk
Feedback: keep the instructions simpler — one CLI, not two — and say where to find it. The dfx alternative is dropped; the steps now open with how to get the icp CLI (the npm one-liner inline, and the github.com/dfinity/icp-cli releases page for the other installers), matching the official icp-cli skill. Tests pin the install pointer. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk
sea-snake
approved these changes
Aug 26, 2026
aterga
pushed a commit
that referenced
this pull request
Aug 26, 2026
…iew) Address the reviews on the framing cleanup: - Per author feedback, Oisy (also a DeFi app) stops serving as the neutral usage example: name examples use NNS (the registry app that fits), and URL / bare-host examples use https://opencloud.org — live and IC-served (x-ic-canister-id present), so it passes the IC-evidence gate as documented. Oisy remains only where a wallet is genuinely meant: the refusal recommendation for financial operations. - The absolute 'never moves money or tokens' claims flagged by the review bot become enforcement-scoped statements: README, the landing trust card, and the server instructions now say token transfers, approvals, payments, and trades ARE REFUSED (via the update-call guard and the instructions-only top-up) and disclose that creating and funding the user's own canisters remains available through icp_create_canister. - The OpenAI submission doc presents the shipped changes as mitigations toward a still-pending attestation decision (the icp_create_canister funding path and the bespoke-method limitation are named as the open counterexamples), not as grounds to check the box. The Anthropic doc's 'shipped' section is phrased against the PR set (#153/#154) it describes rather than any single branch's tree. This PR is documentation/framing for the enforcement #153 and #154 ship; merge order remains #153, #154, then this. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk
aterga
pushed a commit
that referenced
this pull request
Aug 26, 2026
The framing PR now contains the enforcement it describes: main (with the merged instructions-only top-up, #153) and the ledger-method guard branch (#154) are merged in, and the PR is retargeted onto #154's branch so it cannot merge ahead of it — the ordering the review kept flagging is now mechanical rather than a note in the description. The Anthropic readiness row flips to verified since #153 is merged. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk
6 of 7 tasks
aterga
pushed a commit
that referenced
this pull request
Aug 27, 2026
Per maintainer review across the compliance PRs: creating and funding a canister spends the user's ICP or cycles, so the connector must not execute it. icp_create_canister now works exactly like the top-up tool (#153): it returns the icp CLI steps for the user to run themselves — install the CLI, check/mint cycles, icp canister create, and finally add the connector's management principal (printed by icp_cycles_balance) as a controller so icp_install_code and the lifecycle tools can operate the new canister. The executing paths are removed from the binary: the ICP-ledger transfer to the CMC, notify_create_canister, and the cycles-ledger create_canister call, with their wire types and helpers. With this, no tool initiates or executes a transfer of the user's funds: the server-wide 'asset-moving requests are denied' instruction now has no executing counterexample. The compliance refusal for cycles-ledger creation spends may name icp_create_canister again — it prints steps and executes nothing — and the CMC notify_* methods stay callable as the recovery path for a user's own interrupted CLI mint. README and server instructions updated; tests moved to pin the instructions-only contract (annotations, description, echoed amounts, controller handover step). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk
aterga
added a commit
that referenced
this pull request
Aug 27, 2026
* Refuse ledger transfer/approval methods in canister_update_call Marketplace directories (Anthropic, OpenAI) prohibit connectors that initiate or execute money or crypto transfers on the user's behalf, and this server's purpose is reading, building, and operating canisters — not moving funds. canister_update_call now refuses the update methods that move value or grant spending rights on ICP ledgers, on every canister, before any network work. The disallow list leans on the ICRC standards that ledgers on ICP follow — ICRC-1/ICRC-2 (fungible transfers and approvals), ICRC-4 (batch transfers), ICRC-7/ICRC-37 (NFT transfers and approvals) — plus the ICP ledger's pre-ICRC surface (transfer, send_dfx, notify_dfx), the cycles ledger's withdraw/withdraw_from, and the ERC-20-style names of the older DIP20/EXT token standards (transferFrom, approve). Matching is exact on a normalized name (lowercased, separators stripped), never a substring test, so spelling variants are caught without false positives on names that merely contain a blocked one. The refusal is a recommendation, not a dead end: it tells the agent to send the user to a wallet or frontend they control in their own browser (e.g. https://oisy.com; for governance, the NNS dapp). The tool description states the policy up front — financial transactions are not supported, for marketplace compliance and user safety — and a test pins both the description and the refusal wording. The CMC's notify_create_canister / notify_top_up stay callable: they move no funds out of any account and blocking them would strand the documented recovery path for an interrupted ICP funding flow. The module docs are explicit that a name-based list is a guardrail for the standardized ledger surface, not a hermetic seal over bespoke canisters. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Block cycles-ledger creation spends; scope the no-financial claim (review) Address the Copilot review on the ledger-method guard: - The cycles ledger's create_canister / create_canister_from draw cycles from the caller's balance through the exact generic route this guard closes (withdraw was already blocked for that reason), so they join the disallow list. Their refusal redirects to the purpose-built icp_create_canister tool (or the icp CLI) rather than to a wallet — creation stays supported, only the uncontrolled generic route closes. - The absolute 'this server does not move financial assets' wording in the tool description and the refusal message is scoped to 'this tool': precise on this branch standalone (icp_create_canister still funds at creation) and after the companion top-up change merges. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * State the no-financial rule as policy, not as a capability claim (review) The review bot's follow-up is right that a method deny-list cannot make the generic update tool UNABLE to move assets — a bespoke method name is out of any list's reach, which the module docs and submission docs already record. The description and refusal therefore stop claiming impossibility: they state the binding policy (moving financial assets through this tool is not supported and must not be attempted under any method name) alongside what is mechanically enforced (the standardized ledger surface is refused on every canister). Whether to go further — dropping the generic update surface or moving to a reviewed allow-list — is the recorded 'directory-safe profile' option and stays a product decision, not something this PR takes on its own. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Frame the financial restriction as intent plus reasonable measures Per author direction on the PR: no web system can tell from the outside whether a given request moves funds, so the honest claim is intention, not capability. The description now reads 'not intended for moving money, tokens, or other financial assets on the user's behalf' with the ledger-method refusals presented as the reasonable measures taken to refuse asset-moving requests; the refusal message matches, and the description test pins the new header phrase. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Explain why real funds live on the standardized ledger surface (review) Per author feedback: tokens are only valuable if they can be exchanged or used, and the ICP ecosystem's financial platforms (wallets like Oisy, exchanges like ICP Swap) integrate ledgers through the ICRC standards — a token on a bespoke, non-standard ledger can exist, but the ecosystem's platforms cannot hold or trade it, so it carries little exchangeable value. Also syncs the quoted policy wording in the same note with the intent framing the description now uses. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Split the guard: literal ICRC matching plus ledger-scoped abstract names Per review: normalization was both too loose and unnecessary. The guard now has two groups. ICRC-standard methods (icrc1_transfer, icrc2_*, the ICRC-4/-7/-37 equivalents) are matched literally on every canister — the standards fix the exact names and Candid method names are case-sensitive, so a differently-spelled name is not the standard method and could never reach it on chain. Abstract names (transfer, send_dfx, notify_dfx, withdraw, withdraw_from, create_canister, create_canister_from) are refused only on the specific system canister where they are financial — the ICP ledger and the cycles ledger by canister id — so an app whose own transfer or withdraw is non-financial keeps working. The legacy DIP20/EXT names on arbitrary canisters (transfer, transferFrom, approve) are deliberately no longer matched: too abstract to block everywhere without breaking non-financial apps, per review, and those standards sit outside the ecosystem's ICRC-integrated platforms; the stated policy covers them. Tests pin literal matching, the per-ledger scoping in both directions, and the unchanged refusal contract; the tool description and README describe the scoped behavior. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Point the creation refusal at the user-run icp CLI, not a connector tool Per review: recommending icp_create_canister inside the refusal reads as this server supporting canister creation on the user's behalf, which is not what the refusal should communicate. The cycles-ledger create_canister / create_canister_from refusal now points the user at running the operation themselves with the icp CLI (with the install pointer), like every other refusal points at a user-controlled venue. README row updated to match; the test now pins that the refusal names the CLI and never the connector tool. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Make the financial policy a server instruction in plain protective terms Per review, three changes to how the policy is stated: - The policy paragraph moves out of canister_update_call's description into the server-level get_info instructions (now a SERVER_INSTRUCTIONS const so the test can pin it): a policy block inside the tool's own description reads as a hint that the tool is usable for financial transactions. The description is purely functional again. - The wording drops the marketplace/compliance rationale and the 'reasonable measures' hedge: it now simply states that financial transactions are not supported and asset-moving requests are denied, to protect the user. - The refusal message loses the 'do not route under another method name' sentence, which read as a hint that the guards could be bypassed. README row aligned; tests updated to pin the description staying free of financial language and the instructions carrying the policy. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Make icp_create_canister instructions-only: never execute funding Per maintainer review across the compliance PRs: creating and funding a canister spends the user's ICP or cycles, so the connector must not execute it. icp_create_canister now works exactly like the top-up tool (#153): it returns the icp CLI steps for the user to run themselves — install the CLI, check/mint cycles, icp canister create, and finally add the connector's management principal (printed by icp_cycles_balance) as a controller so icp_install_code and the lifecycle tools can operate the new canister. The executing paths are removed from the binary: the ICP-ledger transfer to the CMC, notify_create_canister, and the cycles-ledger create_canister call, with their wire types and helpers. With this, no tool initiates or executes a transfer of the user's funds: the server-wide 'asset-moving requests are denied' instruction now has no executing counterexample. The compliance refusal for cycles-ledger creation spends may name icp_create_canister again — it prints steps and executes nothing — and the CMC notify_* methods stay callable as the recovery path for a user's own interrupted CLI mint. README and server instructions updated; tests moved to pin the instructions-only contract (annotations, description, echoed amounts, controller handover step). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Keep the instructions-only tool descriptions functional, not disclaiming Per review: policy language belongs in the server-level instructions, not in per-tool descriptions. The top-up and creation descriptions now state the one functional fact a calling model needs — the tool only prints the icp CLI steps and never executes the operation — without the provided-for-completeness / never-moves-funds disclaimer prose. Tests pin the functional wording and that the descriptions stay free of financial language. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk --------- Co-authored-by: Claude <[email protected]>
aterga
added a commit
that referenced
this pull request
Aug 27, 2026
…tions (#155) * Refuse ledger transfer/approval methods in canister_update_call Marketplace directories (Anthropic, OpenAI) prohibit connectors that initiate or execute money or crypto transfers on the user's behalf, and this server's purpose is reading, building, and operating canisters — not moving funds. canister_update_call now refuses the update methods that move value or grant spending rights on ICP ledgers, on every canister, before any network work. The disallow list leans on the ICRC standards that ledgers on ICP follow — ICRC-1/ICRC-2 (fungible transfers and approvals), ICRC-4 (batch transfers), ICRC-7/ICRC-37 (NFT transfers and approvals) — plus the ICP ledger's pre-ICRC surface (transfer, send_dfx, notify_dfx), the cycles ledger's withdraw/withdraw_from, and the ERC-20-style names of the older DIP20/EXT token standards (transferFrom, approve). Matching is exact on a normalized name (lowercased, separators stripped), never a substring test, so spelling variants are caught without false positives on names that merely contain a blocked one. The refusal is a recommendation, not a dead end: it tells the agent to send the user to a wallet or frontend they control in their own browser (e.g. https://oisy.com; for governance, the NNS dapp). The tool description states the policy up front — financial transactions are not supported, for marketplace compliance and user safety — and a test pins both the description and the refusal wording. The CMC's notify_create_canister / notify_top_up stay callable: they move no funds out of any account and blocking them would strand the documented recovery path for an interrupted ICP funding flow. The module docs are explicit that a name-based list is a guardrail for the standardized ledger surface, not a hermetic seal over bespoke canisters. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Remove financial framing; state the server is not for financial operations The marketplace-compliance posture (top-up instructions-only, ledger transfer/approval methods refused) needs the surrounding material to say the same thing: this MCP server is infrastructure tooling and is not intended for financial operations. - README: a 'Not for financial operations' statement up front; the skills enumeration drops DeFi; DEX-app names (MULTI/DEX, ICPSwap) in examples give way to neutral ones (NNS, Oisy), with the known-app registry and its wrong-TLD repair behavior unchanged in code. - Tool descriptions and server instructions: same example cleanup, plus a NOT FOR FINANCIAL OPERATIONS paragraph in the server instructions that tells agents to send users to a wallet they control (oisy.com) for such operations. - Landing page (src/assets/index.html bundle): the wallet-balance chat mock becomes an app-data read, the portfolio/DEX example prompts become neutral app examples, the tool-group copy stops claiming server-side top-ups, and the trust section gains a 'Not for financial operations' card. Only the embedded template changed; decoded-value equality is asserted around the re-encode. - Cargo.toml: drop the cryptography::cryptocurrencies crates.io category — network/api tooling categories remain. - Directory-submission docs: the financial-transactions blockers now record the shipped posture (instructions-only top-up, ledger-method refusals, stated policy) and keep the honest caveats: the icp_create_canister icp path still executes an ICP-to-cycles conversion and needs an explicit decision, and a name-based guard covers the standardized ledger surface, not bespoke canisters. The listing description draft and reviewer instructions match the new behavior. Factual technical references to ledgers (reading a ledger is a public Candid query) and the ckUSDC lookup examples stay: identifying what a canister is remains core, non-financial functionality. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Block cycles-ledger creation spends; scope the no-financial claim (review) Address the Copilot review on the ledger-method guard: - The cycles ledger's create_canister / create_canister_from draw cycles from the caller's balance through the exact generic route this guard closes (withdraw was already blocked for that reason), so they join the disallow list. Their refusal redirects to the purpose-built icp_create_canister tool (or the icp CLI) rather than to a wallet — creation stays supported, only the uncontrolled generic route closes. - The absolute 'this server does not move financial assets' wording in the tool description and the refusal message is scoped to 'this tool': precise on this branch standalone (icp_create_canister still funds at creation) and after the companion top-up change merges. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Use opencloud.org example; scope financial claims to enforcement (review) Address the reviews on the framing cleanup: - Per author feedback, Oisy (also a DeFi app) stops serving as the neutral usage example: name examples use NNS (the registry app that fits), and URL / bare-host examples use https://opencloud.org — live and IC-served (x-ic-canister-id present), so it passes the IC-evidence gate as documented. Oisy remains only where a wallet is genuinely meant: the refusal recommendation for financial operations. - The absolute 'never moves money or tokens' claims flagged by the review bot become enforcement-scoped statements: README, the landing trust card, and the server instructions now say token transfers, approvals, payments, and trades ARE REFUSED (via the update-call guard and the instructions-only top-up) and disclose that creating and funding the user's own canisters remains available through icp_create_canister. - The OpenAI submission doc presents the shipped changes as mitigations toward a still-pending attestation decision (the icp_create_canister funding path and the bespoke-method limitation are named as the open counterexamples), not as grounds to check the box. The Anthropic doc's 'shipped' section is phrased against the PR set (#153/#154) it describes rather than any single branch's tree. This PR is documentation/framing for the enforcement #153 and #154 ship; merge order remains #153, #154, then this. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * State the no-financial rule as policy, not as a capability claim (review) The review bot's follow-up is right that a method deny-list cannot make the generic update tool UNABLE to move assets — a bespoke method name is out of any list's reach, which the module docs and submission docs already record. The description and refusal therefore stop claiming impossibility: they state the binding policy (moving financial assets through this tool is not supported and must not be attempted under any method name) alongside what is mechanically enforced (the standardized ledger surface is refused on every canister). Whether to go further — dropping the generic update surface or moving to a reviewed allow-list — is the recorded 'directory-safe profile' option and stays a product decision, not something this PR takes on its own. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Present the posture as policy plus standardized-method guardrail (review) Second review pass on the framing: every remaining absolute 'X is refused' claim is reworded to the stable formula the guard actually supports — financial operations are unsupported BY POLICY, and the STANDARDIZED ledger surface is refused mechanically. Applied to the README statement, the server instructions (which now also tell the model never to attempt a financial operation through any other method or route), and the landing trust card ('standard ledger transfers and token approvals are refused by design'). The Anthropic readiness row for the read-only tool count is marked pending on the top-up PR rather than verified. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Stack on the ledger-guard branch; mark the top-up milestone merged The framing PR now contains the enforcement it describes: main (with the merged instructions-only top-up, #153) and the ledger-method guard branch (#154) are merged in, and the PR is retargeted onto #154's branch so it cannot merge ahead of it — the ordering the review kept flagging is now mechanical rather than a note in the description. The Anthropic readiness row flips to verified since #153 is merged. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Frame the financial restriction as intent plus reasonable measures Per author direction on the PR: no web system can tell from the outside whether a given request moves funds, so the honest claim is intention, not capability. The description now reads 'not intended for moving money, tokens, or other financial assets on the user's behalf' with the ledger-method refusals presented as the reasonable measures taken to refuse asset-moving requests; the refusal message matches, and the description test pins the new header phrase. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Align the listing draft and reviewer test with the intent framing The pasted marketplace copy and the reviewer test instruction now match the settled framing: the connector is not INTENDED for financial transactions, and the STANDARDIZED token-ledger transfer/approval methods are refused as the safety measure — neither line claims the guard catches more than it does. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Explain why real funds live on the standardized ledger surface (review) Per author feedback: tokens are only valuable if they can be exchanged or used, and the ICP ecosystem's financial platforms (wallets like Oisy, exchanges like ICP Swap) integrate ledgers through the ICRC standards — a token on a bespoke, non-standard ledger can exist, but the ecosystem's platforms cannot hold or trade it, so it carries little exchangeable value. Also syncs the quoted policy wording in the same note with the intent framing the description now uses. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Split the guard: literal ICRC matching plus ledger-scoped abstract names Per review: normalization was both too loose and unnecessary. The guard now has two groups. ICRC-standard methods (icrc1_transfer, icrc2_*, the ICRC-4/-7/-37 equivalents) are matched literally on every canister — the standards fix the exact names and Candid method names are case-sensitive, so a differently-spelled name is not the standard method and could never reach it on chain. Abstract names (transfer, send_dfx, notify_dfx, withdraw, withdraw_from, create_canister, create_canister_from) are refused only on the specific system canister where they are financial — the ICP ledger and the cycles ledger by canister id — so an app whose own transfer or withdraw is non-financial keeps working. The legacy DIP20/EXT names on arbitrary canisters (transfer, transferFrom, approve) are deliberately no longer matched: too abstract to block everywhere without breaking non-financial apps, per review, and those standards sit outside the ecosystem's ICRC-integrated platforms; the stated policy covers them. Tests pin literal matching, the per-ledger scoping in both directions, and the unchanged refusal contract; the tool description and README describe the scoped behavior. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Describe the per-ledger scoping of the guard in the OpenAI doc The submission record now matches the restructured guard: ICRC-standard methods refused on every canister, and the ICP/cycles ledgers' own value-moving methods refused on those ledgers, rather than a blanket every-canister claim for the whole set. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Point the creation refusal at the user-run icp CLI, not a connector tool Per review: recommending icp_create_canister inside the refusal reads as this server supporting canister creation on the user's behalf, which is not what the refusal should communicate. The cycles-ledger create_canister / create_canister_from refusal now points the user at running the operation themselves with the icp CLI (with the install pointer), like every other refusal points at a user-controlled venue. README row updated to match; the test now pins that the refusal names the CLI and never the connector tool. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Make the financial policy a server instruction in plain protective terms Per review, three changes to how the policy is stated: - The policy paragraph moves out of canister_update_call's description into the server-level get_info instructions (now a SERVER_INSTRUCTIONS const so the test can pin it): a policy block inside the tool's own description reads as a hint that the tool is usable for financial transactions. The description is purely functional again. - The wording drops the marketplace/compliance rationale and the 'reasonable measures' hedge: it now simply states that financial transactions are not supported and asset-moving requests are denied, to protect the user. - The refusal message loses the 'do not route under another method name' sentence, which read as a hint that the guards could be bypassed. README row aligned; tests updated to pin the description staying free of financial language and the instructions carrying the policy. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Align the directory-submission docs with the server-instruction policy The policy now lives in the server-level instructions rather than the canister_update_call description (which stays free of financial language), the refusal points a canister-creation spend at the user-run icp CLI, and the public surfaces say financial transactions are not supported. Update the mitigation descriptions in both submission docs to match, and describe the per-ledger scoping in the Anthropic doc's bullet. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Make icp_create_canister instructions-only: never execute funding Per maintainer review across the compliance PRs: creating and funding a canister spends the user's ICP or cycles, so the connector must not execute it. icp_create_canister now works exactly like the top-up tool (#153): it returns the icp CLI steps for the user to run themselves — install the CLI, check/mint cycles, icp canister create, and finally add the connector's management principal (printed by icp_cycles_balance) as a controller so icp_install_code and the lifecycle tools can operate the new canister. The executing paths are removed from the binary: the ICP-ledger transfer to the CMC, notify_create_canister, and the cycles-ledger create_canister call, with their wire types and helpers. With this, no tool initiates or executes a transfer of the user's funds: the server-wide 'asset-moving requests are denied' instruction now has no executing counterexample. The compliance refusal for cycles-ledger creation spends may name icp_create_canister again — it prints steps and executes nothing — and the CMC notify_* methods stay callable as the recovery path for a user's own interrupted CLI mint. README and server instructions updated; tests moved to pin the instructions-only contract (annotations, description, echoed amounts, controller handover step). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Merge the instructions-only creation change; sweep NNS and de-risk the docs Merge branch 'claude/icp-marketplace-compliance-vpawel-2-ledger-guard' (icp_create_canister is now instructions-only) and apply the review sweep on this branch's surfaces: - NNS is no longer used as an example app or venue anywhere agent-facing or in the README/landing page (per review: it can hold funds). The functional pieces stay — the known-app registry, derivation-origin map, security guardrails, and dashboard status lines. - The README intro now says creation, like top-up, returns icp CLI instructions for the user to run themselves. - Both directory-submission docs state the decided posture plainly: no tool initiates or executes a transfer of the user's funds; the counterexample/options/open-question passages are gone (per review: submissions should be black or white, no grey areas or follow-ups). Example prompts and test cases are financially neutral (opencloud.org, cycles-instructions, plain canister ids); the OpenAI financial negative test case is removed. - OpenAppArgs/FindAppArgs docs lose the MULTI/DEX/Oisy/NNS name examples (also flagged by review-bot); landing page prompt and group-04 copy updated to match the instructions-only behavior. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Keep the instructions-only tool descriptions functional, not disclaiming Per review: policy language belongs in the server-level instructions, not in per-tool descriptions. The top-up and creation descriptions now state the one functional fact a calling model needs — the tool only prints the icp CLI steps and never executes the operation — without the provided-for-completeness / never-moves-funds disclaimer prose. Tests pin the functional wording and that the descriptions stay free of financial language. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Fix the read-only tool count and pin the top-up example prompts Per review-bot findings on the submission docs: with creation now instructions-only there are 19 read-only-annotated tools, not 18 (both places); the cycles-instructions example prompt names a concrete canister id since icp_top_up_canister requires one; and the README intro clause is scoped to the two instructions-only tools. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Neutralize the remaining financial data examples; fix a heading and a placeholder Per review-bot findings: the open_app / canister_query descriptions and the server instructions still used balance/holdings/positions and a get_balance example as the model-visible illustrations of per-app data — replaced with bookings/appointments/orders/profile. The anthropic doc's section heading still said 'answer pending' above a body that says resolved in code; and the openai doc's negative test case used an angle- bracket placeholder that Markdown parses as a raw HTML tag — it now uses a reserved example.com domain. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk --------- Co-authored-by: Claude <[email protected]>
6 of 7 tasks
aterga
added a commit
that referenced
this pull request
Aug 27, 2026
* Refuse ledger transfer/approval methods in canister_update_call Marketplace directories (Anthropic, OpenAI) prohibit connectors that initiate or execute money or crypto transfers on the user's behalf, and this server's purpose is reading, building, and operating canisters — not moving funds. canister_update_call now refuses the update methods that move value or grant spending rights on ICP ledgers, on every canister, before any network work. The disallow list leans on the ICRC standards that ledgers on ICP follow — ICRC-1/ICRC-2 (fungible transfers and approvals), ICRC-4 (batch transfers), ICRC-7/ICRC-37 (NFT transfers and approvals) — plus the ICP ledger's pre-ICRC surface (transfer, send_dfx, notify_dfx), the cycles ledger's withdraw/withdraw_from, and the ERC-20-style names of the older DIP20/EXT token standards (transferFrom, approve). Matching is exact on a normalized name (lowercased, separators stripped), never a substring test, so spelling variants are caught without false positives on names that merely contain a blocked one. The refusal is a recommendation, not a dead end: it tells the agent to send the user to a wallet or frontend they control in their own browser (e.g. https://oisy.com; for governance, the NNS dapp). The tool description states the policy up front — financial transactions are not supported, for marketplace compliance and user safety — and a test pins both the description and the refusal wording. The CMC's notify_create_canister / notify_top_up stay callable: they move no funds out of any account and blocking them would strand the documented recovery path for an interrupted ICP funding flow. The module docs are explicit that a name-based list is a guardrail for the standardized ledger surface, not a hermetic seal over bespoke canisters. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Remove financial framing; state the server is not for financial operations The marketplace-compliance posture (top-up instructions-only, ledger transfer/approval methods refused) needs the surrounding material to say the same thing: this MCP server is infrastructure tooling and is not intended for financial operations. - README: a 'Not for financial operations' statement up front; the skills enumeration drops DeFi; DEX-app names (MULTI/DEX, ICPSwap) in examples give way to neutral ones (NNS, Oisy), with the known-app registry and its wrong-TLD repair behavior unchanged in code. - Tool descriptions and server instructions: same example cleanup, plus a NOT FOR FINANCIAL OPERATIONS paragraph in the server instructions that tells agents to send users to a wallet they control (oisy.com) for such operations. - Landing page (src/assets/index.html bundle): the wallet-balance chat mock becomes an app-data read, the portfolio/DEX example prompts become neutral app examples, the tool-group copy stops claiming server-side top-ups, and the trust section gains a 'Not for financial operations' card. Only the embedded template changed; decoded-value equality is asserted around the re-encode. - Cargo.toml: drop the cryptography::cryptocurrencies crates.io category — network/api tooling categories remain. - Directory-submission docs: the financial-transactions blockers now record the shipped posture (instructions-only top-up, ledger-method refusals, stated policy) and keep the honest caveats: the icp_create_canister icp path still executes an ICP-to-cycles conversion and needs an explicit decision, and a name-based guard covers the standardized ledger surface, not bespoke canisters. The listing description draft and reviewer instructions match the new behavior. Factual technical references to ledgers (reading a ledger is a public Candid query) and the ckUSDC lookup examples stay: identifying what a canister is remains core, non-financial functionality. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Block cycles-ledger creation spends; scope the no-financial claim (review) Address the Copilot review on the ledger-method guard: - The cycles ledger's create_canister / create_canister_from draw cycles from the caller's balance through the exact generic route this guard closes (withdraw was already blocked for that reason), so they join the disallow list. Their refusal redirects to the purpose-built icp_create_canister tool (or the icp CLI) rather than to a wallet — creation stays supported, only the uncontrolled generic route closes. - The absolute 'this server does not move financial assets' wording in the tool description and the refusal message is scoped to 'this tool': precise on this branch standalone (icp_create_canister still funds at creation) and after the companion top-up change merges. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Use opencloud.org example; scope financial claims to enforcement (review) Address the reviews on the framing cleanup: - Per author feedback, Oisy (also a DeFi app) stops serving as the neutral usage example: name examples use NNS (the registry app that fits), and URL / bare-host examples use https://opencloud.org — live and IC-served (x-ic-canister-id present), so it passes the IC-evidence gate as documented. Oisy remains only where a wallet is genuinely meant: the refusal recommendation for financial operations. - The absolute 'never moves money or tokens' claims flagged by the review bot become enforcement-scoped statements: README, the landing trust card, and the server instructions now say token transfers, approvals, payments, and trades ARE REFUSED (via the update-call guard and the instructions-only top-up) and disclose that creating and funding the user's own canisters remains available through icp_create_canister. - The OpenAI submission doc presents the shipped changes as mitigations toward a still-pending attestation decision (the icp_create_canister funding path and the bespoke-method limitation are named as the open counterexamples), not as grounds to check the box. The Anthropic doc's 'shipped' section is phrased against the PR set (#153/#154) it describes rather than any single branch's tree. This PR is documentation/framing for the enforcement #153 and #154 ship; merge order remains #153, #154, then this. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * State the no-financial rule as policy, not as a capability claim (review) The review bot's follow-up is right that a method deny-list cannot make the generic update tool UNABLE to move assets — a bespoke method name is out of any list's reach, which the module docs and submission docs already record. The description and refusal therefore stop claiming impossibility: they state the binding policy (moving financial assets through this tool is not supported and must not be attempted under any method name) alongside what is mechanically enforced (the standardized ledger surface is refused on every canister). Whether to go further — dropping the generic update surface or moving to a reviewed allow-list — is the recorded 'directory-safe profile' option and stays a product decision, not something this PR takes on its own. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Present the posture as policy plus standardized-method guardrail (review) Second review pass on the framing: every remaining absolute 'X is refused' claim is reworded to the stable formula the guard actually supports — financial operations are unsupported BY POLICY, and the STANDARDIZED ledger surface is refused mechanically. Applied to the README statement, the server instructions (which now also tell the model never to attempt a financial operation through any other method or route), and the landing trust card ('standard ledger transfers and token approvals are refused by design'). The Anthropic readiness row for the read-only tool count is marked pending on the top-up PR rather than verified. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Stack on the ledger-guard branch; mark the top-up milestone merged The framing PR now contains the enforcement it describes: main (with the merged instructions-only top-up, #153) and the ledger-method guard branch (#154) are merged in, and the PR is retargeted onto #154's branch so it cannot merge ahead of it — the ordering the review kept flagging is now mechanical rather than a note in the description. The Anthropic readiness row flips to verified since #153 is merged. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Frame the financial restriction as intent plus reasonable measures Per author direction on the PR: no web system can tell from the outside whether a given request moves funds, so the honest claim is intention, not capability. The description now reads 'not intended for moving money, tokens, or other financial assets on the user's behalf' with the ledger-method refusals presented as the reasonable measures taken to refuse asset-moving requests; the refusal message matches, and the description test pins the new header phrase. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Align the listing draft and reviewer test with the intent framing The pasted marketplace copy and the reviewer test instruction now match the settled framing: the connector is not INTENDED for financial transactions, and the STANDARDIZED token-ledger transfer/approval methods are refused as the safety measure — neither line claims the guard catches more than it does. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Explain why real funds live on the standardized ledger surface (review) Per author feedback: tokens are only valuable if they can be exchanged or used, and the ICP ecosystem's financial platforms (wallets like Oisy, exchanges like ICP Swap) integrate ledgers through the ICRC standards — a token on a bespoke, non-standard ledger can exist, but the ecosystem's platforms cannot hold or trade it, so it carries little exchangeable value. Also syncs the quoted policy wording in the same note with the intent framing the description now uses. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Split the guard: literal ICRC matching plus ledger-scoped abstract names Per review: normalization was both too loose and unnecessary. The guard now has two groups. ICRC-standard methods (icrc1_transfer, icrc2_*, the ICRC-4/-7/-37 equivalents) are matched literally on every canister — the standards fix the exact names and Candid method names are case-sensitive, so a differently-spelled name is not the standard method and could never reach it on chain. Abstract names (transfer, send_dfx, notify_dfx, withdraw, withdraw_from, create_canister, create_canister_from) are refused only on the specific system canister where they are financial — the ICP ledger and the cycles ledger by canister id — so an app whose own transfer or withdraw is non-financial keeps working. The legacy DIP20/EXT names on arbitrary canisters (transfer, transferFrom, approve) are deliberately no longer matched: too abstract to block everywhere without breaking non-financial apps, per review, and those standards sit outside the ecosystem's ICRC-integrated platforms; the stated policy covers them. Tests pin literal matching, the per-ledger scoping in both directions, and the unchanged refusal contract; the tool description and README describe the scoped behavior. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Describe the per-ledger scoping of the guard in the OpenAI doc The submission record now matches the restructured guard: ICRC-standard methods refused on every canister, and the ICP/cycles ledgers' own value-moving methods refused on those ledgers, rather than a blanket every-canister claim for the whole set. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Point the creation refusal at the user-run icp CLI, not a connector tool Per review: recommending icp_create_canister inside the refusal reads as this server supporting canister creation on the user's behalf, which is not what the refusal should communicate. The cycles-ledger create_canister / create_canister_from refusal now points the user at running the operation themselves with the icp CLI (with the install pointer), like every other refusal points at a user-controlled venue. README row updated to match; the test now pins that the refusal names the CLI and never the connector tool. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Make the financial policy a server instruction in plain protective terms Per review, three changes to how the policy is stated: - The policy paragraph moves out of canister_update_call's description into the server-level get_info instructions (now a SERVER_INSTRUCTIONS const so the test can pin it): a policy block inside the tool's own description reads as a hint that the tool is usable for financial transactions. The description is purely functional again. - The wording drops the marketplace/compliance rationale and the 'reasonable measures' hedge: it now simply states that financial transactions are not supported and asset-moving requests are denied, to protect the user. - The refusal message loses the 'do not route under another method name' sentence, which read as a hint that the guards could be bypassed. README row aligned; tests updated to pin the description staying free of financial language and the instructions carrying the policy. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Align the directory-submission docs with the server-instruction policy The policy now lives in the server-level instructions rather than the canister_update_call description (which stays free of financial language), the refusal points a canister-creation spend at the user-run icp CLI, and the public surfaces say financial transactions are not supported. Update the mitigation descriptions in both submission docs to match, and describe the per-ledger scoping in the Anthropic doc's bullet. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Make icp_create_canister instructions-only: never execute funding Per maintainer review across the compliance PRs: creating and funding a canister spends the user's ICP or cycles, so the connector must not execute it. icp_create_canister now works exactly like the top-up tool (#153): it returns the icp CLI steps for the user to run themselves — install the CLI, check/mint cycles, icp canister create, and finally add the connector's management principal (printed by icp_cycles_balance) as a controller so icp_install_code and the lifecycle tools can operate the new canister. The executing paths are removed from the binary: the ICP-ledger transfer to the CMC, notify_create_canister, and the cycles-ledger create_canister call, with their wire types and helpers. With this, no tool initiates or executes a transfer of the user's funds: the server-wide 'asset-moving requests are denied' instruction now has no executing counterexample. The compliance refusal for cycles-ledger creation spends may name icp_create_canister again — it prints steps and executes nothing — and the CMC notify_* methods stay callable as the recovery path for a user's own interrupted CLI mint. README and server instructions updated; tests moved to pin the instructions-only contract (annotations, description, echoed amounts, controller handover step). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Merge the instructions-only creation change; sweep NNS and de-risk the docs Merge branch 'claude/icp-marketplace-compliance-vpawel-2-ledger-guard' (icp_create_canister is now instructions-only) and apply the review sweep on this branch's surfaces: - NNS is no longer used as an example app or venue anywhere agent-facing or in the README/landing page (per review: it can hold funds). The functional pieces stay — the known-app registry, derivation-origin map, security guardrails, and dashboard status lines. - The README intro now says creation, like top-up, returns icp CLI instructions for the user to run themselves. - Both directory-submission docs state the decided posture plainly: no tool initiates or executes a transfer of the user's funds; the counterexample/options/open-question passages are gone (per review: submissions should be black or white, no grey areas or follow-ups). Example prompts and test cases are financially neutral (opencloud.org, cycles-instructions, plain canister ids); the OpenAI financial negative test case is removed. - OpenAppArgs/FindAppArgs docs lose the MULTI/DEX/Oisy/NNS name examples (also flagged by review-bot); landing page prompt and group-04 copy updated to match the instructions-only behavior. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Keep the instructions-only tool descriptions functional, not disclaiming Per review: policy language belongs in the server-level instructions, not in per-tool descriptions. The top-up and creation descriptions now state the one functional fact a calling model needs — the tool only prints the icp CLI steps and never executes the operation — without the provided-for-completeness / never-moves-funds disclaimer prose. Tests pin the functional wording and that the descriptions stay free of financial language. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Fix the read-only tool count and pin the top-up example prompts Per review-bot findings on the submission docs: with creation now instructions-only there are 19 read-only-annotated tools, not 18 (both places); the cycles-instructions example prompt names a concrete canister id since icp_top_up_canister requires one; and the README intro clause is scoped to the two instructions-only tools. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Split IcTools into IcCanisterTools and IcProtocolTools The one mega-struct carried all 26 tools. Split it along the scope taxonomy the server instructions already teach: IcCanisterTools holds the app- and canister-scoped tools (the …canister…/…_app… names — Candid/OQL reads, update calls, app resolution/discovery, per-app identity), and IcProtocolTools holds the icp_-prefixed protocol/meta tools (dashboard lookups, skills, the OQL guide, and canister creation/management as the management principal). Each half owns only the state it uses (the agent stays on the canister side; the skills catalog on the protocol side). IcTools remains as the composed ServerHandler — same constructor, same get_info/instructions/resources, and a served surface byte-identical to before — dispatching tools/call by router membership and answering tools/list with the concatenated routers (the same pattern imcp2-local's LocalServer wrapper already uses to add its login tools). Tool order in tools/list changes only in that icp_oql_guide now lists with the other icp_ tools. Tests: a new taxonomy test pins the split (icp_ prefix <=> IcProtocolTools, no overlap, nothing dropped); the existing surface tests move to IcTools::all_tools(), and imcp2-local's real-MCP round-trip exercises the composed dispatch end to end. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Neutralize the remaining financial data examples; fix a heading and a placeholder Per review-bot findings: the open_app / canister_query descriptions and the server instructions still used balance/holdings/positions and a get_balance example as the model-visible illustrations of per-app data — replaced with bookings/appointments/orders/profile. The anthropic doc's section heading still said 'answer pending' above a body that says resolved in code; and the openai doc's negative test case used an angle- bracket placeholder that Markdown parses as a raw HTML tag — it now uses a reserved example.com domain. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Trigger the org-required External PR Ruleset workflow Empty commit at the author's request: the org ruleset began applying to this repository after this branch's last push, so its required workflow never ran on the previous head and the check sat at Expected forever. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk --------- Co-authored-by: Claude <[email protected]>
aterga
added a commit
that referenced
this pull request
Aug 28, 2026
* Refresh submission docs against verified production state A post-merge audit checked both directory docs against the code at main (0a32373) and against live production. Fixes, all doc-only: - Production gap restated with today's facts: /version reports bbf0844 (v0.1.1), which predates the whole compliance chain (#153-#158) and still serves the old 26-tool surface — a release from current main must be deployed before either submission, since the attestations describe main. - The privacy policy, /support, and /terms are LIVE on production (verified HTTP 200), so the "pending the production release" rows and checklist items now say what actually remains: portal entry, plus the next release refreshing the live text to the current draft. - The mcp-review checklist row contradicted blocker 2's resolved-in-code body and wrongly claimed the first-party-API question was asked on 2026-07-31; it now matches the body. - The listing description claimed "identify what a canister is" — a capability of the unserved dashboard-lookup tool; it now leads with the served Candid fetch. - Stale figures and paths: longest served tool name is 23 chars (get_canister_oql_schema), not 30; the dfinity-logo.svg link and the README's connect.css / static/ paths now point into crates/imcp2-core/ where the files live; "ships with this PR" phrasing updated now that the PR is merged and deployed; the stale cycles-funding justification sentence is dropped (no funding tools exist). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Distinguish main from the live build; gate OpenAI submission on /version Review findings on #161: the tool-name-length row now gives both values (23 on main, the build to submit; 30 on the live pre-release build), and the OpenAI checklist gains an explicit item requiring production to run a release cut from current main, verified via /version immediately before submitting — the deploy workflow also accepts older tags/SHAs for rollbacks, so a deployed challenge token alone does not prove the compliant build is live. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk * Scope the readiness table's verification claim Review finding on #161: the table header claimed live verification for every row, but the tool-surface rows (11 tools, one write, name lengths, schemas) describe main, not the pre-release build production currently runs. The header now says which rows were verified live (transport/auth, 2026-07-31) and that the tool-surface rows describe main pending the release, with a pointer to re-verify after deploying. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LvwAVXfx5kLNc4SqKXkavk --------- Co-authored-by: Claude <[email protected]>
5 of 7 tasks
aterga
added a commit
that referenced
this pull request
Aug 31, 2026
…old page paths redirect permanently (#165) * Remove financial-operation references from the Terms of Service The Terms still described the Service in financial vocabulary: "never holds your funds" / "non-custodial" (section 1), "moving tokens, spending cycles, installing code, and deleting canisters" (section 3), and "loss of tokens, cycles, or other assets" (section 8). That language no longer matches the served surface — the funding and canister-management tools are not served (#153, #154, #158) and canister_update_call refuses the ledger methods — and, like the tool descriptions (per review in #154), the page should stay free of financial language rather than mention-and-deny. Rephrase those passages without financial vocabulary while keeping their substance and the user-responsibility posture: - Section 1 describes the Service as reading data applications hold for the user and submitting actions to them, and states it never holds long-term credentials — only the delegated, time-limited session authorization. (This also stops claiming canister management, which the served tool set no longer offers.) - Section 2 now states explicitly that requests made under the user's authorization are treated as theirs and are their sole responsibility. - Section 3 keeps irreversibility front and center: an action can permanently change or delete data an application holds for the user, what an action does is defined by the receiving application, and nothing can be undone once the network accepts it. - Section 8's liability examples drop the asset enumeration; the general damages language still covers everything it covered. Bump the effective date for the revision (adjust to the release date at cut time, as was done for August 3). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xpg83AWtkQo34jbMxpX8WB * State the discoverability-based obligation of app developers in the Terms and Privacy Policy Application developers who want their applications' operations supported through the Service must comply with the ICP MCP Privacy Policy and accept the Terms of Service. They assert both by implementing the service discoverability instructions at https://docs.internetcomputer.org/guides/frontends/service-discoverability/ - Terms, section 4 (Third Parties): new paragraph stating the obligation, linking the Privacy Policy and the discoverability guide. - Privacy Policy, section 2 (Who Receives Data), "The applications you choose" recipient: matching sentence referring the developer to the Terms and the discoverability guide; effective date moves to August 28, 2026 per section 8 (align with the shipping release at cut time, as for August 3). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xpg83AWtkQo34jbMxpX8WB * Fix the developer-obligation wording: acceptance and duty, not compliance with a notice Review on the mirrored copy (dfinity/internetcomputer-org#76) caught a real contradiction in the wording added by the previous commit. The Privacy Policy states twice that application processing is governed by each application's own policy and not by this Privacy Policy (the scope carve-out, and the same "applications you choose" paragraph the sentence was added to), so requiring developers to "comply with" it both contradicted that scope and named no conduct: the Policy is a notice about our processing and carries no developer-facing duties. Reframe so the obligation is coherent and actionable, keeping the acceptance-by-implementation mechanism intact: - The developer accepts the Terms by implementing the discoverability instructions. Acceptance of a contract is something a third party can do; "compliance" with our privacy notice is not. - The duty now lives in the Terms, where duties belong: handle personal data reaching them through the Service lawfully and under their own privacy policy, and keep that policy accurate and available. - Both pages now say what the Privacy Policy actually is for the developer: it describes what the Service discloses to an application, and does not govern what the application does next. That agrees with the scope carve-out instead of fighting it. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xpg83AWtkQo34jbMxpX8WB * Drop the landing site from the server; redirect to its one home on internetcomputer.org The landing page and its /privacy-policy, /support and /terms subpages existed twice: served by this binary from src/assets/, and mirrored in dfinity/internetcomputer-org (public/icp-mcp/, served at internetcomputer.org/icp-mcp/). Two copies of legal pages drift — the mirror carried this branch's revisions before any imcp2 release could — so the internetcomputer-org copy becomes the only one, and this origin stops serving pages of its own: - The four asset pages are deleted. connect-error.html and favicon.svg stay: they are the OAuth connect flow's, not the landing site's, and the connect/callback screens link /favicon.svg for their tab icon. - /, /privacy-policy, /support and /terms answer with permanent redirects (308) to the same paths under https://internetcomputer.org/icp-mcp/ — trailing-slash targets, so a client lands in one hop. Every published link keeps working: the directory listings' policy URLs, bookmarks, search results. - /sitemap.xml is gone (a sitemap must list same-origin content, and this origin has none); robots.txt stays to keep crawlers off the machine surface, minus the sitemap reference, and site_metadata_router no longer needs PUBLIC_URL. /status/ is untouched — the live dashboard is this deployment's own monitoring surface, published by Caddy. - Tests follow: the sitemap and page-content tests are replaced by a redirect test pinning all four absolute targets and a robots test asserting no sitemap is advertised. - README and the directory-submission docs now name internetcomputer.org/icp-mcp/ as the pages' one home, with the old URLs redirecting from the release that ships this change. The earlier commits on this branch revised the pages' text in place; that text now lives in dfinity/internetcomputer-org#76 / #77, which is what makes this deletion safe: nothing is lost, one copy remains. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xpg83AWtkQo34jbMxpX8WB --------- Co-authored-by: Claude <[email protected]>
sea-snake
pushed a commit
that referenced
this pull request
Sep 1, 2026
A minor bump rather than a patch, because both the library API and the served tool surface changed incompatibly since 0.2.0. `imcp2` no longer contains the tool surface and the II session engine: they moved to a new sibling crate, `imcp2-core` (#150, #157), which `imcp2` now depends on by version and which publishes alongside it. The re-exports in `src/lib.rs` keep the familiar names resolving (`IiInstance`, `SessionGauges`, `Agent`, `IC_URL`), but the crate an embedder links has changed shape, and `IcTools` is gone — split into `IcCanisterTools` and `IcProtocolTools` (#157). The surface an MCP client sees changed too: only the app/canister tools are served (#158), state-changing calls now reach only applications that publish a service declaration (#166), the ledger transfer/approval methods are refused (#154, #163), `icp_top_up_canister` is instructions-only (#153), and routine replies no longer echo the per-app principal (#177). Under cargo's 0.x rules `0.2` is the compatibility range, so shipping this as 0.2.1 would hand the break to everyone on `imcp2 = "0.2"` — the requirement our own README recommends — the next time they ran `cargo update`. 0.3.0 opens a new range instead; existing users stay on 0.2.x until they choose to move. The README's dependency line follows, as `"0.2"` would no longer resolve to a current release. `imcp2-core` moves in lockstep: publish-crate.yml checks the tag against both manifests, and the workspace pin that binds them (`imcp2-core = { path = …, version = … }`) has to name the same number or the path dependency stops resolving. `imcp2-local` moves with them — it releases on its own `imcp2-local-v*` tags and has never been cut, so there is nothing to keep it behind, and its `--version` output would otherwise report 0.2.0 from a 0.3.0 tree. Claude-Session: https://claude.ai/code/session_01GqhkbpCwxs67F5E2EzyDwh 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.
Summary
First of three marketplace-compliance PRs preparing ICP MCP for the Anthropic and OpenAI directories, whose policies prohibit connectors that initiate or execute money/crypto transfers on the user's behalf (the OpenAI attestation reads: "I confirm that my plugin does not initiate or execute money transfers, crypto transfers, or investment trades on behalf of users.").
icp_top_up_canisterpreviously executed a funding operation server-side: it drew cycles from the user's cycles-ledger balance (withdraw), or transferred ICP from the user's ICP-ledger account to the CMC and callednotify_top_up. This PR makes the tool instructions-only: it stays on the tool surface for completeness — to reflect the Internet Computer platform capability — but it does not implement the operation on the user's behalf. It returns step-by-stepicpCLI instructions — opening with where to get the CLI (the npm one-liner inline, plus the releases page for other installers) — for the user to run the top-up themselves, in their own terminal, with keys they control.Related issues
None — part of the marketplace-compliance track (see also the ledger-method disallow list PR and the financial-framing cleanup PR).
Changes
crates/imcp2-core/src/management.rs:top_up_canister(executes on chain) is replaced bytop_up_instructions(pure function, no session, no identity, no canister call). The cycles-ledgerwithdrawpath, the CMCnotify_top_uppath, and their wire types (WithdrawArg/WithdrawError,NotifyTopUpArg/NotifyTopUpResult, theTPUPmemo) are removed, so the binary no longer contains a server-side top-up capability at all. NewTopUpInstructionsoutput type carries an explicitexecuted: false.icp), per review feedback, and include where to find it; suppliedcycles/icpamounts are validated with the same validators the executing path used before being substituted into the copy-pastable commands (junk or zero amounts are rejected, never printed).crates/imcp2-core/src/tools.rs: the tool's description now states it is provided for completeness and does not implement the operation on the user's behalf; annotations flip toreadOnlyHint: true/destructiveHint: false/openWorldHint: false; no authenticated session is required anymore.icp_cycles_balance's description and the server instructions no longer present top-up as a spending tool.TopUpArgskeeps its schema (canister_id,cycles?,icp?) so existing agent call-shapes still validate — the amounts are only substituted into the printed commands.executed: false, the copy-pastable commands (canonical canister id, substituted amounts, placeholders, the install pointer), amount validation, and a description-contract test guards against the wording quietly reverting.Notes for reviewers:
icp_create_canisteris deliberately unchanged in this PR (per the agreed scope). Itsicpargument still executes an ICP-ledger transfer to the CMC — worth an explicit decision against the same attestation language; flagging rather than changing it here.src/assets/index.html) and the directory-submission docs are updated in the companion cleanup PR to avoid conflicts on the bundled asset.Testing
cargo build --locked --all-targetscargo test --locked --all-targets(211 tests pass, incl. 5 new)cargo fmt --all/cargo clippy --all-targets— no new warnings introduced (the 10 pre-existing clippy findings on current stable are untouched; a repo-widecargo fmtreformats unrelated files, so formatting was matched to surrounding style instead)npm test --prefix monitoring/mcp-status(dashboard unchanged)Checklist