# mcp-server-code-execution-mode

mcp-server-code-execution-mode executes Python in rootless Podman or Docker containers and proxies MCP tools through a single entry point, cutting context from 30,000 to 200 tokens.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 173 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/mcp-server-code-execution-mode/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/mcp-server-code-execution-mode

## What it does

This skill sets up Python execution inside a rootless Podman or Docker sandbox. Instead of loading hundreds of tool definitions directly into the agent context, it exposes a single `run_python` tool. The agent discovers connected MCP servers, inspects schemas, and invokes tools directly from script code.

The bridge supports fuzzy search across servers and keeps variables intact between steps. The sandbox runs with dropped Linux capabilities, a read-only filesystem, disabled network access, a default 512m memory limit, and a 128-process cap.

Without Podman or Docker set up in rootless mode, the bridge cannot start. To proxy additional MCP tools into the sandbox, define them in `mcp_bridge_config.json` via standard stdio commands.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mcp-server-code-execution-mode/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mcp-server-code-execution-mode/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mcp-server-code-execution-mode/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mcp-server-code-execution-mode/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/mcp-server-code-execution-mode
```

2. **Manually: put the files in place**
- File: `.github/skills/mcp-server-code-execution-mode/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/mcp-server-code-execution-mode
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mcp-server-code-execution-mode/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/mcp-server-code-execution-mode/SKILL.md

## When to use it
- shrink context overhead when connecting dozens of MCP tools
- execute untrusted Python scripts in a network-isolated container
- discover and call MCP server tools dynamically at runtime
- maintain variables and session state across multiple execution turns

## Example prompts
- Run this data analysis script inside the isolated Python container
- Search for GitHub MCP tools and create an issue through code execution
- Fetch calendar events and create corresponding tasks across proxied servers

## Similar
- [podman](https://affpapa.org/en/nevibecode/skills/podman.md) — skill · 463 installs
- [planetscale-autonomous-execution-mode](https://affpapa.org/en/nevibecode/skills/planetscale-autonomous-execution-mode.md) — skill · 2000 installs
- [container-host-checks](https://affpapa.org/en/nevibecode/skills/container-host-checks.md) — skill · ★ 71 repo stars
- [searxng-search](https://affpapa.org/en/nevibecode/skills/searxng-search.md) — skill · 838 installs
- [debug-openshell-cluster](https://affpapa.org/en/nevibecode/skills/debug-openshell-cluster.md) — skill · 739 installs
- [containers](https://affpapa.org/en/nevibecode/plugins/containers.md) — plugin · ★ 11 repo stars

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
