Connect GitHub Copilot to the CloudBees CI MCP Router

2 minute read

GitHub Copilot is an AI-powered coding assistant that integrates with the CloudBees CI MCP Router through the Jenkins MCP Server plugin, connecting your IDE 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 GitHub Copilot to the CloudBees CI MCP Router in your IDE

After completing the prerequisites, connect GitHub Copilot to the CloudBees CI MCP Router from your IDE.

To connect GitHub Copilot to the CloudBees CI MCP Router in your IDE:

  1. Open your IDE, launch the GitHub Copilot chat window, and set the chat interface to Agent mode.

  2. Create or open the mcp.json configuration file. The location of this file may vary depending on your IDE. For more information, refer to Extending GitHub Copilot Chat with the Model Context Protocol (MCP).

  3. Add your CloudBees CI MCP Router configuration to the mcp.json file, including the encoded HTTP basic authentication credentials you generated in Set up the CloudBees CI MCP Router.

    { "servers": { "ci-mcp-router": { "type": "http", "url": "http://localhost:9000/mcp", "requestInit": { "headers": { "Authorization": "Basic dXNlcm5hbWU6dG9rZW4="(1) } } } } }
    1 Replace dXNlcm5hbWU6dG9rZW4= with your actual encoded credentials.
  4. Save the mcp.json file. If properly configured, messages similar to the following are available in the IDE’s log:

    [2025-09-18 16:30:41.064][info] [ci-mcp-router]Starting server ci-mcp-router [2025-09-18 16:30:41.192][info] [ci-mcp-router]Connection state: Running [2025-09-18 16:30:41.214][info] [ci-mcp-router]Discovered 12 tools

Use GitHub Copilot for development tasks

Now that GitHub Copilot 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.