CodeMCP
Provides workspace-bound Git operations on explicitly registered local projects, applying the runtime's path and workspace scope before Git work is performed.
Integrates with OpenAI Secure MCP Tunnel to connect ChatGPT to a local runtime without inbound public MCP exposure. Supports tunnel configuration with restricted runtime API keys, runtime status checks, and exposing workspace-scoped tools for ChatGPT custom apps.
CodeMCP
CodeMCP is a workspace-aware execution, context, and agent orchestration server for AI clients.
Single Go binary · OpenAI Secure MCP Tunnel · Linux, macOS, and Windows
Get started · MCP profiles · Security · Documentation
CodeMCP runs locally and gives supported AI clients controlled access to explicitly registered projects. For ChatGPT, the primary path is OpenAI Secure MCP Tunnel: the local runtime makes an outbound connection to OpenAI, so the MCP server does not need a public inbound endpoint. Generic MCP clients can use the same runtime through local stdio or Streamable HTTP.
Overview
One runtime owns canonical feature execution. Workspace scope and permissions constrain host access, while instruction context, approvals, local control surfaces, Telegram, and managed integrations feed the same runtime. MCP profiles only change the client-facing projection:
OpenAI profile — used by OpenAI Secure MCP Tunnel and available to direct HTTP clients with
--profile openai.Base profile — standards-oriented generic MCP projection and the default for direct local MCP transports.
See MCP profiles and transports.
Why CodeMCP
Private OpenAI path — Secure MCP Tunnel keeps the default ChatGPT connection outbound-only from your machine.
Workspace-bound execution — filesystem, shell, Git, process, context, memory, rules, skills, plans, and checkpoints operate against registered
ws_*scopes.Local authority — approvals, control guards, secrets, and runtime policy remain local even when the client projection changes.
Multiple operator surfaces — CLI, TUI, Browser Admin, and Telegram use the same application services.
Extensible runtime — optional RTK, CodeGraph, TypeSafe/SystemOne, LLM providers, and upstream MCP servers extend the same runtime.
Related MCP server: mcacp
Install
The installed command is always cm. Pick one installation owner and keep using that owner for upgrades.
Managed direct install
Best when you want a per-user installation managed by CodeMCP itself. cm upgrade verifies, stages, activates, and can roll back managed-direct releases.
Linux / macOS
curl -fsSL get.mewis.me/codemcp.sh | shWindows PowerShell
irm https://get.mewis.me/codemcp.ps1 | iexWindows setup executables
The setup executable bootstraps the same managed-direct layout as the PowerShell installer.
Homebrew
brew tap mewisme/mew
brew install --cask codemcpHomebrew owns upgrades for this installation.
Scoop
scoop bucket add mew https://github.com/mewisme/scoop-mew
scoop install mew/codemcpScoop owns upgrades for this installation.
Debian packages
Architecture | Package |
amd64 | |
arm64 |
sudo apt install ./codemcp_linux_amd64.debUse the arm64 package on ARM64. Debian owns upgrades after package installation.
RPM packages
Architecture | Package |
amd64 | |
arm64 |
sudo dnf install ./codemcp_linux_amd64.rpmUse the arm64 package on ARM64. RPM/DNF owns upgrades after package installation.
Manual release archives
Release asset filenames are stable; the Git tag carries the release version. Supported release targets are Linux x64/ARM64, macOS x64, and Windows x64.
Platform | Architecture | Archive |
Linux | amd64 / x64 | |
Linux | arm64 | |
macOS | amd64 / x64 | |
Windows | amd64 / x64 |
For an exact version, pin the tag while keeping the stable filename:
https://github.com/mewisme/codemcp/releases/download/vX.Y.Z/codemcp_linux_amd64.tar.gzRelease executable/package/setup assets are covered by codemcp_checksums.txt; its Sigstore bundle is codemcp_checksums.txt.sigstore.json.
5-minute OpenAI setup
Create the tunnel in OpenAI Platform → Tunnels, then use its tunnel_... ID below.
cm init
cm workspace register ~/projects/my-project
cm tunnel configure --enabled --id tunnel_...
cm tunnel key set
cm up
cm status
cm tunnel statusUse an OpenAI runtime key with Tunnels Read + Use. It is not an OpenAI Admin API key.
In ChatGPT developer mode, create a developer-mode app/plugin using Tunnel, select the same tunnel, scan tools, review the discovered surface, and enable it.
OpenAI's current Secure MCP Tunnel documentation is the source of truth for Platform permissions, workspace associations, and ChatGPT UI details: https://developers.openai.com/api/docs/guides/secure-mcp-tunnels.
Generic MCP clients
The Base profile is the default for direct local transports:
cm mcp stdio --workspace ~/projects/my-project
cm mcp http --workspace ws_...A direct HTTP client can request the OpenAI projection explicitly:
cm mcp http --profile openai --workspace ws_...Profiles do not bypass CodeMCP authentication, workspace scope, control guards, or approvals. See MCP profiles and transports.
Operate CodeMCP
cm status
cm logs -f
cm config verify
cm workspace list
cm tuiUse cm <command> --help for the installed binary's exact command and flag surface.
Security model
CodeMCP is an application-level workspace and control boundary, not a kernel sandbox. It canonicalizes workspace roots, uses root-anchored filesystem operations for sensitive paths, rejects unsafe symlink escapes, separates control-plane mutations from ordinary workspace work, and stores managed credentials outside normal plaintext structured config.
For isolation from hostile native code running as the same OS user, use an OS sandbox, container/VM, or separate operating-system identity.
Read Security before widening filesystem or network access.
Documentation
Goal | Guide |
Install and connect ChatGPT | |
Understand OpenAI and Base MCP profiles | |
Scope projects and additional roots | |
Manage workspace/global Agent Skills and GitHub-backed skills | |
Run, inspect, update, and use operator UIs | |
Configure settings, auth, and secrets | |
Configure RTK, CodeGraph, TypeSafe, LLM, and Telegram | |
Understand trust boundaries and privacy | |
Diagnose failures | |
Build, test, and contribute |
See the documentation index for suggested reading paths.
Development
make bootstrap
make check
make testSee Development and CONTRIBUTING.md.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Related MCP Servers
- AlicenseAqualityAmaintenanceOne local gateway for all your MCP servers — shared by every AI coding tool (Claude, Cursor, VS Code, Codex). Set up each server once; keys stay in the OS keychain; lazy discovery keeps agent context small. Local-first, open source.42 npm233MIT
- AlicenseAqualityDmaintenanceBridges any MCP client (like Claude Code, Zed, VS Code) to any ACP coding agent, enabling multi-agent orchestration from a single chat interface.24111 npm11Apache 2.0
- AlicenseNot gradedqualityBmaintenanceRemote MCP coding bridge that gives ChatGPT/Codex secure local workspace access, including file retrieval, semantic code intelligence, Git, diagnostics, and guarded shell execution.38 npmMIT
- AlicenseNot gradedqualityBmaintenanceA bridge that enables the ChatGPT web interface to use local file and shell tools through the official MCP protocol, turning the workspace into an agentic coding environment.13MIT