Skip to content

Repository files navigation

CodeSpace

Personal execution-tools MCP server. ChatGPT, Cursor, or another MCP client decides what to do. This process reads workspace files, applies Codex-format patches through a pinned Rust codex-apply-patch engine, and runs managed commands in the registered workspace.

The server is a Cargo workspace built with rmcp (stdio and Streamable HTTP). There is no TypeScript gateway and no legacy native/patch-worker. The gateway talks to a Rust codespace-patch helper over JSON stdin/stdout. That helper process calls Codex in-process. exec_command currently spawns a host process (tokio::process::Command) with the workspace as cwd. Isolated Linux dispatch is the target runner boundary, not the current exec path.

This is not:

  • a fork of CoS or cokacremote
  • a Codex agent wrapper
  • a host that calls a model internally
  • a completed Linux sandbox runner

There are no internal model calls. The MCP client owns judgment; CodeSpace owns execution contracts: path policy, operation idempotency, patch apply/rollback reporting, and process lifetime.

Status

Live MCP tools include workspace_info, read, find, apply_patch, operation_status, exec_command, write_stdin, read_process, terminate_process, work_open, steer_status, steer_claim_next, steer_complete, and work_finish. Codex V4A apply is crates/patch inside the codespace-patch helper (see docs/upstream-lock.md). Deferred user intent is edited on HTTP /inbox (not MCP).

Current vs target process layout: docs/architecture.md. Install, HTTP/stdio, logs, and recovery: docs/operations.md. Do not commit features directly to main.

Run

cargo run -p codespace-server --bin codespace-mcp
# Streamable HTTP at /mcp (default 127.0.0.1:8787); user inbox at /inbox:
cargo run -p codespace-server --bin codespace-mcp -- --http

Tests: cargo test --workspace and cargo test --manifest-path crates/patch/Cargo.toml. ChatGPT Custom Connector steps and what is not verified: docs/chatgpt-connector.md. Operator install: docs/operations.md.

License

Apache License 2.0. See LICENSE and NOTICE.

About

Personal execution-tools MCP using a pinned Codex apply-patch engine.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages