Configure VS Code to connect to the CloudBees Unify MCP Server so you can work with CloudBees Unify conversationally from your editor. 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 VS Code 1.99 or later (MCP support is built in).
-
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 workspace configuration file or your global user settings.
Option 1: Workspace configuration file
Use a .vscode/mcp.json file to scope the CloudBees Unify MCP Server to the current project.
-
In the root of your project, create or open
.vscode/mcp.json. -
Add the CloudBees Unify MCP Server configuration:
{ "servers": { "unify-mcp-server": { "type": "http", "url": "https://mcp.cloudbees.io/v1/mcp", "oauth": { "clientId": "public-mcp-client" } } } }If you already have other servers configured, add the
unify-mcp-serverentry to the existingserversobject. -
Save the file.
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.
|
Option 2: Global user settings
Use VS Code’s settings.json to make the CloudBees Unify MCP Server available across all workspaces.
-
Open the Command Palette:
Ctrl+Shift+P(orCmd+Shift+Pon macOS). -
Select Preferences: Open User Settings (JSON).
-
Add the CloudBees Unify MCP Server configuration to
settings.json:{ "mcp": { "servers": { "unify-mcp-server": { "type": "http", "url": "https://mcp.cloudbees.io/v1/mcp", "oauth": { "clientId": "public-mcp-client" } } } } }If you already have other servers configured, add the
unify-mcp-serverentry to the existingmcp.serversobject. -
Save the file.
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.
|
Filter toolsets (optional)
By default, the CloudBees Unify MCP Server exposes a set of read-only discovery tools.
To control which tools VS Code can access, add a headers field to the unify-mcp-server configuration block before starting the server.
Scope the connection to specific toolsets:
"headers": { "X-MCP-Toolsets": "workflows,application-security" }
Restrict all exposed tools to read-only:
"headers": { "X-MCP-Toolsets": "workflows,application-security", "X-MCP-Readonly": "true" }
Opt in to all available tools:
"headers": { "X-MCP-Toolsets": "all" }
Valid toolset names: default, all, organization-administration, access-management, applications-components, workflows, feature-management, application-security, reports-analytics, policy-engine.
For more information, refer to Secure your MCP connection.
Authenticate with CloudBees Unify
After adding the server, authenticate with CloudBees Unify:
-
In VS Code, open the MCP panel.
-
Find unify-mcp-server in the list.
-
Select Start next to unify-mcp-server.
-
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 VS Code.
-
-
VS 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. Only organizations you have access to are listed. |
Verify the connection
Test the connection by asking Copilot Chat (VS Code’s AI chat) a question that requires CloudBees Unify:
Copilot Chat should call the CloudBees Unify MCP Server and return your component list.
Manage the connection
After connecting to the CloudBees Unify MCP Server, you can stop, reauthenticate, or remove the server configuration as needed.
Stop the CloudBees Unify MCP Server
If you need to stop the server:
-
In VS Code, open the MCP panel.
-
Find unify-mcp-server.
-
Select Stop.
Your configuration remains in place; you can restart the server at any time.
Reauthenticate the CloudBees Unify MCP Server
If your authentication expires or you need to switch organizations:
-
In VS Code, open the MCP panel.
-
Find unify-mcp-server.
-
Select Stop, then choose Start.
-
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:
-
If you used the workspace configuration, open
.vscode/mcp.jsonand delete theunify-mcp-serverentry from theserversobject. -
If you used global user settings, open your
settings.jsonfile (refer to Option 2: Global user settings) and delete theunify-mcp-serverentry from themcp.serversobject.
Save the file after removing the entry.
Troubleshooting
If you encounter connection or authentication issues, refer to Troubleshoot common issues with the CloudBees Unify MCP Server.