Add Codex support: skill-only plugin plus config.toml instructions
Codex loads a root .mcp.json automatically but drops OAuth settings from plugin MCP entries, so Claude's MCP config moves to .claude-mcp.json (referenced from the Claude manifest) and the Codex plugin carries only the skill. The README documents the config.toml entries and the two server-side blockers for Codex sign-in. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mkpcphc9ZEjNpw867crpNF
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
c5dc69c86e
commit
70662d27ec
@@ -33,12 +33,49 @@ Each server signs in separately, because Claude Code keeps one token per server.
|
||||
|
||||
Both servers use OAuth callback port **8127**: finish one sign-in before starting the other.
|
||||
|
||||
## About the `clientId` in `.mcp.json`
|
||||
## About the `clientId` in `.claude-mcp.json`
|
||||
|
||||
`soloma-kb-mcp` is the public client ID of the `kb-mcp-agent` provider in Authentik. It is a PKCE public client with no secret, and it is needed because Authentik does not support dynamic client registration. Access is enforced by Authentik group membership, not by that value.
|
||||
|
||||
If sign-in suddenly fails at the authorize step, the ID may have changed: update the plugin (`/plugin marketplace update soloma-internal`) and reinstall.
|
||||
|
||||
## Codex
|
||||
|
||||
The plugin also installs in Codex, but **Codex does not read OAuth settings from a plugin**, so the plugin only carries the skill. Add the two MCP servers to `~/.codex/config.toml` yourself:
|
||||
|
||||
```toml
|
||||
[mcp_servers.drone-kb]
|
||||
url = "https://kb-mcp.soloma.ai/mcp"
|
||||
|
||||
[mcp_servers.drone-kb.oauth]
|
||||
client_id = "soloma-kb-mcp"
|
||||
callback_port = 8127
|
||||
|
||||
[mcp_servers.drone-kb-scribe]
|
||||
url = "https://kb-mcp.soloma.ai/inbox/mcp"
|
||||
|
||||
[mcp_servers.drone-kb-scribe.oauth]
|
||||
client_id = "soloma-kb-mcp"
|
||||
callback_port = 8127
|
||||
```
|
||||
|
||||
Then install the skill and sign in:
|
||||
|
||||
```
|
||||
codex plugin marketplace add https://git.soloma.ai/anguschiu/soloma-kb-plugin.git
|
||||
codex plugin add soloma-kb-plugin@soloma-internal
|
||||
codex mcp login drone-kb-scribe
|
||||
codex mcp login drone-kb
|
||||
```
|
||||
|
||||
Status: see "Known Codex limits" below before relying on this.
|
||||
|
||||
### Known Codex limits
|
||||
|
||||
- **Sign-in needs one Authentik setting.** Codex's OAuth redirect is `http://127.0.0.1:8127/callback/<random>`, which the `kb-mcp-agent` provider rejects today. An Authentik admin must add the redirect URI (regex) `^http://127\.0\.0\.1:8127/callback/.*$`.
|
||||
- **`drone-kb` (read) cannot sign in from Codex yet.** Its endpoint publishes no OAuth discovery metadata, so Codex falls back to `https://kb-mcp.soloma.ai/authorize`, which does not exist. Claude Code works around this with `authServerMetadataUrl`; Codex has no equivalent for these servers. Fixing it needs a server-side change.
|
||||
- `drone-kb-scribe` (write) discovers its authorization server correctly.
|
||||
|
||||
## Updating
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user