Sources: PydanticAI 2.61, Harness 0.61, Monty 1.3.
Source: PydanticAI Code Mode guide.
The program handles the intermediate results; the model sees the combined result.
Dependent calls shown. Ordinary tool calling can also group independent calls. PydanticAI Code Mode guide.
The course endpoint is http://127.0.0.1:8055/mcp/. Use a client that can reach the game's machine. Week 5 setup · Claude Desktop local MCP. ChatGPT web uses a remote MCP connection or Secure MCP Tunnel.
http://127.0.0.1:8055/mcp/
ChatGPT custom MCP tools · Claude MCP · PydanticAI Code Mode. Course paths: connect4_mcp.py and connect4_codemode.py. Checked 10 November 2026.
connect4_mcp.py
connect4_codemode.py
The host checks the column returned by the sandbox before placing a disc.
Sources: Monty limitations, security model.
Source: Code Mode configuration. Standalone Monty 1.x uses a separate pool/session API.
Sources: Code Mode limits, Monty limits.
Discussed synthetic example. OpenAI MCP guidance on prompt injection and data disclosure.
Illustrative consequence of the documented boundary. Monty security model and host functions · Code Mode host access.
Monty host-function boundary · ChatGPT MCP permissions · Claude connector tool permissions.
Source: Code Mode REPL persistence.
Source: Code Mode feature reference.
smolagents 1.26.0, checked 6 November 2026. CodeAgent API · Execution and isolation.
smolagents guided tour · PydanticAI Code Mode.
Monty security model · smolagents isolation options.