codemcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codemcpstart a new coding session to review and fix bugs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📟 codemcp 📟
codemcp is a small mcp server that exposes agentic coding through codex and claude code. it does not reimplement a coding agent, it forwards normalized MCP tools to the closest official agent interface:
Codex via
codex mcp-serverClaude Code via
claude -p/claude --resume
installation
install once with composer:
composer require vielhuber/codemcpthen add this to your files:
require __DIR__ . '/vendor/autoload.php';
use vielhuber\codemcp\codemcp;Related MCP server: codex-as-mcp
setup
codemcp reads configuration from the .env in your project root.
CODEMCP_PROVIDER=codex
CODEMCP_WORKDIR=/app
CODEMCP_ALLOW_WRITE=false
MCP_TOKEN=Claude Code also has claude mcp serve, but that exposes Claude Code's tools to another MCP client. For running Claude Code as the coding agent, codemcp uses print/resume mode.
usage
$code = codemcp::create();
$result = $code->start(
prompt: 'Review this project and list the highest-risk bugs.',
workdir: '/app',
provider: 'codex'
);
print_r($result);mcp server
codemcp ships as a standalone MCP server:
vendor/bin/mcp-server.phpavailable tools:
start(prompt, workdir?, provider?)continue(session_id, prompt)status(session_id?)providers()
write access
Set CODEMCP_ALLOW_WRITE=true when the agent may edit files. Otherwise Codex runs read-only and Claude Code runs in plan mode.
tests
vendor/bin/phpunitThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vielhuber/codemcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server