AC

aberemia24/code-executor-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

130 stars 23 forks 质量 75 趋势 0MIT

aberemia24/code-executor-mcp 是从 https://github.com/aberemia24/code-executor-mcp. 导入的 MCP 服务器候选服务器。

概览

aberemia24/code-executor-mcp 是从 https://github.com/aberemia24/code-executor-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

**别再碰2-3个MCP服务器的墙了。**一个MCP来协调所有服务器——98%的代币节省,工具访问无限。

为什么使用代码执行者MCP?

  • 98% 令牌减少 - 141k → 1.6k 令牌(加载1个执行者对50+工具)
  • 沙箱安全 - 隔离Deno/Python执行,默认无互联网,审计日志
  • 类型安全包装器 - 自动生成的TypeScript/Python SDK 配备完整IntelliSense
  • 渐进披露 - 工具按需加载在沙盒内,而非上下文中前期发布
  • 零配置设置 - 向导自动通过 Claude 代码/光标检测现有的 MCP 服务器
  • 生产准备 - 606 次测试,95%+ 覆盖率,Docker 支持,速率限制

问题

你最多只能用2-3个MCP服务器,否则上下文耗尽会让你死掉。

  • 研究证实: 工具精度在2-3个服务器后显著下降
  • 6,490+ MCP服务器可用,但你只能使用2-3台
  • 47个工具 = 141k代币在你写一个单词之前就已消耗

你被迫选择: 文件系统、浏览器、git 或 AI 工具。永远不会全部。

解决方案

禁用所有MCP。只启用code-executor-mcp。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Code Executor MCP

Stop hitting the 2-3 MCP server wall. One MCP to orchestrate them all - 98% token savings, unlimited tool access.

Why Use Code Executor MCP?

  • 98% Token Reduction - 141k → 1.6k tokens (load 1 executor vs 50+ tools)
  • Sandboxed Security - Isolated Deno/Python execution, no internet by default, audit logging
  • Type-Safe Wrappers - Auto-generated TypeScript/Python SDK with full IntelliSense
  • Progressive Disclosure - Tools loaded on-demand inside sandbox, not upfront in context
  • Zero Config Setup - Wizard auto-detects existing MCP servers from Claude Code/Cursor
  • Production Ready - 606 tests, 95%+ coverage, Docker support, rate limiting

The Problem

You can’t use more than 2-3 MCP servers before context exhaustion kills you.

You’re forced to choose: filesystem OR browser OR git OR AI tools. Never all of them.

The Solution

Disable all MCPs. Enable only code-executor-mcp.

# Before: 47 tools, 141k tokens
mcp__filesystem__read_file
mcp__filesystem__write_file
mcp__git__commit
mcp__browser__navigate
... 43 more tools

# After: 2 tools, 1.6k tokens (98% reduction)
run-typescript-code
run-python-code

Inside the sandbox, access ANY MCP tool on-demand:

// Claude writes this automatically
const file = await callMCPTool('mcp__filesystem__read_file', { path: '/src/app.ts' });
const review = await callMCPTool('mcp__zen__codereview', { code: file });
await callMCPTool('mcp__git__commit', { message: review.suggestions });

Result: Unlimited MCP access, zero context overhead.

How Progressive Disclosure Works

sequenceDiagram
    participant C as Claude/Cursor
    participant E as Code Executor
    participant M as Other MCPs

    Note over C: ❌ Traditional: Load 50+ tools (141k tokens)

    Note over C: ✅ Code Executor: Load 2 tools (1.6k tokens)
    C->>E: run-typescript-code

    rect rgb(240, 248, 255)
        Note right of E: Sandbox (on-demand discovery)
        E->>M: callMCPTool('mcp__filesystem__read_file')
        M-->>E: Return data
    end

    E-->>C: Return result

Traditional MCP exposes all 47 tools upfront (141k tokens). Code Executor exposes 2 tools with outputSchema (1.6k tokens), loading others on-demand inside the sandbox when needed.

Quick Start

在 GitHub 查看完整 README

安装

npx -y code-executor-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "code-executor": { "command": "npx", "args": ["-y", "code-executor-mcp"], "env": { "MCP_CONFIG_PATH": "/full/path/to/this/.mcp.json", "DENO_PATH": "/path/to/.deno/bin/deno" } }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user"] }, "playwright": { "command": "npx", "args": ["-y", "@playwright/mcp", "--headless"] } } }