npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dhrupo/codex-claude-bridge

v0.1.1

Published

Expose Claude Code as MCP tools for Codex.

Readme

npm version CI npm publish

codex-claude-bridge

Use Claude Code from inside Codex.

@dhrupo/codex-claude-bridge exposes Claude Code as MCP tools that Codex can call, and also ships a codex-claude helper command for common workflows.

What You Get

  • codex-claude-mcp: an MCP server that wraps the local claude CLI
  • codex-claude: a helper command that asks Codex to call Claude tools
  • Three MCP tools:
    • claude_ask
    • claude_review
    • claude_delegate
  • Extra helper workflows:
    • codex-claude status
    • codex-claude doctor
    • codex-claude compare

Requirements

  • Node.js >=18.18.0
  • codex installed and authenticated
  • claude installed and authenticated

Quick checks:

codex --version
claude --version
claude auth status

Install

Install the package:

npm install -g @dhrupo/codex-claude-bridge

Register the MCP bridge in Codex:

codex-claude install

That creates a global Codex MCP server named claude-bridge.

Manual alternatives:

codex mcp add claude-bridge -- codex-claude-mcp
codex mcp add claude-bridge -- npx -y @dhrupo/codex-claude-bridge

Verify:

codex mcp list
codex-claude status
codex-claude doctor

Usage

Helper Commands

Ask Claude through Codex:

codex-claude ask "Summarize the current repository."

Run a review:

codex-claude review
codex-claude review "Review the current workspace for bugs and missing tests."

Run a review and compare Claude vs Codex side by side:

codex-claude review --compare "Review the current workspace for bugs and missing tests."

Delegate an implementation task:

codex-claude delegate "Fix the failing tests with the smallest safe patch."

Compare Claude and Codex on the same prompt in one readable report:

codex-claude compare "Review this architecture and suggest the safest refactor."

Use separate model choices when comparing:

codex-claude compare \
  --codex-model gpt-5.4 \
  --claude-model sonnet \
  "Summarize the tradeoffs in this module."

Write reports to disk:

codex-claude compare --out compare.md "Review this change and compare results."
codex-claude status --json --out status.json

If you are outside a git repository, add:

--skip-git-repo-check

Example:

codex-claude ask --cwd /path/to/project --skip-git-repo-check "Reply with exactly OK."

You can also pass through Claude-focused options when using ask, review, or delegate:

codex-claude review \
  --model sonnet \
  --permission-mode dontAsk \
  --append-system-prompt "Focus on reliability and regression risk."

Direct Codex MCP Usage

Once installed, Codex can call these tools directly:

  • claude_ask: read-only prompting
  • claude_review: stricter review pass
  • claude_delegate: writable implementation/delegation flow

Example:

codex exec --cd /path/to/project --skip-git-repo-check \
  'Use the MCP tool `claude_ask` exactly once. Return only the tool result. Tool arguments: {"prompt":"Summarize this repo.","cwd":"/path/to/project","outputFormat":"text"}'

How It Works

  • Codex discovers the claude-bridge MCP server
  • Codex calls one of the bridge tools
  • The bridge runs the local claude --print command
  • Claude output is returned through MCP back to Codex

This is an MCP bridge, not a native Codex slash-command plugin.

Status And Comparison

codex-claude status checks:

  • whether codex is installed
  • whether claude is installed
  • whether Claude auth is available
  • whether the claude-bridge MCP server is registered in Codex

codex-claude doctor adds a simple pass/fail diagnostic summary and suggested fixes.

codex-claude compare runs both tools on the same prompt:

  • Claude runs directly through claude --print
  • Codex runs directly through codex exec
  • the command returns a single report with:
    • Claude output
    • Codex output
    • a line-by-line diff block for quick human review

--json returns machine-readable report data for status, doctor, and compare.

--out <file> writes the rendered or JSON report to disk and also prints it to stdout.

Development

Install dependencies:

npm install

Run tests:

npm test

Start the MCP server directly:

npm start

Publishing

This package is published on npm as:

@dhrupo/codex-claude-bridge

The repo includes a GitHub Actions publish workflow. To publish a new version:

  1. Bump package.json
  2. Commit and push to main
  3. Create and push a matching tag like v0.1.1

Troubleshooting

If the bridge works but Claude returns an auth or access error, test Claude directly first:

claude -p --output-format text "Reply with exactly OK."

If that fails, fix Claude access before testing through Codex.

If Codex is outside a git repo, use --skip-git-repo-check.

If needed, remove and re-add the MCP server:

codex mcp remove claude-bridge
codex mcp add claude-bridge -- codex-claude-mcp