Explore the DCI MCP server to unlock AI models support on DCI resources
Back to all posts

Introduction

Distributed-CI (DCI) is a platform that orchestrates CI/CD pipelines and stores a wealth of data about jobs, components, topics, teams, and artifacts. As pipelines and test results grow, making sense of that data (finding patterns, diagnosing failures, or producing reports) can be time-consuming. AI assistants can help, but they need structured access to DCI rather than manual copy-paste.

The Model Context Protocol (MCP) is an open protocol that lets AI applications connect to external data sources and tools through standardized servers. An MCP server exposes capabilities (tools, resources, prompts) that an AI model can call during a conversation. That way, the model can query real data, run actions, and use the results in its answers.

The DCI MCP server is a MCP server built for the DCI API. It allows AI models to interact with DCI for comprehensive data extraction: searching jobs with rich query filters, querying components and topics, downloading job files, and more. Optional integrations extend the workflow (for example, turning DCI reports into Google Docs or pulling Jira ticket data referenced in job comments). By plugging this server into your AI environment (e.g. Cursor or any MCP-compatible client), you can ask natural-language questions about your DCI jobs and pipelines and get answers grounded in live DCI data.

This post is for DCI users who want to expand how they analyze DCI resources with AI. We will introduce the DCI MCP server, walk through its main features and integrations, and suggest practical ways to use it in your daily work. We will focus in Cursor as tool to drive the interaction with this MCP server.

Installing the tool

Below is a concise overview of how to install the DCI MCP server and optionally enable Google Drive and Jira integrations.

For exact commands and config snippets, use the project’s README and the setup guides linked in each section.

DCI MCP server

Once that’s done, DCI tools (job search, components, file download, etc.) are available.

The next two sections are optional add-ons that can be included.

Google Drive integration (optional)

This integration turns DCI reports and markdown into Google Docs. In short:

With this, you can start uploading reports in Google Drive. For this to work, we recommend to run your prompts without Red Hat VPN connection, else the upload process is likely to fail. Also, bear in mind that the documents that are uploaded are usually saved in the root directory of your user account.

Full steps, troubleshooting, and security notes are in the Google Drive Setup Guide.

Jira integration (optional)

Jira support fetches ticket data (including comments and changelog) from Red Hat Jira and links to DCI job comments. For this to work:

For usage and troubleshooting, see the Jira Setup Guide.

Playing with the MCP server

Once the DCI MCP server is installed and connected to your client, you can use the built-in prompts (e.g. weekly or quarterly reports, root-cause analysis) or drive the assistant with free-form questions. To get repeatable, high-quality results, it helps to use custom prompts that spell out the task, the data to fetch, and the format of the output.

Creating your own prompts

Good prompts for DCI workflows usually do the following:

You can ship these prompts as Cursor commands (e.g. markdown files in a folder that Cursor exposes as /your-command-name) so your team can run the same workflow with a single command and optional parameters (e.g. a date). Please ask Telco Partner CI team in case you want to expand information about this, we have experience on defining this kind of prompts for our daily jobs.

Example: extracting the list of jobs

Here is an example of a prompt that you can use with your preferred AI editor to retrieve the list of jobs for a given pipeline name in a given lab, in order to extract some intersting information such as the passed/failed jobs, comparison of DCI components used on thes jobs, etc.

I want to make a report to analyze the results obtained in the following subset of DCI daily jobs launched in the Telco Partner CI team during the last week (from Monday to Sunday):

- pipeline name is install-4.20
- team name is rh-telco-ci
- configuration is hybrid
- since it's a daily job, it has to have the `daily' tag

Make a report with the following information:

1. Executive summary: Brief overview of CI health for the specified teams and time period.
2. List of failed job, including link to the related Jira card and reason of failure.
3. Component Version Analysis: For each failed job, show the components related to the OpenShift, dci-openshift-(app)-agent, dci-pipeline and ansible-collection-redhatci-ocp version in failed jobs, and what's the successful reference version from previous passed jobs.
4. Recommendations (immediate/medium/long-term): Action items under 'Immediate', 'Medium-term', and 'Long-term' headings, presented as bullet lists.
5. List of analyzed jobs: for further reference, include the list of jobs that you have retrieved, ordered by date. Also display the date.

You have here a report example based on this prompt.

Conclusions

The DCI MCP server brings DCI’s job, component, and pipeline data into AI-assisted workflows. By implementing the Model Context Protocol, it lets AI models query DCI in a structured way—searching jobs, components, and topics, and downloading artifacts—so you can analyze failures, compare runs, and produce reports without manual copy-paste. Optional integrations (e.g. Google Drive for reports, Jira for ticket context) extend these capabilities inside tools like Cursor.

Getting started requires cloning the server repo, configuring DCI credentials (API key or remoteci credentials), and wiring the server into your MCP client (e.g. ~/.cursor/mcp.json for Cursor). The optional Google Drive and Jira setups add a few extra steps but enable report publishing and Jira-linked analysis. Once connected, the DCI tools are available to your AI assistant for natural-language questions over live DCI data.

Effective use hinges on clear prompts: define the role and goal, specify DCI filters (remoteci, team, tags, time window), break the work into steps, and describe the desired output format. Custom prompts can be packaged as Cursor commands, so your team can run the same workflows consistently. For more details on these workflows, examples, or how to adapt them to your use case, please reach out to the Telco Partner CI team, we will be glad to help you!