Skip to main content

ccc-mcp

Let ChatGPT Chat write, test, and review code on your own computer.

CI Python 3.11+ Platforms MCP License: MIT

ChatGPT Codex Claude Code

ccc-mcp connects ChatGPT Chat to a local coding workspace through MCP. Ask in ChatGPT; it can work on an authorized repository, make changes, run host-side tests, and show the diff and results. Use your existing ChatGPT plan instead of a separately metered model API. ChatGPT-only is the primary workflow. Codex and Claude Code are optional providers for teams that want to split roles across tools.

繁體中文 README · English documentation

Start with the UI

Install ccc-mcp, then open its local control center:

pip install ccc-mcp
ccc-mcp ui

Requires Git and Python 3.11+. In the UI:

  1. Projects: create a project or add an existing folder, then enable write access for the project.
  2. Connect: follow Connect ChatGPT to create an OpenAI Platform Tunnel. Enter its Tunnel ID and runtime API key in the console.
  3. Settings: select the chatgpt-only profile. The Test command can be left blank: ccc-mcp installs declared Python dependencies and chooses tests from changed test files when possible. Set a command when you need a specific scope.
  4. ChatGPT: select the ccc-mcp connection and ask it to make a change. Inspect Tasks and Context in the UI to see the actual edits, test results, and next step.

The UI runs on local 127.0.0.1 and stops with Ctrl+C. See every console page.

About tokens and keys: This workflow uses your existing ChatGPT plan instead of an OpenAI model API key and its per-token API billing. ChatGPT plan limits still apply. The Tunnel connection uses its own runtime API key; connection setup explains that key.

What makes ccc-mcp useful

Capability What you get
ChatGPT Chat as the coding agent ChatGPT can read and edit an authorized local project, then continue the work in the same conversation. No Codex or Claude Code installation is required for chatgpt-only.
Skills, including MCP-oriented Skills Install reusable SKILL.md guidance, including nested supporting files. Choose global Skills in the UI so every project and role can use them. A Skill can guide an agent to use an MCP tool after that server is installed.
MCP servers and tools Discover local MCP servers, install one for a project, select which tools the project may use, and call them from ChatGPT. For example, codebase-memory-mcp can provide repository structure and code relationships. Skills guide the workflow; MCP tools supply live capabilities.
A recoverable workflow Run SA → SD/RD → REVIEW with versioned shared Context and saved execution records. Resume a task in another chat from the project’s .ccc-mcp data.
Host-side verification Install declared dependencies, run pytest, and retain host-observed results, exit codes when available, diffs, reports, and review evidence.
One local control center Manage projects, permissions, connections, global Skills, per-project MCP tools, tasks, and Context from ccc-mcp ui. The CLI remains available for scripts and advanced use.

Proof: three selected SWE-bench Verified cases

Using ChatGPT-only, ccc-mcp resolved three selected SWE-bench Verified Astropy instances after iterative repair. Each has a local run of the official evaluation harness reporting resolved: true:

Instance Harness report
astropy__astropy-12907 report.json
astropy__astropy-13236 report.json
astropy__astropy-13398 report.json

Read the evidence and methodology, including run IDs and ChatGPT conversations. These are 3 selected cases, not a full-benchmark score or an official leaderboard submission.

ChatGPT first; other agents are optional

With the chatgpt-only profile selected, ChatGPT handles the project manager and SA → SD/RD → REVIEW roles. The workflow records each handoff so the next chat can pick up the saved state.

ChatGPT Chat → local project → tests, diff, review
       ↑                            │
       └──── saved Context and next step ────┘

If you want a multi-agent workflow, assign supported roles to Codex or Claude Code through their native CLIs. Configure providers, effort, quota fallback, test command, and report language in Settings. See the workflow guide.

Web console

ccc-mcp ui

Starts a local web console in the same process that already serves the CLI and MCP server — no separate frontend to clone, build, or run, and no Node.js required even if you build from source (the UI ships as plain HTML/CSS/JS bundled into the ccc-mcp wheel). It binds 127.0.0.1 only, prints its URL, and opens your browser; pass --port to pin a port (ccc-mcp reports clearly if that port is taken) or leave it out to pick a free one automatically, and --no-browser to skip the auto-open. Press Ctrl+C to stop it. It reads the same --home database the CLI and MCP server use, so projects and tasks are always in sync across all three.

The console's main pages:

Page What you can do
Projects Create projects, add existing folders, and organize groups; enable or revoke write access after adding a project.
Settings Set the profile, providers and roles, report language, test command, and Meeting Mode.
Tasks / Context Inspect stages, waiting reasons, execution history, usage and CLI invocation evidence, raw results, and shared context.
Connect Connect ChatGPT with an OpenAI Platform Tunnel ID and runtime API key; inspect status and logs.
Global Skills Select local Claude Code or Codex Skills to install for every project and role; inspect or remove installed Skills.
Skills & MCP View shared Skills; discover, install, and manage local stdio MCP servers and their tools for one project.
Documentation Read the bundled English and Traditional Chinese guides inside the console.

