MCP.so
ログイン

Mcp Code Executor Server

@mouadenna

Mcp Code Executor Server について

dedicated isolated environment for your AI agent

基本情報

カテゴリ

開発者ツール

ライセンス

MIT license

ランタイム

java

トランスポート

stdio

公開者

mouadenna

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-code-executor-server": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "mcp-code-executor",
        "."
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Mcp Code Executor Server?

Mcp Code Executor Server is a Model Context Protocol (MCP) server that enables AI agents to execute code across multiple programming languages in a secure, isolated environment. It standardizes how AI models connect to various programming runtimes by exposing a unified MCP tool endpoint. The server is for developers integrating code execution capabilities into AI workflows.

How to use Mcp Code Executor Server?

Clone the repository, build with ./mvnw clean package, and start the server with ./mvnw spring-boot:run. The server listens on port 8080 by default. Alternatively, run via Docker using docker build -t mcp-code-executor . and docker run -p 8080:8080 mcp-code-executor. Connect an MCP-compatible AI client to http://localhost:8080 and invoke the code-execution tool with a JSON payload specifying language and code.

Key features of Mcp Code Executor Server

  • Multi-language support: Java, Python, JavaScript, TypeScript, C++
  • Secure execution in isolated containers with resource limits
  • MCP integration for seamless client discovery
  • Automatic compilation for Java, C++, and TypeScript
  • Detailed compile-time and runtime error feedback
  • Automatic cleanup of temporary files and execution timeouts

Use cases of Mcp Code Executor Server

  • AI assistants executing code snippets in a sandboxed environment
  • Automated testing of code in multiple languages from a single interface
  • Providing AI agents with runtime feedback to refine code generation
  • Enabling multi-language code evaluation in educational AI tools
  • Integrating code execution into MCP-compatible client workflows

FAQ from Mcp Code Executor Server

Which programming languages are supported?

Java, Python, JavaScript, TypeScript, and C++.

How does the server ensure secure code execution?

It uses isolated containers with resource limits on CPU, memory, and timeouts, and automatically deletes temporary files.

What are the prerequisites to run the server locally?

Java 17+, Python 3.8+, Node.js & npm, and a C++ compiler (g++).

Can I run the server in a container for additional isolation?

Yes, the README provides Docker and Docker Compose instructions for running the server in a container.

How do I connect an MCP client to the server?

Start your MCP-compatible AI client and point it to http://localhost:8080 to discover and invoke the code-execution tool.

コメント

「開発者ツール」の他のコンテンツ