Skip to main content

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.

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

ScopeFlagEffect
User (recommended)--scope userAvailable across all Claude Code projects on this machine
Project (shared)--scope projectSaved to .mcp.json in the project root. Shareable via git. Do not commit tokens in this file.
Local (default)--scope localAvailable 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.