Skip to content

Ship handoff-mcp as a Codex plugin - #7

Merged
sihekuang merged 1 commit into
mainfrom
codex-plugin
May 30, 2026
Merged

sihekuang merged 1 commit into
mainfrom
codex-plugin

Conversation

@sihekuang

Copy link
Copy Markdown
Owner

Summary

  • Adds a Codex plugin manifest (plugins/handoff-mcp/.codex-plugin/plugin.json) and Codex marketplace catalog (.agents/plugins/marketplace.json) so users can install with:
    codex plugin marketplace add sihekuang/handoff-mcp
    codex plugin add handoff-mcp@sihekuang
  • Restructures into the canonical multi-ecosystem layout: plugin contents (.claude-plugin/, skills/, .mcp.json) now live in plugins/handoff-mcp/. Both the Claude Code and Codex marketplace files point at that subdirectory.
  • Required because Codex's marketplace rejects source.path: "./" at the repo root (Marketplace local plugin path "./" cannot reference the repository root openai/codex#17066) — same pattern used by the official openai/plugins reference repo (~120 plugins).

Why not the CLI wrapper from #6

That PR added a handoff codex install subcommand to the Homebrew CLI that wrapped codex mcp add --url. It pre-dates the discovery that Codex CLI v0.117.0 (March 2026) introduced a first-class plugin system that mirrors Claude Code's exactly. This PR replaces that approach with the native plugin install flow.

Test plan

Verified live against codex-cli 0.135.0:

  • codex plugin marketplace add sihekuang/handoff-mcp — registers the marketplace
  • codex plugin list shows handoff-mcp@sihekuang not installed
  • codex plugin add handoff-mcp@sihekuang — installs to ~/.codex/plugins/cache/sihekuang/handoff-mcp/0.3.0/
  • codex plugin list now shows installed, enabled
  • codex mcp list auto-shows handoff http://localhost:3007/mcp (from the plugin's .mcp.json)
  • ~/.codex/config.toml contains [plugins."handoff-mcp@sihekuang"] enabled = true
  • claude plugin validate plugins/handoff-mcp/ — passes
  • Start the server, run a Codex session, ask "what handoff tools do you have?" — agent lists all six and references the skill conventions

🤖 Generated with Claude Code

Restructure the existing Claude Code plugin into the canonical
multi-ecosystem layout (plugins/<name>/) and add Codex's manifest +
marketplace files alongside the existing Claude Code ones.

- New: .agents/plugins/marketplace.json (Codex marketplace catalog)
- New: plugins/handoff-mcp/.codex-plugin/plugin.json (Codex manifest)
- Moved: .claude-plugin/plugin.json, skills/, .mcp.json into plugins/handoff-mcp/
- Updated: .claude-plugin/marketplace.json source pointer
- Updated: README with "Install as Codex plugin" section

Verified live against codex-cli 0.135.0:
  codex plugin marketplace add .
  codex plugin add handoff-mcp@sihekuang
  codex mcp list   # handoff URL auto-registered from .mcp.json
  claude plugin validate plugins/handoff-mcp/   # also passes

Codex's marketplace cannot resolve source.path="./" at the repo root
(openai/codex#17066), so the canonical openai/plugins-style layout
(plugins/<name>/ subdirectory) is required. Same layout works for
Claude Code via the marketplace's source pointer.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@sihekuang
sihekuang merged commit 89b657d into main May 30, 2026
1 check passed
@sihekuang
sihekuang deleted the codex-plugin branch May 30, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant