EM

elusznik/mcp-server-code-execution-mode

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

340 stars 33 forks 品質 78 トレンド 19GPL-3.0

elusznik/mcp-server-code-execution-modeは、https://github.com/elusznik/mcp-server-code-execution-mode.からインポートされたMCPサーバー候補です。

概要

elusznik/mcp-server-code-execution-modeは、https://github.com/elusznik/mcp-server-code-execution-mode.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

1クエリあたり30,000トークンの支払いをやめましょう。 このブリッジはAnthropicの発見パターンをrootless securityで実装し、MCPコンテキストを3万トークンから200トークンに削減し、任意のStdioサーバーをプロキシします。

概要

このブリッジは、業界リーダーからのアイデアが融合した**「MCPを用いたコード実行」**パターンを実装しています。

  • AppleのCodeAct:「あなたのLLMエージェントはコード生成時により良い動作をします。」
  • AnthropicのMCPを用いたコード実行:「より効率的なエージェントの構築」
  • Cloudflareのコードモード:「LLMはMCPを直接呼び出すよりも、MCPを呼び出すコードの作成に優れている。」
  • Dockerの動的MCP:「エージェントの世界をハードコーディングするのをやめましょう。」
  • Terminal BenchのTerminus:「LLMエージェントを評価するための現実的なターミナル環境」

LLMに数百の個別ツールを露出させる代わりに(膨大なコンテキストを消費しモデルを混乱させる)、このブリッジは1つのツール「run_python」を公開します。LLMはPythonコードを書き、他のツールを発見し、呼び出しし、作成します。

なぜこのvs. JS「コードモード」なのか?

JavaScriptベースの代替手段(例えばuniversal-tool-calling-protocol/code-mode)もありますが、このプロジェクトはデータサイエンスとセキュリティ向けに構築されています。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Code Execution Server: Zero-Context Discovery for 100+ MCP Tools

Stop paying 30,000 tokens per query. This bridge implements Anthropic’s discovery pattern with rootless security—reducing MCP context from 30K to 200 tokens while proxying any stdio server.

Overview

This bridge implements the “Code Execution with MCP” pattern, a convergence of ideas from industry leaders:

  • Apple’s CodeAct: “Your LLM Agent Acts Better when Generating Code.”
  • Anthropic’s Code execution with MCP: “Building more efficient agents.”
  • Cloudflare’s Code Mode: “LLMs are better at writing code to call MCP, than at calling MCP directly.”
  • Docker’s Dynamic MCPs: “Stop Hardcoding Your Agents’ World.”
  • Terminal Bench’s Terminus: “A realistic terminal environment for evaluating LLM agents.”

Instead of exposing hundreds of individual tools to the LLM (which consumes massive context and confuses the model), this bridge exposes one tool: run_python. The LLM writes Python code to discover, call, and compose other tools.

Why This vs. JS “Code Mode”?

While there are JavaScript-based alternatives (like universal-tool-calling-protocol/code-mode), this project is built for Data Science and Security:

Feature This Project (Python) JS Code Mode (Node.js)
Native Language Python (The language of AI/ML) TypeScript/JavaScript
Data Science Native (pandas, numpy, scikit-learn) Impossible / Hacky
Isolation Hard (Podman/Docker Containers) Soft (Node.js VM)
GitHub で README 全文を見る

インストール

uvx --from git+https://github.com/elusznik/mcp-server-code-execution-mode mcp-server-code-execution-mode run
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcp-server-code-execution-mode": { "command": "uvx", "args": [ "--from", "git+https://github.com/elusznik/mcp-server-code-execution-mode", "mcp-server-code-execution-mode", "run" ], "env": { "MCP_BRIDGE_RUNTIME": "podman" } } } }