Grades are a hygiene check, not a security guarantee.

MCP, MCP server

Pineforge Backtest Mcp

Self-contained stdio MCP server: an AI agent writes PineScript v6, and the bundled pineforge-release image transpiles it to C++ and backtests it against an OHLCV CSV (your own, or one fetched from Binance's public API) — all in one container, in-process.

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.

PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST SECRETS_PATH_UNCONFIRMED SECRETS_ENV_READ

Why this grade

  • PERMISSION_DELETE_FILES Low

    Contains a call that can delete files.

    docker/test_pf_run_json.py, line 254 return subprocess.run([sys.executable, SHIM, "--so", "s.so", *argv], env=env,

  • NETWORK_NO_FIXED_HOST Low

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

    scripts/distribution.mjs, line 39 const response = await fetch(`https://registry.npmjs.org/@pineforge%2fbacktest-mcp${version ? `/${version}` : ""}`);

  • NETWORK_UNNAMED_HOST Low

    Calls a fixed host that the description does not name.

    scripts/distribution.mjs, line 39 const response = await fetch(`https://registry.npmjs.org/@pineforge%2fbacktest-mcp${version ? `/${version}` : ""}`);

  • SECRETS_PATH_UNCONFIRMED Low

    The Secrets check reports a credential or environment file, but no quoted line shows a recognisable path.

    scripts/distribution.mjs, line 61 assert.ok(process.env.ACTIONS_ID_TOKEN_REQUEST_URL && process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN, "OIDC unavailable");

  • SECRETS_ENV_READ Note

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

    scripts/distribution.mjs, line 61 assert.ok(process.env.ACTIONS_ID_TOKEN_REQUEST_URL && process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN, "OIDC unavailable");

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

    Concern

    can delete files.

    PERMISSION_DELETE_FILES

    docker/test_pf_run_json.py, line 254

    return subprocess.run([sys.executable, SHIM, "--so", "s.so", *argv], env=env,

    parity/pf_parity.py, line 422

    proc = subprocess.Popen(cmd, cwd=str(cwd), env=env, start_new_session=True,

    parity/pf_parity.py, line 913

    shutil.rmtree(jail, ignore_errors=True)

    Show more

    parity/pf_parity_killtest.py, line 103

    f"p = subprocess.Popen([sys.executable, {str(DRIVER)!r}], stdin=subprocess.PIPE, "

    parity/pf_parity_killtest.py, line 108

    top = subprocess.Popen([sys.executable, "-c", starter], stdin=subprocess.PIPE,

    parity/pf_parity_killtest.py, line 113

    top = subprocess.Popen([sys.executable, str(DRIVER)], stdin=subprocess.PIPE,

    parity/pf_parity_selftest.py, line 167

    proc = subprocess.run([sys.executable, str(HERE / "pf_parity.py")], input="not json",

    parity/pf_parity_selftest.py, line 172

    proc = subprocess.run([sys.executable, str(HERE / "pf_parity.py")],

    parity/prove_boundary_compiler_required.py, line 11

    result = subprocess.run(command, capture_output=True, text=True, timeout=20,

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Concern

    can reach registry.npmjs.org. The description does not name that host. can reach a host that is not written as a fixed address. can reach raw.githubusercontent.com. The description does not name that host. can reach registry.modelcontextprotocol.io. The description does not name that host. can reach api.github.com. The description does not name that host.

    NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST

    scripts/distribution.mjs, line 39

    const response = await fetch(`https://registry.npmjs.org/@pineforge%2fbacktest-mcp${version ? `/${version}` : ""}`);

    scripts/distribution.mjs, line 87

    const response = await fetch(url);

    scripts/distribution.mjs, line 99

    const facts = await fetch(`https://raw.githubusercontent.com/${HUB}/${lock.facts.commit}/${lock.facts.path}`);

    Show more

    scripts/distribution.mjs, line 105

    const auth = await fetch(`https://ghcr.io/token?scope=repository:${repository}:pull`);

    scripts/distribution.mjs, line 109

    const response = await fetch(`https://ghcr.io/v2/${repository}/${kind}/${digest}`, { headers: {

    scripts/distribution.mjs, line 231

    const r = await fetch(`https://registry.modelcontextprotocol.io/v0.1/servers/${encodeURIComponent(server.name)}/versions/${server.version}`);

    scripts/distribution.mjs, line 243

    const response = await fetch(`https://api.github.com/repos/${REPO}/releases/tags/${tag}`, { headers: { Authorization: `Bearer ${process.env.GH_TOKEN}` } });

    scripts/fetch-frozen-feed.mjs, line 23

    const response = await fetch(url, { signal: AbortSignal.timeout(30_000) });

    scripts/release-contract.mjs, line 108

    const r = await fetch(url);

    scripts/release-contract.mjs, line 130

    const r = await fetch(`https://ghcr.io/v2/${HUB}/${kind}/${hash}`, { headers: {

    src/server.ts, line 510

    resp = await fetch(url, {

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_UNCONFIRMED

    scripts/distribution.mjs, line 61

    assert.ok(process.env.ACTIONS_ID_TOKEN_REQUEST_URL && process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN, "OIDC unavailable");

    scripts/distribution.mjs, line 62

    assert.ok(!process.env.NPM_TOKEN && !process.env.NODE_AUTH_TOKEN, "long-lived npm token must not replace OIDC");

    scripts/distribution.mjs, line 243

    const response = await fetch(`https://api.github.com/repos/${REPO}/releases/tags/${tag}`, { headers: { Authorization: `Bearer ${process.env.GH_TOKEN}` } });

    Show more

    scripts/release-consumer.mjs, line 418

    const previousToken = process.env.GH_TOKEN;

    scripts/release-consumer.mjs, line 419

    if (process.env.INCIDENT_TOKEN) process.env.GH_TOKEN = process.env.INCIDENT_TOKEN;

    scripts/release-consumer.mjs, line 455

    if (previousToken === undefined) delete process.env.GH_TOKEN;

    scripts/release-consumer.mjs, line 456

    else process.env.GH_TOKEN = previousToken;

    scripts/runtime-e2e.mjs, line 71

    const suiteEnv = { ...env, PINEFORGE_PARITY_TIMEOUT_MS: file === "parity-negative.e2e.ts" ? "60000" : "600000" };

    .gitignore, line 4

    *.log

  • 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 22afa3cbd7cc. can delete files. can reach registry.npmjs.org. The description does not name that host. can reach a host that is not written as a fixed address. can reach raw.githubusercontent.com. The description does not name that host. can reach registry.modelcontextprotocol.io. The description does not name that host. can reach api.github.com. The description does not name that host. reads a credential or environment file.

Date and source

Date checked:

View source

github.com

Commit graded: 22afa3cbd7ccb353b35e6119ca54474596e6a3cd

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