You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Register the Clerk remote MCP server (https://mcp.clerk.com/mcp) in Claude Code, Cursor, VS Code, Windsurf, and Gemini, each with a JSON/agent mode and human-mode 'next steps' guidance (reload + sign-in).
clerk doctor gains an MCP reachability check that probes the configured server via the MCP initialize handshake when an entry is installed (warns, never fails).
URL resolution: --url > CLERK_MCP_URL > active env profile mcpUrl.
Add `clerk mcp install`, `list`, and `uninstall` to register the Clerk remote MCP server (`https://mcp.clerk.com/mcp`) in Claude Code, Cursor, VS Code, Windsurf, and Gemini. `clerk doctor` gains an MCP reachability check that probes the configured server via the MCP `initialize` handshake when an entry is installed. The URL comes from the active env profile's new `mcpUrl` field (or the `CLERK_MCP_URL` override) and can be overridden per-invocation with `--url` for local worker development.
| Shell completion | Configuration | Shell autocompletion is installed for the detected shell |
38
+
| MCP server | Integration | If a Clerk MCP entry is installed, the configured server answers the `initialize` handshake (skipped otherwise; warns, never fails) |
|`--client <id>`| Target a specific client. Repeat for multiple. Default in agent mode: all detected. Default in human mode: interactive multiselect over detected clients. |
37
+
|`--all`| Install into every detected client without prompting. |
38
+
|`--url <url>`| Override the MCP URL. Defaults to the active env profile's `mcpUrl`. |
39
+
|`--name <name>`| Entry key in the client config. Default: `clerk`. |
40
+
|`--force`| Overwrite an entry already pointing at a different URL. Without it, the conflict is reported and skipped. |
41
+
|`--json`| Emit a JSON summary on stdout instead of human-formatted output. |
42
+
43
+
**Conflict policy:** if an entry with the same `--name` already exists and
44
+
points at the same URL, the install is a silent no-op (`status: unchanged`).
45
+
If it points at a different URL, the install is skipped with a `reason`
46
+
unless `--force` is passed.
47
+
48
+
**After install:** writing the config does not connect the server on its own.
49
+
In human mode, `install` prints per-client next steps — the server only goes
50
+
live once you **reload the editor**. If the server requires authentication, the
51
+
editor opens a browser to **sign in** on first connect. Gemini additionally
52
+
needs `npx` on `PATH`, since its entry launches `mcp-remote` as a stdio bridge.
53
+
54
+
### `clerk mcp list`
55
+
56
+
Print every Clerk-flavored MCP entry across all supported clients (entries
57
+
named `clerk` or pointing at any `*.clerk.com` host).
58
+
59
+
### `clerk mcp uninstall`
60
+
61
+
Remove the named entry from each client. Throws `mcp_not_installed` (exit
62
+
code 1) when nothing was removed. Removing the entry doesn't drop a live editor
63
+
session, so (in human mode) it prints a next step to reload each affected editor.
64
+
65
+
> **Reachability:** there is no `mcp doctor` subcommand. Server health is part
66
+
> of `clerk doctor`, which probes the configured MCP URL via the `initialize`
67
+
> handshake when an entry is installed (warns, does not fail, when unreachable).
0 commit comments