Repository navigation
feat(codex): add codex plugin with oauth mcp sign-in - #27
Merged
Merged
Conversation
Jordan Harband (ljharb)
force-pushed
the
feat/codex-plugin
branch
2 times, most recently
from
November 5, 2026 21:24
39cb11c to
1a0f425
Compare
John-David Dalton (jdalton)
approved these changes
Nov 5, 2026
Ship an OpenAI Codex plugin so Codex users install every Socket skill in one step and sign in to the hosted Socket MCP server with their Socket account instead of pasting one organization's API token. - scripts/repo/generate-codex-plugin.mts writes skills/.codex-plugin/plugin.json, skills/.codex-plugin/mcp.json, and .agents/plugins/marketplace.json from .claude-plugin/plugin.json. The plugin root is skills/, so a Codex install copies only skill content. Output matches the repo formatter byte for byte. - mcp.json reuses the shared `socket` server name and URL, with the server's advertised scopes and no bearer setting, so Codex runs OAuth (dynamic client registration + PKCE). - Register the generator in publish.mts, classify .agents as a shipped root entry, and re-include only .agents/plugins/marketplace.json in the repo .gitignore cutout. - Skill-dir test helpers skip dot dirs; manifest consistency covers the Codex manifest, marketplace, and server URL. - socket-connect: Codex sign-in row and tool-name example. - README Codex section: marketplace add, install, MCP login, CLI auth, and migration from single-skill plugins.
Jordan Harband (ljharb)
force-pushed
the
feat/codex-plugin
branch
from
November 5, 2026 21:44
1a0f425 to
a20b8f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ship an OpenAI Codex plugin so Codex users install every Socket skill in one step and sign in to the hosted Socket MCP server with their Socket account instead of pasting one organization's API token.
Testing
mainafter feat(auth): connect to Socket through browser sign-in #25, feat(cursor): ship socket's hosted oauth mcp server in the cursor plugin #26 and build: drop the fleet pack and own the repo tooling #28 landed. Main dropped the vendored fleet tooling, so this PR now uses the repo-owned paths module and entry point.pnpm run checkpasses, and all repo tests pass locally: 57 files, 1264 tests.pnpm run generate:checkreports the generated files are up to date.Note
Medium Risk
Introduces Codex install/auth wiring (OAuth MCP config and ON_INSTALL policy) that affects how users connect to Socket, though changes are generated manifests and docs with strong generator guardrails and tests.
Overview
Adds first-class OpenAI Codex support via a repo-root marketplace (
.agents/plugins/marketplace.json) and a bundledsocket-skillsplugin whose root isskills/, so one install ships every skill plus hosted MCP access.A new
generate-codex-plugin.mtsgenerator (wired intopublish.mts) derivesskills/.codex-plugin/plugin.json,skills/.codex-plugin/mcp.json, and the marketplace from.claude-plugin/plugin.json, discovers top-level skill dirs, and formats JSON to match the repo checker. The MCP artifact points athttps://mcp.socket.dev/with scoped OAuth (no bearer env), and the generator is constrained to only write underskills/.codex-plugin/and.agents/plugins/so it never touches the fleet root.mcp.json.Repo hygiene updates track
.agentsas a shipped surface, gitignore everything under.agentsexcept the marketplace manifest, and extend structural tests (dot-dir skill exclusion, Codex version sync, marketplace ↔ manifest name checks). README Codex docs now cover marketplace add, plugin install,codex mcp login socket, CLI token auth for non-interactive runs, and removing legacy per-skill Codex plugins to avoid duplicate skills.Reviewed by Cursor Bugbot for commit a9c8471. Configure here.