From cardinal
Disconnect this Claude Code install from Cardinal — revoke the MCP key, strip the plugin's env block, delete local state.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cardinal:disconnectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reverses what `/cardinal:connect` did:
Reverses what /cardinal:connect did:
/api/maestro-keys/<mcp_key_id>/revoke. The
plugin reads the plaintext from ~/.claude/settings.json env
(CARDINAL_MCP_API_KEY) and authenticates as the key itself (R11 §1
"self" path).~/.claude/settings.json —
both OTel side and the two CARDINAL_MCP_* vars. Unrelated env keys
stay (with a backup before mutating).~/.claude/cardinal.json.The plugin does not touch ~/.claude.json here — v0.3 doesn't
write to it on connect either, so there's nothing to undo. (Users
upgrading from v0.2 should re-run /cardinal:connect once; the
connect-time legacy cleanup prunes the v0.2 stanza.)
The ingest key is not revoked server-side — the maestro endpoint hasn't shipped yet. The script prints a pointer to the admin UI.
Invoke via the Bash tool:
cardinal-disconnect
--force — proceed even if ~/.claude/cardinal.json is missing.--keep-telemetry — only remove the MCP side. Keeps the OTel env
keys in place. Useful for going from telemetry-and-mcp back to
telemetry-only without re-running connect.Tell the user:
https://<host>/settings/api-keys for a clean disconnect.CARDINAL_MCP_* env vars the plugin's .mcp.json resolves to
an empty URL and the cardinal server won't connect — effectively
off on the next launch.npx claudepluginhub cardinalhq/cardinal-claude-plugin --plugin cardinalCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.