Skip to main content
skill CX Codex

mcp-server-code-execution-mode — Claude Code skill: setup & use

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.

no license 173 installs ★ 9 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a claude-code
Open on GitHub

What mcp-server-code-execution-mode 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.

What it helps with

  • 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 for the agent

  • 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

How to install mcp-server-code-execution-mode

1Skills CLI (Vercel)

npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a claude-code

2Manually: put the files in place

~/.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/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mcp-server-code-execution-mode

How to install mcp-server-code-execution-mode in Claude Code?

Run npx skills add reason-machines/mcp-skills --skill mcp-server-code-execution-mode -a claude-code. The skill file will be created at ~/.claude/skills/mcp-server-code-execution-mode/SKILL.md.

What does mcp-server-code-execution-mode do?

It proxies MCP tools through Python execution, replacing individual tool definitions in the prompt with runtime discovery inside an isolated container.

What prerequisites are required before using it?

You need Podman or Docker running in rootless mode, the ghcr.io/elusznik/mcp-code-execution:latest image, and the mcp-code-execution Python package installed via pip or uv.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set98

The whole set →
anki-mcp-server-integration anki-mcp-server-integration connects your AI agent to desktop Anki via Model Context Protocol to review spaced repetition cards, create notes in batches, and manage decks. CX Codex +1 180installs linux-mcp-server-administration The linux-mcp-server-administration skill gives Claude Code read-only Linux diagnostics through MCP and SSH. Use it to inspect RHEL-based hosts, services, logs, processes, networking, and storage. CX Codex +1 178installs mcp-server-spec-driven-development The mcp-server-spec-driven-development skill guides a project from EARS requirements to a design document and generated code. Use it when you want those steps to build on one another. CX Codex +1 175installs mcp-code-execution-mode mcp-code-execution-mode executes Python inside rootless containers and routes calls to MCP servers to keep token consumption minimal. CX Codex +1 174installs nanobanana-mcp-image-generation The nanobanana-mcp-image-generation skill connects an agent to Gemini image generation and editing with model selection, 4K output, aspect ratios, and templates. Use it for visual assets from a coding workspace. CX Codex +1 172installs mcp-server-bash-sdk mcp-server-bash-sdk guides you in building zero-runtime Model Context Protocol servers using pure Bash and jq instead of heavy runtimes. CX Codex +1 171installs codex-mcp-server-integration codex-mcp-server-integration — a skill that bridges OpenAI Codex CLI to Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode via MCP. Brings code analysis, generation, branch review, and web search into the editor. CX Codex +1 171installs remote-mcp-server-with-auth remote-mcp-server-with-auth is a Claude Code skill for building and deploying a Cloudflare Workers MCP server with GitHub OAuth and PostgreSQL. It supports role-based permissions. CX Codex +1 168installs

Project sponsors

Companies that keep this analytics open