Download the PHP package vielhuber/codemcp without Composer
On this page you can find all versions of the php package vielhuber/codemcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vielhuber/codemcp
More information about vielhuber/codemcp
Files in vielhuber/codemcp
Package codemcp
Short Description MCP-capable PHP orchestrator for agentic coding via Codex and Claude Code.
License MIT
Informations about the package codemcp
📟 codemcp 📟
codemcp exposes agentic coding through the official harnesses of Codex and Claude Code as a small mcp server. runs are asynchronous: they execute detached, results are collected by polling — safe behind any transport timeout.
installation
setup
.env in the project root (only for mcps via http):
usage
every function below is also exposed 1:1 as an mcp tool of the same name.
When workdir is omitted, each new session gets a random isolated directory under sys_get_temp_dir()/codemcp/. An explicit directory is created recursively when it does not exist, so new projects start in their final workspace and retain folder continuity. A running session for that folder is reused; otherwise Codemcp resumes the most recently active native Codex or Claude session and creates a new thread only when no folder history exists. model and effort are optional; when omitted, the selected coding agent uses its own defaults. Supported explicit effort values are minimal, low, medium, high and xhigh.
When start or continue submits a prompt to an existing session, the immediate response has status queued. queued_prompt and queue_position describe the new submission, while previous_prompt and previous_result expose the prior context without presenting it as the new result. session_status contains the underlying runtime state. Subsequent wait and status calls return the regular session status (running, completed, error or stopped) and the new final answer in last_content.
Long-running agents are limited by inactivity, not total runtime. MCP progress events and command output reset the internal inactivity timeout, so an active run can continue beyond 30 minutes while a stalled run is still terminated.