bayma
Provides durable REPL sessions using the Bun runtime, allowing stateful execution of JavaScript/TypeScript code with persistent state and recovery from checkpoints.
Provides durable REPL sessions using Python, enabling stateful execution of Python code with persistent state and recovery from checkpoints.
Provides durable REPL sessions using Rust, enabling stateful execution of Rust code with persistent state and recovery from checkpoints.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@baymaStart a Python session and compute the first 10 Fibonacci numbers."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bayma
A durable engine for REPL sessions. bayma allows agents to run and manage long-lived, Jupyter-like code execution sessions. For an agent, an individual bayma REPL session works like a Jupyter notebook, presented to it as an MCP server whose function calls look similar to other "code mode" execution interfaces.
It supports eight REPL runtimes, including Bun, Python, Lean, and Go.
Get Started
On Linux (x64), with Docker and Node 22 or later, set bayma up:
npx bayma-repl initTo move to the latest bayma, run
npx bayma-repl@latest upgradeand restart your MCP clients: a REPL session snapshotted by another version
comes back from its checkpoints rather than live. npx bayma-repl uninstall
takes bayma off again, and with --purge, REPL sessions' state too.
Then you can use bayma. Each runtime has a skill, bayma-runtime-*, on how to
work in that runtime with bayma. Within a REPL session, an agent executes code
in that runtime, including against legacy software. For example, in the C++
runtime, with libardour, it can run a headless digital audio workstation:
npx skills add eaucoin/bayma --skill bayma-runtime-cpp bayma-platform-ardouror with MLT++, a headless non-linear editor for video:
npx skills add eaucoin/bayma --skill bayma-runtime-cpp bayma-platform-mltppOr in the Python runtime, with bpy, it can model, animate, and render 3D scenes in a headless Blender:
npx skills add eaucoin/bayma --skill bayma-runtime-python bayma-platform-bpyEach of these is a bayma-platform-* skill: one per platform, meaning an
application or service an agent drives through its API. The skill shows where
that API's reference is, and keeps what the platform needs in its own folder
rather than being bundled with bayma.
Within each of the two namespaces, the skills share a similar structure, which makes it easier to add new runtimes and platforms.
Related MCP server: mcp-python-repl
Development
See package.json for the development scripts, Dockerfile for the image,
packages/cli for the bayma command npm publishes as bayma-repl,
.github/workflows/ for the GitHub Actions workflows, and
.agents/skills/development-observability/ for development observability.
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcp-serverOAuthai.cdbx
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
Hosted MCP runtime where your agent publishes its own tools by tool call and keeps working.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThe sessionless code interpreter. Securely run AI-generated code in stateful sandboxes that run forever.73 npm229MIT
- AlicenseAqualityDmaintenanceA production-grade MCP server providing a persistent Python REPL with multi-session support, sandboxing, and timeout protection, enabling LLM agents to execute Python code across multiple turns with variables that persist between calls.1235 PyPI1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for secure, session-based Python code execution in Docker containers, enabling LLM applications to run code, manage state, and access files.9MIT
- FlicenseNot gradedqualityDmaintenanceA runtime for inspectable agent workflows that provides MCP tools, bounded Python execution, session memory, and deterministic evaluation.-