Metadata-Version: 2.4
Name: mcp-console
Version: 0.4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering
Requires-Dist: anthropic[mcp]>=1.15.0 ; extra == 'anthropic'
Requires-Dist: anyio>=4.15.1 ; extra == 'anthropic'
Requires-Dist: mcp>=2.3.0,<3 ; extra == 'anthropic'
Requires-Dist: chatlas[mcp]>=0.23.0 ; extra == 'chatlas'
Requires-Dist: anyio>=4.15.1 ; extra == 'chatlas'
Requires-Dist: mcp>=2.3.0,<3 ; extra == 'chatlas'
Requires-Dist: anyio>=4.15.1 ; extra == 'client'
Requires-Dist: mcp>=2.3.0,<3 ; extra == 'client'
Requires-Dist: openai-codex>=0.163.0 ; extra == 'codex'
Requires-Dist: openai>=3.31.0 ; extra == 'openai'
Requires-Dist: anyio>=4.15.1 ; extra == 'openai'
Requires-Dist: mcp>=2.3.0,<3 ; extra == 'openai'
Requires-Dist: openai-agents>=0.24.0 ; extra == 'openai-agents'
Requires-Dist: anyio>=4.15.1 ; extra == 'openai-agents'
Requires-Dist: mcp>=2.3.0,<3 ; extra == 'openai-agents'
Provides-Extra: anthropic
Provides-Extra: chatlas
Provides-Extra: client
Provides-Extra: codex
Provides-Extra: openai
Provides-Extra: openai-agents
License-File: LICENSE
Summary: Persistent R, Python, and SQL sessions for MCP clients
Keywords: mcp,r,python,sql,duckdb
License-Expression: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/posit-dev/mcp-console
Project-URL: Issues, https://github.com/posit-dev/mcp-console/issues
Project-URL: Repository, https://github.com/posit-dev/mcp-console

# MCP Console

An interactive workbench for agents working in R, Python, and SQL.

Load data once, explore questions, refine plots, read help, and debug code with objects and models still in memory.
Use one language or combine them in the same process, without intermediate files.

Code runs in an [OS-level sandbox](docs/SANDBOX.md) by default.
Console prepares environments and packages automatically; no Console configuration file is required.
It works with MCP-compatible clients such as Codex and Claude Code and does not depend on a particular model provider.

**Development preview:** interfaces may change.
The development version supports macOS, Linux, and Windows on x86-64 and ARM64.

## Quickstart

For native Windows ARM64, use the [development installation](docs/CLIENTS.md#development-version) until the first `win_arm64` wheel is published.
On [platforms with a published wheel](docs/CLIENTS.md#supported-platforms), install [uv](https://docs.astral.sh/uv/getting-started/installation/) and run the command for your client.

```sh
uvx mcp-console configure-client codex
# Or: uvx mcp-console configure-client claude
```

Restart your client after setup.
Run the client and Console on the same host, with the client's shell and filesystem tools using the same workspace.
[Get started](docs/getting-started.qmd) covers a first analysis; [Install and connect](docs/CLIENTS.md) covers platform prerequisites, optional R installation, and other clients.

Ask your agent:

> Use Console to generate a small dataset, fit a model, and plot the result.
> Keep the data and model for follow-up.

### Development version

Install the [build tools](docs/BUILD_FROM_SOURCE.md#install-build-tools), then install the development version and register it with your client:

```sh
uv tool install git+https://github.com/posit-dev/mcp-console
mcp-console configure-client codex --no-uvx
# Or: mcp-console configure-client claude --no-uvx
```

Restart your client after setup.
See [Build from source](docs/BUILD_FROM_SOURCE.md) for updates and other installation options.

## Where Console fits

- **Unattended analysis:** run long analyses with limits on filesystem writes and network access.
- **Model evaluations:** evaluate how an agent explores data, checks its work, and responds to results.
- **Conversational analysis:** discuss questions and results while the agent works in its own session.
- **Large datasets:** keep data and intermediate results in memory for follow-up questions.
- **Debugging and package development:** pause execution and inspect live objects where a failure occurs.

## Limits and trust boundaries

The default sandbox permits host-file reads, restricts direct networking, and permits regular-file writes only in private temporary storage.
**Readable secrets are not protected.** Project configuration is trusted input and may widen permissions.

Dependency preparation has its own permissions.
Recordings contain code, input, and output without redaction and have no automatic cleanup.
Read [Sandbox and trust](docs/SANDBOX.md) before changing permissions and [Recordings](docs/RECORDING.md) before sharing session files.

One connection can manage several independent sessions, each running one code cell at a time.
Errors do not roll back earlier effects.
Restart discards live objects but retains accepted requirements and recordings.

## Documentation

[Documentation website](https://posit-dev.github.io/mcp-console/) · [Get started](docs/getting-started.qmd) · [User guides](docs/README.md) · [Client integration](docs/CLIENTS.md) · [Development](docs/DEVELOPMENT.md)

`mcp-console` was previously called [`mcp-repl`](https://github.com/posit-dev/mcp-console/tree/e60f582d943727a17a38a4162ba63a55b6c773c6).
Licensed under the [MIT license](LICENSE).

