AI DevSecOps Agent MCP Server
Enables LLM clients to access DevSecOps tooling such as CI/CD pipeline status, vulnerability triage, log search, and dependency scanning through MCP, turning AI copilots into security-aware engineering partners.
README
AI-Assisted DevSecOps Agent — MCP Server 🤖🔒
An MCP (Model Context Protocol) server exposing DevSecOps tooling to LLM clients — turning your AI copilot into a security-aware engineering partner.
The Problem
DevSecOps teams drown in context-switching: checking pipeline status in one tab, triaging vulnerabilities in another, searching logs in a third. Meanwhile, LLM coding assistants can write code but are blind to your operational reality — they can't see your failing builds, open CVEs, or production errors.
The Solution
This MCP server bridges the gap by exposing four security-critical tools to any MCP-compatible LLM client (GitHub Copilot, Claude Desktop, Cursor, etc.):
| Tool | What It Does |
|---|---|
get_pipeline_status |
Fetches CI/CD pipeline runs from GitHub Actions |
triage_vulnerabilities |
Queries a vulnerability board and returns severity-ranked CVEs |
search_logs |
Searches application logs by service, severity, and time range |
scan_dependencies |
Analyzes a package.json or requirements.txt for known vulnerabilities |
Why This Over the Obvious Alternative
Most "AI + DevOps" demos are chatbots with hardcoded responses. This project implements the Model Context Protocol (MCP) — the open standard for tool-use that GitHub Copilot, Claude, and other major LLM clients natively support. The tools return real, structured data that the LLM reasons over, not canned answers.
Architecture
┌─────────────────┐ MCP (stdio/SSE) ┌──────────────────────┐
│ LLM Client │◄──────────────────────►│ MCP Server │
│ (Copilot, │ │ │
│ Claude, etc.) │ │ ┌────────────────┐ │
│ │ │ │ Pipeline Tool │ │
│ │ │ │ Vuln Triage Tool│ │
│ │ │ │ Log Search Tool │ │
│ │ │ │ Dep Scan Tool │ │
│ │ │ └────────────────┘ │
└─────────────────┘ └──────────────────────┘
│
┌───────┴───────┐
│ Mock Data │
│ (Simulated │
│ APIs) │
└───────────────┘
🛠️ Tech Stack
- Runtime: Node.js + TypeScript
- Protocol: Model Context Protocol (MCP) SDK
- Transport: stdio (local) and SSE (remote)
- Containerization: Docker
🚀 Getting Started
Local Development
npm install
npm run build
npm run start
With Docker
docker-compose up -d --build
Connecting to Claude Desktop
Add to your Claude Desktop MCP config (claude_desktop_config.json):
{
"mcpServers": {
"devsecops-agent": {
"command": "node",
"args": ["dist/index.js"]
}
}
}
📁 Project Structure
src/
├── index.ts # MCP Server entry point
├── tools/
│ ├── pipeline.tool.ts # GitHub Actions pipeline status
│ ├── vulnerability.tool.ts # CVE triage from mock board
│ ├── logs.tool.ts # Log search across services
│ └── dependency.tool.ts # Dependency vulnerability scanning
└── data/
└── mock-data.ts # Simulated API responses
Decision Log
| Decision | Rationale |
|---|---|
| MCP over REST API | MCP is the emerging standard for LLM tool-use; REST would require custom integration per client |
| TypeScript over Python | Aligns with existing TypeScript expertise; MCP TS SDK is mature |
| Mock data layer | Keeps the PoC self-contained without requiring real GitHub/Jira API keys |
| stdio transport | Default for local MCP; SSE available for remote deployment |
📋 Prerequisites
| Tool | Version | Purpose |
|---|---|---|
| Node.js | >= 20.x | Runtime |
| npm | >= 10.x | Package manager |
| Docker | >= 24.x | Containerization (optional) |
| MCP Client | Any | Claude Desktop, GitHub Copilot, Cursor, etc. |
🚀 Step-by-Step Setup
Option A: Local Development
# 1. Clone the repository
git clone https://github.com/SumitDalavi/ai-devsecops-agent-mcp.git
cd ai-devsecops-agent-mcp
# 2. Install dependencies
npm install
# 3. Build the TypeScript project
npm run build
# 4. Start the MCP server (stdio transport)
npm run start
Option B: Docker
# 1. Clone and build
git clone https://github.com/SumitDalavi/ai-devsecops-agent-mcp.git
cd ai-devsecops-agent-mcp
# 2. Build and run
docker build -t devsecops-mcp-agent .
docker run -i devsecops-mcp-agent
Connecting to Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"devsecops-agent": {
"command": "node",
"args": ["/absolute/path/to/ai-devsecops-agent-mcp/dist/index.js"]
}
}
}
🧪 Usage & Demo
Once connected to an MCP client, you can ask natural language questions like:
| Prompt | Tool Invoked |
|---|---|
| "Show me the latest pipeline runs" | get_pipeline_status |
| "Are there any critical vulnerabilities?" | triage_vulnerabilities |
| "Search for error logs in the payment service" | search_logs |
| "Scan dependencies for known CVEs" | scan_dependencies |
| "Show me Kubernetes events in production" | get-kubernetes-events |
| "Check for active incidents" | get-sre-incident-correlation |
The server returns structured JSON data that the LLM reasons over to provide contextual answers.
✅ Verification
# Verify the build succeeds
npm run build
# Verify the server starts (it will wait for MCP client connection on stdio)
node dist/index.js
# You should see: "DevSecOps MCP Agent running on stdio" on stderr
👨💻 Author
Built to demonstrate AI-augmented DevSecOps workflows and close the gap between LLM assistants and operational tooling.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。