Back to Knowledge Base
How to Connect Claude Code to CoCoCo
Before you start
Section titled “Before you start”You need:
- Node.js 20 or higher installed
- An active API Token from your CoCoCo account
Step 1: Install Claude Code
Section titled “Step 1: Install Claude Code”npm install -g @anthropic-ai/claude-codeVerify installation:
which claudeclaude --versionIf which claude returns nothing, your npm global bin directory may not be in your PATH. If you use nvm, add this to ~/.zshrc:
export PATH="$(npm config get prefix)/bin:$PATH"Step 2: Add the CoCoCo MCP server
Section titled “Step 2: Add the CoCoCo MCP server”Run the following command, replacing YOUR_TOKEN with your actual API Token:
claude mcp add --transport http cococo https://<your-domain>/mcp --header "Authorization: Bearer YOUR_TOKEN"Write the full command on one line — line breaks cause the header to be parsed incorrectly.
Step 3: Verify the connection
Section titled “Step 3: Verify the connection”claude mcp listStep 4: Test the connection
Section titled “Step 4: Test the connection”claudeThen type /mcp to see the status of all configured MCP servers. CoCoCo should appear as connected.
Managing the MCP server
Section titled “Managing the MCP server”Remove the server:
claude mcp remove cococoUpdate the token — remove and re-add with the new token:
claude mcp remove cocococlaude mcp add --transport http cococo https://<your-domain>/mcp --header "Authorization: Bearer YOUR_NEW_TOKEN"Troubleshooting
Section titled “Troubleshooting”claude not found — Check your PATH. See Step 1.
Invalid header format — Make sure the full command is on a single line.
Authentication errors — Check that your API Token is correct and not revoked.