
这个项目提供了一个适合DCI API的模型上下文协议(MCP)服务器. 它允许AI模型与DCI进行互动,以全面提取DCI的工作,组件,话题和.
概览
这个项目提供了一个适合DCI API的模型上下文协议(MCP)服务器. 它允许AI模型与DCI互动,以全面提取DCI的工作,组件,话题和文件等数据. - QQ:构建在现代快速的网络框架上 - QQ:实施AI集成的"模式背景协议" - QQ:全面访问DCI组件,工作,文件,管道,产品,团队,以及主题 - QQ:分析工作URL和元数据的高级PR构建查找器 - QQ:具有认证的本地DCI API支持 - QQ:支持.
概述(AI 翻译)
这个项目提供了一个适合DCI API的模型上下文协议(MCP)服务器. 它允许AI模型与DCI互动,以全面提取DCI的工作,组件,话题和文件等数据.
□ 特性
- ** FastAPI**:建在一个现代化的快速网络框架中
- ** MCP**:实施AI一体化的示范背景协议
- 综合DCI API: 全面访问DCI组件,工作,文档,管道,产品,团队和话题.
- *** 智能PR检测**: 分析工作 URL 和元数据的高级 PR 构建查找器
- ** DCI一体化**: 本地 DCI API 支持认证
- 方便配置**: 支持简单设置的.env文件
- ** 守则质量**:全面承诺前检查和准备
- Google驱动集成:将DCI报告转换为Google Docs,格式丰富
- 吉拉一体化**: 从Jira收集全面的票证数据,并附上评论意见和更改日志
- GitHub一体化: 使用 GitHub 强大的搜索 API 搜索问题并拉动请求
- 红帽支持案例集成:从客户端获取红帽支持案例数据
□ 安装
QQ 配置
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
DCI MCP Server
This project provides a Model Context Protocol (MCP) server adapted for the DCI API. It allows AI models to interact with DCI for comprehensive data extraction about DCI jobs, components, topics and files.
Features
- 🚀 FastAPI: Built on a modern, fast web framework
- 🤖 MCP: Implements the Model Context Protocol for AI integration
- 🔍 Comprehensive DCI API: Full access to DCI components, jobs, files, pipelines, products, teams, and topics
- 🔧 Smart PR Detection: Advanced PR build finder that analyzes job URLs and metadata
- 🔐 DCI Integration: Native DCI API support with authentication
- 📝 Easy Configuration: Support for .env files for simple setup
- ✅ Code Quality: Comprehensive pre-commit checks and linting
- 📊 Google Drive Integration: Convert DCI reports to Google Docs with rich formatting
- 🎫 Jira Integration: Collect comprehensive ticket data from Jira with comments and changelog
- 🐙 GitHub Integration: Search issues and pull requests using GitHub’s powerful search API
- 🔴 Red Hat Support Case Integration: Access Red Hat support case data from the Customer Portal
Installation
# Clone the repository
git clone https://github.com/redhat-community-ai-tools/dci-mcp-server
cd dci-mcp-server
# Install dependencies
uv sync
# Activate virtual environment
source .venv/bin/activate
Configuration
The server supports multiple ways to configure DCI authentication:
Copy the example file and customize it:
cp env.example .env
# Edit .env with your DCI credentials
Example .env file:
# Method 1: API Key Authentication
DCI_CLIENT_ID=/
DCI_API_SECRET=
# Method 2: User ID/Password (alternative to API key)
# DCI_LOGIN=foo
# DCI_PASSWORD=bar
# Google Drive Integration (optional)
# GOOGLE_CREDENTIALS_PATH=credentials.json
# GOOGLE_TOKEN_PATH=token.json
MCP Configuration
Cursor IDE (stdio transport)
Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"dci": {
"command": "uv",
"args": ["run", "/path/to/dci-mcp-server/.venv/bin/python", "/path/to/dci-mcp-server/main.py"],
"description": "MCP server for DCI integration"
}
}
}
Claude Desktop (~/.claude.json)
{
"mcpServers": {
"dci": {
"command": "uv",
"args": ["run", "--directory", "/path/to/dci-mcp-server", "main.py"],
"env": {
"DCI_CLIENT_ID": "your-client-id",
"DCI_API_SECRET": "your-secret",
"DCI_CS_URL": "https://api.distributed-ci.io"
}
}
}
}
Claude CLI (~/.claude.json)
- close the claude cli
- include the block above in the ~/.claude.json file
- start a claude session from the /path/to/dci-mcp-server/ directory
- verify MCP is connected with /mcp
Web-based Integration (SSE transport)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"dci": {
"command": "uv",
"args": ["run", "/path/to/dci-mcp-server/.venv/bin/python", "/path/to/dci-mcp-server/main.py"],
"description": "MCP server for DCI integration"
}
}
}