Configure Cursor to connect to the CloudBees Unify MCP Server so you can work with CloudBees Unify conversationally from your IDE. For an overview of the CloudBees Unify MCP Server, refer to Understanding the CloudBees Unify MCP Server.
Prerequisites
Complete the following prerequisites before you begin:
-
Install the Cursor CLI 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 by editing the Cursor MCP configuration file directly.
-
Locate or create the MCP configuration file:
-
Project-level:
.cursor/mcp.jsonin your project root -
User-level (macOS/Linux):
~/.cursor/mcp.json -
User-level (Windows):
%USERPROFILE%\.cursor\mcp.json
-
-
Open the file in a text editor.
-
Add the CloudBees Unify MCP Server configuration to the
mcpServerssection:{ "mcpServers": { "unify-mcp-server": { "type": "http", "url": "https://mcp.cloudbees.io/v1/mcp", "auth": { "CLIENT_ID": "public-mcp-client" } } } }If you already have other MCP servers configured, add the
unify-mcp-serverentry to the existingmcpServersobject.The public-mcp-clientis the shared OAuth client ID for the CloudBees Unify MCP Server. Use this exact value and do not register or generate a new client ID. -
Save the file.
Filter tools
The CloudBees Unify MCP Server supports per-request toolset filtering via HTTP headers.
You can add a headers field to your mcp.json file to control which tools Cursor can use.
-
To restrict Cursor to specific toolsets, add a
headersfield to theunify-mcp-serverentry:{ "mcpServers": { "unify-mcp-server": { "type": "http", "url": "https://mcp.cloudbees.io/v1/mcp", "auth": { "CLIENT_ID": "public-mcp-client" }, "headers": { "X-MCP-Toolsets": "workflows,application-security" } } } } -
To restrict to read-only tools, add
"X-MCP-Readonly": "true"to theheadersblock insideunify-mcp-server:"headers": { "X-MCP-Toolsets": "workflows,application-security", "X-MCP-Readonly": "true" } -
To opt in to all tools, set
X-MCP-Toolsetstoallinside theheadersblock:"headers": { "X-MCP-Toolsets": "all" }
Authenticate with CloudBees Unify
After adding the server configuration, authenticate for the first time with the CloudBees Unify MCP Server:
-
Start an interactive Cursor CLI session:
agent -
Inside the session, run:
/mcp list -
Locate
unify-mcp-serverin the list and select it to authenticate.A 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 Cursor.
Cursor confirms the connection and its tools become available to the agent.
| 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 Cursor a question that requires CloudBees Unify:
Cursor calls the CloudBees Unify MCP Server and returns your component list.
If you receive an error, refer to Troubleshoot common issues with the CloudBees Unify MCP Server.
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
To temporarily disconnect from the CloudBees Unify MCP Server:
-
Open your
mcp.jsonfile (refer to Add the CloudBees Unify MCP Server for the file paths). -
Comment out or remove the
unify-mcp-serverentry from themcpServersobject. -
Save the file.
You can reconnect by uncommenting or re-adding the configuration.
Reauthenticate the CloudBees Unify MCP Server
If your authentication expires or you need to switch organizations, perform an action that requires CloudBees Unify. Cursor prompts you to reauthenticate and opens a browser window to complete the OAuth flow.
Remove the CloudBees Unify MCP Server
To completely remove the CloudBees Unify MCP Server, do the following:
-
Open your
mcp.jsonfile (refer to Add the CloudBees Unify MCP Server for the file paths). -
Remove the
unify-mcp-serverentry from themcpServersobject. -
Save the file.
Troubleshooting
If you encounter connection or authentication issues, refer to Troubleshoot common issues with the CloudBees Unify MCP Server.