In Skills & MCP, inspect tools, choose which ones this project may use, invoke enabled tools with JSON arguments, and view recent MCP calls. Globally installed MCP servers also appear there, but still require the CLI to remove. The sidebar's interface language is separate from each project's report language. Connect can remember a runtime API key on this device (~/.ccc-mcp/tunnel/credentials.json, readable only by your OS account); stored keys are never returned to the browser. Enabling write, clearing history, and deleting require typed confirmation. See reliability and security for details.

On Projects, create named groups, move cards with the dropdown or drag-and-drop, and reorder groups. This only changes local console organization (<home>/ui/project_groups.json), not project paths or settings. Connect can save multiple named profiles, including different keys for the same Tunnel ID; select a saved profile and click Connect to use it. One Tunnel connection runs at a time.

CLI: automation and advanced use

If you prefer a terminal or write scripts, the CLI operates on the same project data. ccc-mcp setup all and signing in to Codex or Claude Code are only needed if you plan to use those optional native roles. For example, to create a project entirely from the CLI:

ccc-mcp project create hello-demo --write
ccc-mcp --project hello-demo task status
ccc-mcp --project hello-demo task usage
ccc-mcp --project hello-demo context show

--write asks for local confirmation while creating the project, authorizing ccc-mcp to write there and run its configured test command. For an existing folder, use ccc-mcp project add <folder> --write. If you only use ChatGPT, skip setup all and select chatgpt-only in the project's Settings, or run ccc-mcp --project hello-demo config profile chatgpt-only.

For native roles, task usage shows whether the CLI was actually invoked. ChatGPT roles are interactive: task usage marks them "interactive": true with invocation.source: "chatgpt_web", so cli_invoked: false is expected. See the CLI reference for all commands.

Documentation

Read the numbered documents in order for a full setup. The two language trees use the same filenames and sequence.

Step Topic
1 Install and sign in
2 Connect ChatGPT
3 Create and authorize a first project
4 Run and resume the workflow
5 Configure providers, roles, context, and tests
6 Install and use skills
7 Understand reliability and security boundaries
8–11 CLI reference, public protocol, technical reference, and architecture

Important boundary

Continuous write authorization — granted via project authorize, project add --write/project create --write, or the web console's "Enable write" — permits ccc-mcp to modify that project and run its configured test command. Dependency installation can execute package scripts, so review dependency changes as part of the diff. Codex runs in its configured sandbox. Claude Code has a restricted tool policy, but does not yet have an equivalent OS-enforced sandbox; use a least-privileged OS account for it.

To remove a project from project list while keeping its folder, use ccc-mcp project remove <id> (or the web console's Remove, keep folder action). This archives ccc-mcp history and lets you register the same ID again. Add --delete-files only when you also want to permanently delete the project's directory; the CLI and web console require a separate typed confirmation. Running executions must finish or be cancelled first. project delete is different: it permanently retires the ID and preserves historical records and files. See reliability and security for the full guarantee.

Development

python3.11 -m pytest -q

The repository requires Python 3.11 or newer. Real-agent tests are opt-in because they need locally installed, authenticated CLIs; see Chinese or English.

Metadata

Release files for ccc-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccc-mcp 0.2.0
File Size Uploaded Provenance Actions
ccc_mcp-0.2.0.tar.gz 432.8 kB With provenance Details for ccc_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ccc-mcp 0.2.0
File Interpreter ABI Platform Actions
ccc_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for ccc_mcp-0.2.0-py3-none-any.whl

Total release size: 790.0 kB

Release files / ccc_mcp-0.2.0.tar.gz

Download URL ccc_mcp-0.2.0.tar.gz
Size 432.8 kB
Tags Source
SHA-256 checksum
How to use checksums
15844b830f71e50fb0c555a0fa37555dfdbe142423381449b0daffc60047fe93
BLAKE2b-256 checksum
How to use checksums
1e60715855544360444395272879ae6500afcccf5a509de2e34bb335b4943e59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / ccc_mcp-0.2.0-py3-none-any.whl

Download URL ccc_mcp-0.2.0-py3-none-any.whl
Size 357.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46edf60e2b550359239427b037aab489ceb5894e998a91c439d4367cfb99adba
BLAKE2b-256 checksum
How to use checksums
880da55e7322ec3bf2c1893301a6b9b27a9e1bdd1b3cbcd3df0fd8686025b0c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for ccc-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ccc_mcp-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page