Connect Claude Code to the CloudBees CI MCP Router

2 minute read

Claude Code is an AI-powered command-line interface (CLI) tool that integrates with the CloudBees CI MCP Router through the Jenkins MCP Server plugin, connecting your development environment to CloudBees CI on modern cloud platforms. This enables context-aware code suggestions and automation using real CloudBees CI data, so you can interact with Jenkins resources directly from your development environment.

Prerequisites

Before you begin, ensure that you have:

Connect Claude Code to the CloudBees CI MCP Router

After completing the prerequisites, connect Claude Code to the CloudBees CI MCP Router.

To connect Claude Code to the CloudBees CI MCP Router:

  1. Open a terminal on the machine where Claude Code is installed.

  2. Use the claude mcp add command to add your CloudBees CI MCP Router instance as an MCP agent, including the encoded HTTP basic authentication credentials you generated in Set up the CloudBees CI MCP Router.

    claude mcp add ci-mcp-router http://localhost:9000/mcp --transport http --header "Authorization: Basic dXNlcm5hbWU6dG9rZW4="(1)
    1 Replace dXNlcm5hbWU6dG9rZW4= with your actual encoded credentials.

    If properly configured, a confirmation message similar to the following is returned:

    The CloudBees CI MCP Router has been successfully added to your Claude Code configuration. It's now configured to connect to your local Jenkins instance at http://localhost:9000/mcp with the provided authorization header.

Use Claude Code for development tasks

Now that Claude Code is connected to the CloudBees CI MCP Router, you can use the following tools and commands to accelerate your development workflow. For a list of supported Jenkins tools, refer to MCP Server plugin - Available Tools.