mirror of
https://github.com/openai/codex.git
synced 2026-03-05 13:35:28 +03:00
## Why We already plan to remove the shell-tool MCP path, and doing that cleanup first makes the follow-on `shell-escalation` work much simpler. This change removes the last remaining reason to keep `codex-rs/exec-server` around by moving the `codex-execve-wrapper` binary and shared shell test fixtures to the crates/tests that now own that functionality. ## What Changed ### Delete `codex-rs/exec-server` - Remove the `exec-server` crate, including the MCP server binary, MCP-specific modules, and its test support/test suite - Remove `exec-server` from the `codex-rs` workspace and update `Cargo.lock` ### Move `codex-execve-wrapper` into `codex-rs/shell-escalation` - Move the wrapper implementation into `shell-escalation` (`src/unix/execve_wrapper.rs`) - Add the `codex-execve-wrapper` binary entrypoint under `shell-escalation/src/bin/` - Update `shell-escalation` exports/module layout so the wrapper entrypoint is hosted there - Move the wrapper README content from `exec-server` to `shell-escalation/README.md` ### Move shared shell test fixtures to `app-server` - Move the DotSlash `bash`/`zsh` test fixtures from `exec-server/tests/suite/` to `app-server/tests/suite/` - Update `app-server` zsh-fork tests to reference the new fixture paths ### Keep `shell-tool-mcp` as a shell-assets package - Update `.github/workflows/shell-tool-mcp.yml` packaging so the npm artifact contains only patched Bash/Zsh payloads (no Rust binaries) - Update `shell-tool-mcp/package.json`, `shell-tool-mcp/src/index.ts`, and docs to reflect the shell-assets-only package shape - `shell-tool-mcp-ci.yml` does not need changes because it is already JS-only ## Verification - `cargo shear` - `cargo clippy -p codex-shell-escalation --tests` - `just clippy`
38 lines
1011 B
JSON
38 lines
1011 B
JSON
{
|
|
"name": "@openai/codex-shell-tool-mcp",
|
|
"version": "0.0.0-dev",
|
|
"description": "Patched Bash and Zsh binaries for Codex shell execution.",
|
|
"license": "Apache-2.0",
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"files": [
|
|
"vendor",
|
|
"README.md"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/openai/codex.git",
|
|
"directory": "shell-tool-mcp"
|
|
},
|
|
"scripts": {
|
|
"clean": "rm -rf bin",
|
|
"build": "tsup",
|
|
"build:watch": "tsup --watch",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"format": "prettier --check .",
|
|
"format:fix": "prettier --write ."
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^20.19.18",
|
|
"jest": "^29.7.0",
|
|
"prettier": "^3.6.2",
|
|
"ts-jest": "^29.3.4",
|
|
"tsup": "^8.5.0",
|
|
"typescript": "^5.9.2"
|
|
},
|
|
"packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc"
|
|
}
|