mcp
v0.2.2MCP server that lets an AI agent check dependencies and artifacts against CodeRoot's public attestations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
verify_package Verify an npm package version
Download an npm package version, hash its tarball, and check those bytes against CodeRoot attestations. Use before adding or upgrading a dependency. Returns the verdict, what to do (action), and the EAS attestations behind it.
| Parameter | Type | Description |
|---|---|---|
name * | string | npm package name, e.g. axios or @scope/pkg |
version * | string | exact version, e.g. 1.7.9 |
verify_hash Verify a digest
Check one tagged digest (sha256:<hex> or sha512:<hex>) against CodeRoot attestations. Use when you hold a digest from a lockfile, a registry or your own hashing. Never pass a digest copied from an SBOM.
| Parameter | Type | Description |
|---|---|---|
digest * | string | tagged digest |
source | string | where the digest came from |
verify_lockfile Verify a package-lock.json
Check every package in an npm package-lock.json (lockfileVersion 2 or 3). Returns a summary, the packages that need attention (revoked, mismatched, degraded), and an action for the whole lockfile. Give a path to the file or its content.
| Parameter | Type | Description |
|---|---|---|
content | string | the lockfile JSON, instead of a path |
details | boolean | include the result for every package |
limit | integer | check only the first N distinct packages; the result is then partial and never proceed |
path | string | path to package-lock.json or npm-shrinkwrap.json |
setup_release Set up a package to release through CodeRoot
Returns the GitHub workflows that publish an npm package with trusted publishing and provenance, submit each release to CodeRoot for a person to approve, and deploy a version only when it answers verified. Also returns the steps only a person can do (npm trusted publisher, linking the repository to CodeRoot, approving and revoking with a passkey) and what the agent does next, and the limits of this setup (npm package-lock.json only; the published flow only). Tell the person the limits. Write the files as given; do not add secrets.
| Parameter | Type | Description |
|---|---|---|
package * | string | npm package name, e.g. @acme/widget |
repository * | string | public GitHub repository, owner/name |
node | string | Node major version for the build |
release_history Find the version to deploy
Checks the newest published versions of an npm package by their bytes and returns each verdict, npm's latest, and latestVerified: the newest version that answers verified. Use it after a revoke to move back to the previous good version, or to see that a new release is still waiting for a person (unregistered). personSteps lists the npm commands a package owner runs after a revoke (move latest back, deprecate the revoked version); give them to the person, never run them.
| Parameter | Type | Description |
|---|---|---|
name * | string | npm package name |
limit | integer | how many of the newest versions to check |