PS

pottekkat/sandbox-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

123 stars 26 forks Качество 60 Тренд 16MIT

pottekkat/sandbox-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/pottekkat/sandbox-mcp.

Обзор

pottekkat/sandbox-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/pottekkat/sandbox-mcp.

Обзор (машинный перевод)

Sandbox MCP — это сервер Model Context Protocol (MCP), который позволяет LLM (MCP-хостам/клиентам) запускать код в безопасных, изолированных контейнерах Docker.

Хотя LLM очень хорошо генерируют код, большинство не могут запускать тот код. В итоге вы запускаете этот непротестированный код непосредственно на своей машине, что может иметь серьёзные непредвиденные последствия.

Предоставление LLM инструментов для безопасного тестирования кода предотвращает подобные проблемы и помогает генерировать более точный код за меньшее количество итераций.

Sandbox MCP предоставляет LLM простую в использовании среду выполнения, которую любой может создать и настроить через простой ИИ-нативный MCP-сервер, работающий локально.

Inspired от Codapi. Некоторые песочницы похожи на Codapi sandboxes.

Сценарии использования

Sandbox MCP может использоваться для множества различных задач, включая, но не ограничиваясь:

  • Безопасное выполнение кода: Запускайте любой код, сгенерированный LLM, в безопасной, изолированной среде, защищая вашу систему от ненадёжного или потенциально вредного кода.
  • Тестирование кода: Автоматическое тестирование и валидация кода на различных языках и/или конфигурациях в различных условиях перед интеграцией в крупные проекты или производственные системы.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Sandbox MCP is a Model Context Protocol (MCP) server that enables LLMs (MCP hosts/clients) to run code in secure, isolated Docker containers.

While LLMs are really good at generating code, most can’t run the code they generate. You end up running this untested code directly on your machine, which could have drastic unintended consequences.

Giving LLMs the tools to test the code safely prevents such issues and helps you generate more accurate code in fewer iterations.

Sandbox MCP gives the LLMs an easy-to-use execution environment that anyone can create and configure through a simple, AI-native MCP server that runs locally.

Inspired by Codapi. Some sandboxes are the same as Codapi sandboxes.

Use Cases

Sandbox MCP can be used for many different tasks, including but not limited to:

  • Secure code execution: Run any code generated by an LLM in a secure, isolated environment, protecting your system from untrusted or potentially harmful code.
  • Code testing: Automatically test and validate code in various languages and or configurations in various environments before integrating it into larger projects or production systems.
  • User code validation: Safely execute and check user-submitted code or scripts, ensuring they behave as expected and do not perform malicious actions.
  • Network troubleshooting: Diagnose connectivity issues, test endpoints, and analyze network performance using isolated network tools, all without exposing your system.
  • Educational and interview coding: Instantly compile and run code snippets for learning, teaching, or technical interviews, providing immediate feedback in a safe, temporary environment.
  • Automated code review and feedback: Enable LLMs to execute, test, and review code automatically, offering actionable feedback or suggestions before code is merged or deployed.

Demo

This demo shows how Sandbox MCP works with Claude Desktop.

Try the video if the GIF isn’t clear.

Installation

Download Binary

You can download the appropriate binary for your operating system (for example, Darwin) and processor architecture (arm64) from the Releases page (sandbox-mcp_Darwin_arm64.tar.gz).

Install via Go

Prerequisites:

  • Go 1.24 or higher
go install github.com/pottekkat/sandbox-mcp/cmd/sandbox-mcp@latest

Get the path to the sandbox-mcp binary:

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "sandbox-mcp": { "command": "path/to/sandbox-mcp", "args": [ "--stdio" ] } } }