This guide shows you how to configure the --client launch flag so the server emits the right handoff guidance for each MCP host client.
- Claude Prompts MCP server installed (
npxor local build) - Access to your client MCP config file
- Server version with client presets (
claude-code,codex,gemini,opencode,cursor,unknown)
-
Pick the preset for your host client
Host client Use --clientClaude Code / Claude Desktop claude-codeCodex codexGemini CLI geminiOpenCode opencodeCursor cursorWindsurf (experimental mapping) cursorUnknown/unsupported client unknown -
Add the flag to your client MCP config
JSON-based clients (Claude Desktop / Cursor / Windsurf / Zed style):
{ "mcpServers": { "claude-prompts": { "command": "npx", "args": ["-y", "claude-prompts@latest", "--client=cursor"] } } }Codex (
~/.codex/config.toml):[mcp_servers.claude_prompts] command = "npx" args = ["-y", "claude-prompts@latest", "--client=codex"]
Manual server launch (any client):
npx -y claude-prompts@latest --client=gemini # or local build: node dist/index.js --transport=stdio --client=opencode -
Restart your client so it relaunches the MCP server
-
Verify profile resolution
Run:
system_control(action:"whoami")Confirm
clientProfilematches your chosen preset. -
Verify handoff behavior
Run a prompt/chain with
==>and confirm the returned guidance aligns with your client profile.
Issue: Handoff wording still looks generic (unknown)
Fix: Re-check the launch args in client config and fully restart the client process.
Issue: Config changes do not take effect
Fix: Some clients cache MCP sessions. Force a full app restart, not only a chat/session refresh.
Issue: Multiple wrappers launch the server with different args
Fix: Keep one authoritative MCP entry per client and remove duplicate launch points.
- Client Capabilities Reference — preset matrix and limitations
- Identity Scope — profile resolution order and transport-level identity behavior
- MCP Tools —
system_control(action:"whoami")reference