Skip to content
Back to Knowledge Base

How to Connect Claude Code to CoCoCo

You need:

  • Node.js 20 or higher installed
  • An active API Token from your CoCoCo account
Terminal window
npm install -g @anthropic-ai/claude-code

Verify installation:

Terminal window
which claude
claude --version

If which claude returns nothing, your npm global bin directory may not be in your PATH. If you use nvm, add this to ~/.zshrc:

Terminal window
export PATH="$(npm config get prefix)/bin:$PATH"

Run the following command, replacing YOUR_TOKEN with your actual API Token:

Terminal window
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.

Terminal window
claude mcp list
Terminal window
claude

Then type /mcp to see the status of all configured MCP servers. CoCoCo should appear as connected.

Remove the server:

Terminal window
claude mcp remove cococo

Update the token — remove and re-add with the new token:

Terminal window
claude mcp remove cococo
claude mcp add --transport http cococo https://<your-domain>/mcp --header "Authorization: Bearer YOUR_NEW_TOKEN"

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.