Configure Claude Code to connect to the CloudBees Unify MCP Server so you can work with CloudBees Unify conversationally from your terminal. For an overview of the CloudBees Unify MCP Server, refer to Understanding the CloudBees Unify MCP Server.
Prerequisites
Complete the following before you begin:
-
Install Claude Code on your machine.
-
Have an active CloudBees Unify account.
-
Have a web browser available for OAuth authentication.
Add the CloudBees Unify MCP Server
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 using the default toolset unless you configure headers.
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.
|
Filter tools using toolset headers
To connect with specific toolsets, pass --header flags:
claude mcp add \ "unify-mcp-server" \ "https://mcp.cloudbees.io/v1/mcp" \ --transport http \ --client-id public-mcp-client \ --header "X-MCP-Toolsets: workflows,application-security"
To restrict to read-only tools:
claude mcp add \ "unify-mcp-server" \ "https://mcp.cloudbees.io/v1/mcp" \ --transport http \ --client-id public-mcp-client \ --header "X-MCP-Toolsets: workflows,application-security" \ --header "X-MCP-Readonly: true"
To opt in to all tools:
claude mcp add \ "unify-mcp-server" \ "https://mcp.cloudbees.io/v1/mcp" \ --transport http \ --client-id public-mcp-client \ --header "X-MCP-Toolsets: all"
Omit --header entirely to use the default toolset.
For the full list of toolsets, refer to CloudBees Unify MCP Server tool reference.
Toolset filtering using X-MCP-Toolsets and X-MCP-Readonly headers is supported for all MCP clients, including Antigravity, Cursor, Claude Code, and Gemini.
|
Option 2: Add via configuration file
-
Locate your Claude Code MCP configuration file:
-
macOS:
~/.claude.json -
Linux:
~/.claude.json -
Windows:
%USERPROFILE%\.claude.json
-
-
Open the file in a text editor.
-
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 MCP servers configured, add the
unify-mcp-serverentry to the existingmcpServersobject.
Filter tools using toolset headers
To request specific toolsets, add a headers field alongside the oauth block:
{ "mcpServers": { "unify-mcp-server": { "type": "http", "url": "https://mcp.cloudbees.io/v1/mcp", "oauth": { "clientId": "public-mcp-client" }, "headers": { "X-MCP-Toolsets": "workflows,application-security" } } } }
To restrict to read-only tools:
"headers": { "X-MCP-Toolsets": "workflows,application-security", "X-MCP-Readonly": "true" }
To opt in to all tools:
"headers": { "X-MCP-Toolsets": "all" }
Omit headers entirely to use the default toolset.
For the full list of toolsets, refer to CloudBees Unify MCP Server tool reference.
Toolset filtering using X-MCP-Toolsets and X-MCP-Readonly headers is supported for all MCP clients, including Antigravity, Cursor, Claude Code, and Gemini.
|
-
Save the file.
-
Restart Claude Code.
-
If prompted, enter
/mcpand select Connect to reauthenticate.
Authenticate with CloudBees Unify
After adding the server, authenticate with CloudBees Unify:
-
In Claude Code, enter
/mcpto open the MCP servers panel. -
Find "unify-mcp-server" in the list.
-
Select Connect or Authenticate.
-
A new browser window opens showing the CloudBees Unify sign-in page:
-
Sign in using Google, GitHub, or your SSO provider.
-
Select your Root Organization from the list.
-
The browser shows "Authentication successful".
-
Return to Claude Code.
-
-
Claude Code confirms the connection.
| If you’re already signed in to CloudBees Unify in your browser, the organizations you have access to are listed. Be sure your Root Organization is selected. Only organizations you have access to are listed. |
Verify the connection
For example, ask Claude Code:
Claude Code calls the CloudBees Unify MCP Server and returns your component list.
You can also verify the connection in the CloudBees Unify MCP Server panel:
-
Enter
/mcpin Claude Code. -
Confirm "unify-mcp-server" displays a connected status indicator.
-
Select View Tools to list 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:
-
In Claude Code, enter
/mcpto open the MCP servers panel. -
Find "unify-mcp-server".
-
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:
-
In Claude Code, enter
/mcpto open the MCP servers panel. -
Find "unify-mcp-server".
-
Select Reauthenticate.
-
Complete the OAuth flow in your browser.
-
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.