codemcp
Forwards normalized MCP tools to Codex or Claude Code for agentic coding tasks like starting new sessions, continuing existing ones, and checking status.
README
📟 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-server - Claude Code via
claude -p/claude --resume
installation
install once with composer:
composer require vielhuber/codemcp
then add this to your files:
require __DIR__ . '/vendor/autoload.php';
use vielhuber\codemcp\codemcp;
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.
codemcp expects codex and claude in the local node_modules/.bin directory of the project where the MCP server is started.
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.php
available 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/phpunit
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.