Repository navigation
Add OpenAI Codex plugin support - #18
Conversation
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]>
|
| { | ||
| "name": "vals", | ||
| "displayName": "Val Town", | ||
| "version": "0.1.2", |
There was a problem hiding this comment.
🔴 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.
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.
What
Makes
val-town/pluginsa 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.jsonas 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: objectsource,policy,category.plugin/.codex-plugin/plugin.json— Codex plugin manifest mirroring.claude-plugin/plugin.json, with explicitskills/mcpServerspointers and aninterfaceblock for plugin-directory metadata. (Also the required manifest for the community awesome-codex-plugins list.)codex plugin marketplace add val-town/pluginsinstall steps.repositoryURL in.claude-plugin/plugin.json(val-town/claude→val-town/plugins), matching the earlier package.json fix.Install (Codex)
Notes
https://api.val.town/v3/mcp), so we are not affected by the${CLAUDE_PLUGIN_ROOT}stdio breakage in openai/codex#19372..mcp.jsonuses the Claude-style camelCasemcpServerswrapper. Codex's docs show a direct map ormcp_servers(snake_case). It's very likely accepted via legacy compat, but I couldn't verify locally (thecodexbinary in this env is broken — missing darwin-arm64 vendor binary). Please confirm the MCP server connects aftercodex /pluginsinstall; if not, a tiny follow-up (snake_case key or direct map) fixes it.@valtown/skills,files: ["dist"]) is unchanged.npm testpasses.🤖 Generated with Claude Code