MCP, MCP server
X402 Trinity
A drop-in fetch replacement that lets an AI agent pay for things by itself — with hard spending limits, no hosted wallet service, and no changes to the agent's own code.
Compatibility: Not stated.
Grade C
One Medium finding. Read the report before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
NETWORK_HOST_FROM_INPUT
Why this grade
- NETWORK_HOST_FROM_INPUT Medium
A file takes a URL or endpoint as input and has no fixed host list.
bin/whoami.mjs, line 75
const r = await fetch(url, {
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Pass
No shell or command execution found, and no extra permission was declared.
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Serious
accepts a host from input, with no fixed list in this file.
NETWORK_HOST_FROM_INPUT
bin/whoami.mjs, line 75
const r = await fetch(url, {
mcp/server.mjs, line 179
try { res = await fetch(url, { headers: { accept: 'application/json' }, signal: AbortSignal.timeout(20000) }); }
python/x402_trinity/__init__.py, line 1048
return urllib.request.urlopen("https://sensor.local/v1/lidar").read()
Show more
src/evm-tx.ts, line 113
const r = await fetch(url, {
src/seller.ts, line 150
const r = await fetch(facilitator + path, {
src/x402.ts, line 657
* fetch(url, { headers: { 'x402-idempotency-key': 'order-8412' } })
src/x402.ts, line 927
const r = await fetch(feeCollector, {
README.md, line 243
return urllib.request.urlopen("https://sensor.local/v1/lidar").read()
python/README.md, line 50
return urllib.request.urlopen("https://sensor.local/v1/lidar").read()
python/README.md, line 53
Inside the decorated function `urllib.request.urlopen` pays 402s automatically. Existing code
python/x402_trinity/__init__.py, line 40
# urllib.request.urlopen process-wide; if the client also went through the global it would
python/x402_trinity/__init__.py, line 42
_URLOPEN = urllib.request.urlopen
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
bin/whoami.mjs, line 36
const raw = process.env.X402_PRIVATE_KEY;
src/budget-file.ts, line 12
* privateKey: process.env.X402_PRIVATE_KEY,
.gitignore, line 3
*.key
Show more
.gitignore, line 4
.env
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit edd7bf6e7466. accepts a host from input, with no fixed list in this file. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: edd7bf6e7466e8347e8a796b5aa933e7df5b37fe
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.