Setup
Set your API key
Add your OpenCX API key to your shell profile so it persists across sessions:
- zsh (macOS)
- bash (Linux)
Scope
Claude Code supports two scopes for MCP servers:| Scope | Flag | Stored in | Shared with team |
|---|---|---|---|
| User (default) | --scope user | ~/.claude/ | No |
| Project | --scope project | .mcp.json in repo root | Yes (commit the file) |
Project-scoped servers read environment variables from the shell of whoever runs Claude Code. Each team member sets
OPENCX_API_KEY in their own shell profile.Managing Servers
CI and Automation
Claude Code can use MCP servers in non-interactive contexts. Pass the API key through CI secrets:--print flag outputs the response to stdout without an interactive session.
Related Documentation
Claude Desktop
JSON config and app restart flow
Get Started
API key setup and all client configs
Prompt Library
Ready-to-use prompts by domain
Troubleshooting
Common issues and fixes