Review a contract upgrade
The Chain Casebook MCP compares supplied Solidity storage layouts, initialization test evidence, and approved versus observed roles.
Start with a free case
Download the MCP client (.tar.gz). With Node.js 24 and pnpm 10.34.9 installed, unpack the archive and install its locked dependencies.
tar -xzf chain-casebook-mcp.tar.gz
cd chain-casebook
pnpm install --prod --frozen-lockfile --ignore-scripts
In your MCP client’s stdio server settings, use node as the command and the absolute path to chain-casebook/src/server.mjs as its single argument. Ask the client to run list_security_cases. Listing cases works offline without a wallet.
Review an upgrade
Use the free Solidity upgrade approval checklist to gather build references, storage layouts, initialization test results and role records. It includes a worked example and a blank worksheet.
Set CASEBOOK_URL to the HTTPS origin of this site to use quote_contract_upgrade. For a paid review, set CASEBOOK_KEY from your wallet in your client’s private environment. Confirm the quoted 90 credits before calling review_contract_upgrade. If all checks need evidence the client returns the gaps for free. If at least one check can reach a decision, the quoted charge applies. Reuse the request ID and identical evidence to retry.
Your client evaluates evidence locally. For billing it sends a request ID, the approved price and a fingerprint of the evidence. The report and build artifacts stay on your machine. Your MCP host has its own data settings.