Configure Google Antigravity to connect to the CloudBees Unify MCP Server so you can work with CloudBees Unify conversationally from Antigravity. 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:
-
Enable MCP support in Google Antigravity.
-
Have an active CloudBees Unify account.
-
Have a web browser available for OAuth authentication.
Add the CloudBees Unify MCP Server
Google Antigravity does not have a command-line tool to add your CloudBees Unify MCP Server with OAuth parameters.
You need to manually add the CloudBees Unify MCP Server configuration to Antigravity’s mcp_config.json file.
-
Locate your Antigravity MCP configuration file:
-
macOS/Linux:
~/.gemini/config/mcp_config.json -
Windows:
%USERPROFILE%\.gemini\config\mcp_config.json
-
-
Open the file in a text editor.
-
Add the CloudBees Unify MCP Server configuration to the
mcpServerssection:{ "mcpServers": { "unify-mcp-server": { "serverUrl": "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.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.This configuration uses the default toolset. If no
X-MCP-Toolsetsheader is passed, the server applies its default set of tools. To explicitly control which toolset Antigravity can use, add aheadersfield:{ "mcpServers": { "unify-mcp-server": { "serverUrl": "https://mcp.cloudbees.io/v1/mcp", "oauth": { "clientId": "public-mcp-client" }, "headers": { "X-MCP-Toolsets": "workflows,application-security" } } } }To restrict to read-only tools, ensuring the AI agent can view but not modify CloudBees Unify resources, 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" } -
Save the file.
Authenticate with CloudBees Unify
After adding the server configuration, you need to authenticate the first time you use the CloudBees Unify MCP Server.
-
Start Google Antigravity.
-
Perform an action that requires CloudBees Unify, such as asking about your components.
Antigravity detects that authentication is required and opens a new browser window 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 Google Antigravity.
-
Antigravity confirms the connection and completes your request.
| 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. |
Verify the connection
Test the connection by asking Antigravity a question that requires CloudBees Unify:
Antigravity should call the CloudBees Unify MCP Server and return 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 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 Antigravity
mcp_config.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. Antigravity prompts you to re-authenticate and opens a browser window to complete the OAuth flow.
Remove the CloudBees Unify MCP Server
To completely remove the CloudBees Unify MCP Server, open your Antigravity mcp_config.json file (refer to Add the CloudBees Unify MCP Server for the file paths), remove the unify-mcp-server entry from the mcpServers object, and save the file.
Troubleshooting
If you encounter connection or authentication issues, refer to Troubleshoot common issues with the CloudBees Unify MCP Server.