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.

  1. Locate or create the MCP configuration file:

    • Project-level: .cursor/mcp.json in your project root

    • User-level (macOS/Linux): ~/.cursor/mcp.json

    • User-level (Windows): %USERPROFILE%\.cursor\mcp.json

  2. Open the file in a text editor.

  3. Add the CloudBees Unify MCP Server configuration to the mcpServers section:

    { "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-server entry to the existing mcpServers object.

    The public-mcp-client is 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.
  4. 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 headers field to the unify-mcp-server entry:

    { "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 the headers block inside unify-mcp-server:

    "headers": { "X-MCP-Toolsets": "workflows,application-security", "X-MCP-Readonly": "true" }
  • To opt in to all tools, set X-MCP-Toolsets to all inside the headers block:

    "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:

  1. Start an interactive Cursor CLI session:

    agent
  2. Inside the session, run:

    /mcp list
  3. Locate unify-mcp-server in the list and select it to authenticate.

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

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

  5. Select your Root Organization from the list.

  6. The browser shows "Authentication successful."

  7. 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:

List my CloudBees Unify components.

Cursor calls the CloudBees Unify MCP Server and returns your component list.

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:

  1. Open your mcp.json file (refer to Add the CloudBees Unify MCP Server for the file paths).

  2. Comment out or remove the unify-mcp-server entry from the mcpServers object.

  3. 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:

  1. Open your mcp.json file (refer to Add the CloudBees Unify MCP Server for the file paths).

  2. Remove the unify-mcp-server entry from the mcpServers object.

  3. Save the file.

Troubleshooting

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