Python API reference

Clients

MCPConsole

A synchronous, persistent connection to mcp-console serve.

AsyncMCPConsole

A persistent, callable connection to mcp-console serve.

Requirements

Dependency declarations accepted by the clients’ send(requirements=...).

chatlas

chatlas.tool()

Give a chatlas chat access to an existing Console session.

chatlas.register()

Start Console and register its native MCP tools on a chatlas chat.

openai — Responses API

openai.responses_tool()

Connect Console to an application-owned OpenAI Responses tool loop.

openai.ResponsesTool

A synchronous Responses tool that preserves Console text and images.

openai.AsyncResponsesTool

An async Responses function tool that preserves Console text and images.

openai-agents — Agents SDK

openai.agents_tool()

Give an OpenAI agent access to an existing Console session.

openai.agents_server()

Start Console as a native MCP server for an OpenAI agent.

openai-codex — Codex SDK

codex.server()

Configure Console as a stdio MCP server for the Codex SDK (openai-codex).

Anthropic

anthropic.tool()

Give Anthropic’s tool runner access to an existing Console session.

anthropic.tools()

Open a Console session for Anthropic’s async tool runner, including images.