ToolTrust
C40/100
formulahendry

mcp-server-code-runner

mcp0.1.8

@formulahendry

Code Runner MCP Server

By formulahendry | 2 findings | Scanned 6/3/2026 | tooltrust-scanner/v0.3.13 | 241

1 Critical1 High

Risk Summary

Needs Approval

Supply Chain CVEs plus Arbitrary Code Execution raises enough risk that this tool should not be auto-trusted.

Potential impact: Known dependency vulnerabilities can be exploited during install or runtime and widen the attack surface.

Recommended action: Keep this tool behind manual approval and avoid unattended runs until the risky capabilities are narrowed or removed.

Suggested policy: keep this tool behind manual approval, do not allow unattended runs, and re-scan after narrowing risky permissions.

Security Findings (2)

  • CriticalAS-006

    ๐Ÿ’ปArbitrary Code Execution

    heuristic signal

    run-code:tool name or description implies arbitrary script/code execution (evaluate_script, execute javascript, etc.)

    Fix: This tool can execute arbitrary code or shell commands on the host system. Remove it unless strictly required. If kept: (1) restrict access to trusted users/agents only, (2) require human approval before each invocation (Claude Desktop: set approval_required: true; other clients: enable equivalent confirmation), (3) use the most restrictive sandbox or read-only mode available, and (4) never expose this tool to untrusted input sources.

  • HighAS-004

    ๐Ÿ“ฆSupply Chain CVEs (OSV)

    run-code:GO-2026-5024 in golang.org/x/[email protected]: Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows (upgrade to 0.44.0)

    Fix: Upgrade or replace the vulnerable dependency. Pin all dependency versions and enable automated CVE scanning (Dependabot or OSV Scanner).

Scan this tool yourself

Reproduce this audit locally, integrate into CI, or let your agent audit its own tools.

Install once, then scan any MCP server:

$ curl -sfL https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-scanner/main/install.sh | bash
$ tooltrust-scanner scan --server "npx -y mcp-server-code-runner"

Adjust the package name if your npm registry name differs from the tool ID. View source

Add badge to your README

Copy this Markdown to show your ToolTrust grade on GitHub.

[![ToolTrust Grade C](https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-directory/main/docs/badges/grade-c.svg)](https://github.com/AgentSafe-AI/tooltrust-directory)