June 10th, 2026
jhansi now ships with an MCP server, making Petri natively usable by Claude Code, Cursor, Windsurf, and any MCP-compatible agent.
What's new
pip install jhansi now includes an MCP server. Three tools are exposed: create_sandbox, exec_code, and delete_sandbox. Works with any MCP-compatible AI coding agent. Configurable via JHANSI_BASE_URL — point it at your own Petri instance.
How to connect (Claude Code)
claude mcp add jhansi --scope user --env JHANSI_BASE_URL=http://localhost:8000 -- python -m jhansi.mcp_server
Then just ask your agent to run code in a sandbox.