Skip to content

Add OpenAI Codex plugin support - #18

Merged
stevekrouse merged 2 commits into
mainfrom
feat/codex-plugin-support
Jun 1, 2026
Merged

stevekrouse merged 2 commits into
mainfrom
feat/codex-plugin-support

Conversation

@stevekrouse

@stevekrouse stevekrouse commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

What

Makes val-town/plugins a first-class OpenAI Codex plugin marketplace, alongside the existing Claude Code support.

Codex's plugin system mirrors Claude Code's and already reads our .claude-plugin/marketplace.json as a legacy-compatibility fallback (it even auto-mirrors Claude marketplaces). This PR makes Codex support intentional and directory-ready rather than incidental.

Changes

  • .agents/plugins/marketplace.json — native Codex marketplace file (Codex's preferred path), using Codex's richer schema: object source, policy, category.
  • plugin/.codex-plugin/plugin.json — Codex plugin manifest mirroring .claude-plugin/plugin.json, with explicit skills / mcpServers pointers and an interface block for plugin-directory metadata. (Also the required manifest for the community awesome-codex-plugins list.)
  • README — add codex plugin marketplace add val-town/plugins install steps.
  • Fix stale repository URL in .claude-plugin/plugin.json (val-town/claude → val-town/plugins), matching the earlier package.json fix.

Install (Codex)

codex plugin marketplace add val-town/plugins
codex /plugins

Notes

  • Our MCP server is hosted HTTP (https://api.val.town/v3/mcp), so we are not affected by the ${CLAUDE_PLUGIN_ROOT} stdio breakage in openai/codex#19372.
  • OpenAI's curated Codex Plugin Directory isn't open for self-serve submissions yet ("coming soon"); this PR makes us ready for it and unblocks community-registry listing.
  • ⚠️ Needs one live check: .mcp.json uses the Claude-style camelCase mcpServers wrapper. Codex's docs show a direct map or mcp_servers (snake_case). It's very likely accepted via legacy compat, but I couldn't verify locally (the codex binary in this env is broken — missing darwin-arm64 vendor binary). Please confirm the MCP server connects after codex /plugins install; if not, a tiny follow-up (snake_case key or direct map) fixes it.
  • No changeset: the published npm package (@valtown/skills, files: ["dist"]) is unchanged. npm test passes.

🤖 Generated with Claude Code


Open in Devin Review

Codex's plugin system mirrors Claude Code's. This makes the Val Town
marketplace first-class in Codex (rather than relying on Codex's
legacy .claude-plugin fallback) and ready for the Codex plugin directory:

- .agents/plugins/marketplace.json — native Codex marketplace (source/policy/category)
- plugin/.codex-plugin/plugin.json — Codex manifest with skills/mcpServers pointers
  and an interface block for directory metadata
- README: add `codex plugin marketplace add` install steps
- Fix stale repository URL in .claude-plugin/plugin.json (val-town/claude -> val-town/plugins)

The MCP server is hosted HTTP (https://api.val.town/v3/mcp), so it is
unaffected by the ${CLAUDE_PLUGIN_ROOT} stdio breakage in openai/codex#19372.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@changeset-bot

changeset-bot Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ee15b40

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

{
"name": "vals",
"displayName": "Val Town",
"version": "0.1.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Version sync script does not update new codex plugin manifest

The scripts/sync-plugin-version.mjs script (which runs during npm run version) only syncs the version from package.json into plugin/.claude-plugin/plugin.json (scripts/sync-plugin-version.mjs:14). The newly added plugin/.codex-plugin/plugin.json also has a "version": "0.1.2" field, but the sync script is unaware of it. After the next changeset version bump, the codex plugin manifest will retain the stale version while package.json and the Claude plugin manifest advance, causing the two plugin manifests to drift out of sync.

Prompt for agents
The sync-plugin-version.mjs script at scripts/sync-plugin-version.mjs only updates plugin/.claude-plugin/plugin.json when changesets bumps the package version. The new plugin/.codex-plugin/plugin.json file also contains a version field that must stay in sync. Update the script to read and write both plugin manifest files. The simplest approach is to define an array of manifest paths (PLUGIN_FILE and a new CODEX_PLUGIN_FILE pointing to plugin/.codex-plugin/plugin.json) and loop over them, applying the same version-sync logic to each.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Adds plugin/assets/icon.svg (official vt mark) and interface.composerIcon so
the plugin shows an icon in the Codex plugin directory and is self-sufficient
for community-marketplace mirroring.
@stevekrouse
stevekrouse merged commit b0e30bc into main Jun 1, 2026
1 check passed
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