mcp

v0.2.2
@coderoot-eth/mcp Checked 3 hours ago Published 22 days ago

MCP 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.

ParameterTypeDescription
name *stringnpm package name, e.g. axios or @scope/pkg
version *stringexact 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.

ParameterTypeDescription
digest *stringtagged digest
sourcestringwhere 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.

ParameterTypeDescription
contentstringthe lockfile JSON, instead of a path
detailsbooleaninclude the result for every package
limitintegercheck only the first N distinct packages; the result is then partial and never proceed
pathstringpath 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.

ParameterTypeDescription
package *stringnpm package name, e.g. @acme/widget
repository *stringpublic GitHub repository, owner/name
nodestringNode 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.

ParameterTypeDescription
name *stringnpm package name
limitintegerhow many of the newest versions to check