← Back to dart_monty

MCP Documentation

dart_monty_mcp — give your LLM a Python interpreter

Client Setup

Configure MCP clients (Claude Desktop, Cursor, etc.) to connect to the dart_monty_mcp server.

Host Functions

Extend the Monty interpreter with Dart-implemented capabilities callable from Python.

Session Persistence

Save and restore Python state between calls using JSON serialization.

Startup Modes

Stdio transport, custom configuration, and embedding the server in your own app.

Python Subset

What Python features Monty supports — types, control flow, functions, classes, and known limitations.

Results and Errors

Extracting text output from CallToolResult, handling errors, print() capture, and adapter functions.

Architecture

Component tree, session lifecycle, bridge event flow, and how the MCP server wires together.