@opena2a/oa2a
v0.1.0
Published
OpenA2A Registry trust query CLI
Maintainers
Readme
oa2a
Command-line tool for querying the OpenA2A Registry trust API. Look up trust verdicts, scores, CVE counts, and dependency risk for packages in the registry.
Install
npm install -g oa2aOr run directly with npx:
npx oa2a check @modelcontextprotocol/server-filesystemUsage
Check a single package
oa2a check @modelcontextprotocol/server-filesystemSpecify the package type explicitly:
oa2a check my-agent --type a2a_agentAudit dependencies from a project file
Parse package.json or requirements.txt and batch-query all dependencies:
oa2a audit package.json
oa2a audit requirements.txtSet a minimum trust level threshold (default: 3):
oa2a audit package.json --min-trust 2Batch lookup for multiple packages
oa2a batch express lodash chalk commanderApply the same type to all packages:
oa2a batch my-server-a my-server-b --type mcp_serverOutput options
Get raw JSON output for scripting:
oa2a check express --json
oa2a audit package.json --jsonUse a custom registry URL:
oa2a check express --registry-url http://localhost:8080Disable colored output:
oa2a check express --no-colorExit Codes
| Code | Meaning | |------|---------| | 0 | All queried packages are safe | | 1 | One or more packages have warnings, are blocked, or fall below the trust threshold |
Trust Levels
| Level | Label | Description | |-------|-------|-------------| | 0 | Blocked | Package is blocked due to security concerns | | 1 | Warning | Package has known issues | | 2 | Listed | Package is listed but not yet scanned | | 3 | Scanned | Package has been scanned by HackMyAgent | | 4 | Verified | Package is verified by the publisher |
Requirements
- Node.js 18 or later
Development
git clone https://github.com/opena2a-org/oa2a.git
cd oa2a
npm install
npm run buildRun locally without installing globally:
node dist/index.js check expressLicense
Apache-2.0
