Claude Code Setup
Claude Code is Anthropic's terminal-based coding agent. It has a built-in
claude mcp command that makes adding remote servers straightforward.
Option A: One-liner (recommended)
The --scope user flag makes CloudSEK available across all your Claude Code
projects, not just the current one.
claude mcp add --transport http --scope user \
--header "Authorization: Bearer YOUR_BEARER_TOKEN" \
--header "X-CloudSEK-Org-Id: YOUR_ORG_ID" \
cloudsek https://api.cloudsek.com/mcp
Shell history
This command saves your Bearer token to ~/.bash_history or ~/.zsh_history.
To prevent this, either prefix the command with a space (most shells skip
space-prefixed commands from history) or use Option B below.
Option B: Environment variables (more secure)
Set your credentials as environment variables first, then reference them:
export CLOUDSEK_BEARER_TOKEN=your_bearer_token_here
export CLOUDSEK_ORG_ID=your_org_id_here
claude mcp add-json cloudsek '{
"type": "http",
"url": "https://api.cloudsek.com/mcp",
"headers": {
"Authorization": "Bearer $CLOUDSEK_BEARER_TOKEN",
"X-CloudSEK-Org-Id": "$CLOUDSEK_ORG_ID"
}
}'
Scope options
| Scope | Flag | Effect |
|---|---|---|
| User (recommended) | --scope user | Available across all Claude Code projects on this machine |
| Project (shared) | --scope project | Saved to .mcp.json in the project root. Shareable via git. Do not commit tokens in this file. |
| Local (default) | --scope local | Available only in the current project; not committed to git |
Verify
claude mcp list
You should see cloudsek listed with status connected. Inside a Claude Code
session, type /mcp to inspect active servers and tool counts.