Connect Claude Code

3 minute read

This guide shows you how to configure Claude Code to connect to the CloudBees Unify MCP Server.

Before you begin

Complete the following prerequisites before you begin:

  • Claude Code installed on your machine.

  • An active CloudBees Unify account.

  • A web browser for OAuth authentication.

Add the CloudBees Unify MCP Server

You can add the CloudBees Unify MCP Server using either a command or by editing the configuration file directly.

Option 1: Add via command (recommended)

In your terminal, run:

claude mcp add \ "unify-mcp-server" \ "https://mcp.cloudbees.io/v1/mcp" \ --transport http \ --client-id public-mcp-client

Claude Code adds the CloudBees Unify MCP Server to your MCP configuration.

public-mcp-client is the shared OAuth client ID for the CloudBees Unify MCP Server. Use this exact value. You do not need to register your own.
If you get an error about --client-id being an unknown option, run claude update to get the latest version.

Option 2: Add via configuration file

  1. Locate your Claude Code MCP configuration file:

    • macOS: ~/.claude.json

    • Linux: ~/.claude.json

    • Windows: %USERPROFILE%\.claude.json

  2. Open the file in a text editor.

  3. Add the CloudBees Unify MCP Server entry:

    { "mcpServers": { "unify-mcp-server": { "type": "http", "url": "https://mcp.cloudbees.io/v1/mcp", "oauth": { "clientId": "public-mcp-client" } } } }

    If you already have other CloudBees Unify MCP Servers configured, add the unify-mcp-server entry to the existing mcpServers object.

  4. Save the file.

  5. Restart Claude Code or reload the MCP configuration.

Authenticate with CloudBees Unify

After adding the server, authenticate with CloudBees Unify:

  1. In Claude Code, enter /mcp or check the MCP servers panel to view your MCP servers list.

  2. Find "unify-mcp-server" in the list.

  3. Select Connect or Authenticate.

  4. A new browser window opens showing the CloudBees Unify sign-in page:

    1. Sign in using Google, GitHub, or your SSO provider.

    2. Select your Root Organization from the list.

    3. The browser shows "Authentication successful."

    4. Return to Claude Code.

  5. Claude Code confirms the connection.

If you’re already signed in to CloudBees Unify in your browser, you may only need to select your Root Organization. You only see organizations you have access to.

Verify the connection

Test the connection by asking Claude Code a question that requires CloudBees Unify:

List my CloudBees Unify components.

Claude Code should call the CloudBees Unify MCP Server and return your component list.

You can also verify the connection in the CloudBees Unify MCP Server panel:

  1. Enter /mcp in Claude Code.

  2. Look for "unify-mcp-server" with a connected status indicator.

  3. Select View Tools to view the available CloudBees Unify tools.

Manage the connection

After connecting to the CloudBees Unify MCP Server, you can disconnect, reauthenticate, or remove the server configuration as needed.

Disconnect from the CloudBees Unify MCP Server

If you need to disconnect:

  1. In Claude Code, enter /mcp to open the MCP servers panel.

  2. Find "unify-mcp-server".

  3. Select Disconnect.

Your configuration remains in place; you can reconnect at any time.

Reauthenticate the CloudBees Unify MCP Server

If your authentication expires or you need to switch organizations:

  1. In Claude Code, enter /mcp to open the MCP servers panel.

  2. Find "unify-mcp-server".

  3. Select Reauthenticate.

  4. Complete the OAuth flow in your browser.

  5. Select the desired organization.

Remove the CloudBees Unify MCP Server

To completely remove the CloudBees Unify MCP Server, run:

claude mcp remove unify-mcp-server

Alternatively, open your MCP configuration file (refer to Option 2: Add via configuration file above), remove the unify-mcp-server entry from the mcpServers object, save the file, and restart Claude Code.

Troubleshooting

If you encounter connection or authentication issues, refer to Troubleshoot common issues with the CloudBees Unify MCP Server.