Skip to main content

codex-mcp-eraser

A Python command-line tool that removes user-configured MCP server tables and hooks from Codex CLI configuration. It does not modify plugin settings or managed policies. Requires Python 3.11 or later.

Install

python -m pip install codex-mcp-eraser

Use

The default is a dry run. Review the reported files before applying changes:

codex-mcp-eraser
codex-mcp-eraser --apply

Applying changes prompts for confirmation. Add --yes to skip that prompt:

codex-mcp-eraser --apply --yes

By default, the tool checks CODEX_HOME or ~/.codex. Use --codex-home PATH to select another Codex configuration directory. Add --project PATH to also check that project's .codex/ directory:

codex-mcp-eraser --codex-home ~/.codex --project /path/to/project

The tool removes MCP server tables from config.toml and removes hooks.json in the checked directories. Before applying changes, it creates a backup under the user Codex home directory with restricted permissions. It does not modify plugin settings or managed policies.

Run from a checkout

After installing the package, you can also run it as a module:

python -m codex_mcp_eraser

The source checkout includes codex_mcp_eraser_launcher.py and the legacy eraser.py launcher.

Development

Run the unit tests with:

python -m unittest discover -s tests -v

Build and check the package with:

./build-package.sh

Metadata

Release files for codex-mcp-eraser 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codex-mcp-eraser 0.0.2
File Size Uploaded Provenance Actions
codex_mcp_eraser-0.0.2.tar.gz 6.0 kB Without provenance Details for codex_mcp_eraser-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codex-mcp-eraser 0.0.2
File Interpreter ABI Platform Actions
codex_mcp_eraser-0.0.2-py3-none-any.whl Python 3 none any Details for codex_mcp_eraser-0.0.2-py3-none-any.whl

Total release size: 11.1 kB

Release files / codex_mcp_eraser-0.0.2.tar.gz

Download URL codex_mcp_eraser-0.0.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ac602aee2edb1fc64dc41b5185cd1f27522b98f560b49e242c1f67c565570490
BLAKE2b-256 checksum
How to use checksums
f1de72aadfc390bb5f5c40276c03fefbcd829e6152e0e2850262b667e8bcb617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / codex_mcp_eraser-0.0.2-py3-none-any.whl

Download URL codex_mcp_eraser-0.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e83819155ab0e1ea8d19428a742de196851e890eca8b31fd6497081417e04fe
BLAKE2b-256 checksum
How to use checksums
42d6f02a0185268713a58c9cab6d770b6dcd84c1fedfcbb38de6b4503e1ab0fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for codex-mcp-eraser 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page