PD

posit-dev/mcp-repl

Developer tools

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

73 stars 5 forks Качество 68 Тренд 34MIT

mcp-repl - это MCP-сервер, который дает агенту постоянный сеанс Python или R, поддерживаемый при вызовах инструментов.

Обзор

mcp-repl - это MCP-сервер, который дает агенту постоянный сеанс Python или R, поддерживаемый при вызовах инструментов. Агент может загружать данные один раз, проверять объекты, пробовать идеи, читать помощь, создавать сюжеты и повторять — так, как человек будет в REPL. Инструмент оболочки под управлением Rscript-e или python-c заставляет агента перестраивать контекст. mcp-repl сохраняет сеанс открытым: переменные, загруженные пакеты, графики и другие состояния остаются доступными до тех пор, пока вы или модель не сбросите. Бэкэнд работает в песочнице, навязанной примитивами ОС на уровне процесса, а не в правилах времени выполнения, специфичных для команд. Сеть отключена; записи ограничены корнями рабочего пространства и временными путями, необходимыми для активной сессии. На Unix ограждение памяти убивает рабочего, если оно превышает порог. Умное эхо (опущено, когда безопасно, исключено для больших многоэкспрессионных блоков) и в полосе справочных страниц.

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

Интерактивный рабочий стол для агентов, работающих с данными в R, Python и SQL.

Загрузите данные один раз, изучите вопросы, уточните графики, прочитайте помощь и отладьте код с объектами и моделями, все еще находящимися в памяти. Используйте один язык или комбинируйте их в одном процессе, без промежуточных файлов.

Код работает в песочнице уровня ОС по умолчанию. Консоль автоматически подготавливает среды и пакеты; конфигурационный файл консоли не требуется. Он работает с MCP-совместимыми клиентами, такими как Codex и Claude Code, и не зависит от конкретного поставщика моделей.

** Предварительный просмотр разработки: ** интерфейсы могут меняться. Поддерживаются macOS, Linux и Windows x64.

##Быстрый старт

Установите uv, затем установите Console:

Get Start охватывает предварительные условия платформы, опциональную установку R и настройку клиента. Создание из источника охватывает версию разработки.

Зарегистрируйте консоль с клиентом:

Это регистрирует Console по всему миру, настраивает клиента для запуска uvx mcp-console serve и загружает инструменты Console вперед. Добавьте --directory ., чтобы зарегистрировать его для текущего каталога. Используйте --dry-run для предварительного просмотра настроек или --no-auto-load, чтобы сохранить обнаружение инструмента по умолчанию клиента.

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

README

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

MCP Console

An interactive workbench for agents working with data in R, Python, and SQL.

Load data once, explore questions, refine plots, read help, and debug code with objects and models still in memory. Use one language or combine them in the same process, without intermediate files.

Code runs in an OS-level sandbox by default. Console prepares environments and packages automatically; no Console configuration file is required. It works with MCP-compatible clients such as Codex and Claude Code and does not depend on a particular model provider.

Development preview: interfaces may change. macOS, Linux, and Windows x64 are supported.

Quickstart

Install uv, then install Console:

uv tool install mcp-console

Get started covers platform prerequisites, optional R installation, and client setup. Build from source covers the development version.

Register Console with your client:

mcp-console configure-client codex
# Or: mcp-console configure-client claude

This registers Console globally, configures the client to launch uvx mcp-console serve, and loads Console tools up front. Add --directory . to register it for the current directory instead. Use --dry-run to preview the settings or --no-auto-load to keep the client’s default tool discovery. You can also start with uvx mcp-console configure-client codex claude to configure both clients without first installing Console. Use --pin-version VERSION to select the Console version resolved by uvx, or --no-uvx to configure an absolute executable path. --pin-version current pins the version running setup. See client setup for project/global scope and other clients. Run the client and Console on the same host, with the client’s shell and filesystem tools using the same workspace.

Ask your agent:

Use Console to generate a small dataset, fit a model, and plot the result. Keep the data and model for follow-up.

Where Console fits

  • Unattended analysis: run long analyses with limits on filesystem writes and network access.
  • Model evaluations: evaluate how an agent explores data, checks its work, and responds to results.
  • Conversational analysis: discuss questions and results while the agent works in its own session.
  • Large datasets: keep data and intermediate results in memory for follow-up questions.
  • Debugging and package development: pause execution and inspect live objects where a failure occurs.

Limits and trust boundaries

The default sandbox permits host-file reads, restricts direct networking, and permits regular-file writes only in private temporary storage. Readable secrets are not protected. Project configuration is trusted input and may widen permissions.

Dependency preparation has its own permissions.

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

Установка

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

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