Grades are a hygiene check, not a security guarantee.

MCP, MCP server

ai.traderouter/trade-router-mcp

Non-custodial Solana swap & limit order engine for AI agents.

Compatibility: Not stated.

Grade B

Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit 95d9ace3fa58, unchanged since the check below.

NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ

Why this grade

  • NETWORK_NO_FIXED_HOST Low

    Makes a network call whose host is not written as a fixed address.

    trade-router-mcp.mjs, line 110 const res = await fetch(url, { method: 'GET', signal: ctrl.signal });

  • SECRETS_PATH_DOTENV Low

    Mentions a .env file.

    .github/workflows/ci.yml, line 52 - name: Fail if .mcpregistry_ or .env files are in tarball

  • SECRETS_ENV_READ Note

    Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.

    trade-router-mcp.mjs, line 47 const PRIVATE_KEY_B58 = process.env.TRADEROUTER_PRIVATE_KEY || '';

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

    Concern

    can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST

    trade-router-mcp.mjs, line 110

    const res = await fetch(url, { method: 'GET', signal: ctrl.signal });

    trade-router-mcp.mjs, line 126

    const res = await fetch(`${API_BASE}${path}`, {

    trade-router-mcp.mjs, line 434

    const ws = new WebSocket(WS_URL);

    Show more

    trade-router-mcp.mjs, line 1194

    key (base58). Must be registered on the WebSocket (via get_wallet_address or connect_websoc

    SECURITY.md, line 118

    - api.traderouter.ai:443 # WSS for the WebSocket (same host, upgrade)

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    trade-router-mcp.mjs, line 47

    const PRIVATE_KEY_B58 = process.env.TRADEROUTER_PRIVATE_KEY || '';

    trade-router-mcp.mjs, line 51

    const SERVER_PUBKEY_B58 = (process.env.TRADEROUTER_SERVER_PUBKEY || _HARDCODED_SERVER_PUBKEY).trim();

    .github/workflows/ci.yml, line 52

    - name: Fail if .mcpregistry_ or .env files are in tarball

    Show more

    trade-router-mcp.mjs, line 52

    const SERVER_PUBKEY_NEXT_B58 = (process.env.TRADEROUTER_SERVER_PUBKEY_NEXT || '').trim() || null;

    .github/pull_request_template.md, line 12

    - [ ] `npm pack --dry-run` shows 6 files, no `.mcpregistry_*` or `.env*` leakage

    .github/workflows/ci.yml, line 54

    if grep -E '\.mcpregistry_|\.env([^a-zA-Z]|$)' pack.log; then

    CHANGELOG.md, line 61

    - **`.github/workflows/ci.yml`** - CI on every push and PR. Runs tests across Node 18/20/22, syntax-checks the `.mjs`, dry-packs the tarball, and fails the build if any `.mcpregist

    CHANGELOG.md, line 74

    - **`files` whitelist in `package.json`** - prevents accidental inclusion of `.mcpregistry_*` tokens, `.env`, or other stray files in published tarballs.

    CONTRIBUTING.md, line 51

    4. `npm pack --dry-run` - must show 6 files, no `.mcpregistry_*` or `.env*` leakage

    SECURITY.md, line 30

    - User revealing their private key via shell history, committing `.env` files to public repos, or exposing process env to unprivileged users.

    SECURITY.md, line 142

    1. **Do not commit `.env` files to public repos.** Add `.env` to `.gitignore`.

  • 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 95d9ace3fa58. can reach a host that is not written as a fixed address. reads a credential or environment file.

Date and source

Date checked:

View source

github.com

Commit graded: 95d9ace3fa586bc626704e84054302048559b35a

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.

Read how this letter is chosen