ci-triage-mcp
Exposes triage tools for security scan results (Trivy/Semgrep) stored in S3, enabling on-demand queries of findings, AI-powered classification via Bedrock, and scan summaries.
README
ci-triage-mcp
An MCP server that exposes ci-triage-agent's Trivy/Semgrep + AWS Bedrock security-triage pipeline as on-demand chat tools — ask "what's the triage status on repo X?" from Claude Desktop, no GitHub Actions run required.
Architecture
GitHub PR merged
│
▼
GitHub Action (Ci-mvp)
├─ Trivy scan
├─ Semgrep scan
├─ Bedrock/LangGraph triage → posts PR comment
└─ Upload scan-results to S3 (OIDC-assumed role, scoped s3:PutObject)
│
▼
s3://{bucket}/{repo_slug}/{sha}/trivy.json
s3://{bucket}/{repo_slug}/{sha}/semgrep.json
│
▼ (on-demand, read-only AWS identity, scoped s3:GetObject)
ci-triage-mcp (this project)
├─ list_scanned_repos — discover what's available
├─ list_findings — parse raw Trivy/Semgrep JSON
├─ triage_findings — real Bedrock/LangGraph call (imports
│ Ci-mvp's run_triage() directly, no subprocess)
└─ get_scan_summary — combined human-readable report
│
▼
Claude Desktop (stdio transport)
The MCP server never runs scans itself — it's a read-and-interpret layer downstream of the GitHub Action, which remains the only place scanning happens.
Tools
| Tool | Purpose | Notes |
|---|---|---|
list_scanned_repos |
List repos with results in S3, each with latest SHA + timestamp | No args. Use this first if you don't already know a repo/sha. |
list_findings |
Raw severity counts, finding IDs, affected files | sha="latest" supported |
triage_findings |
Full Bedrock/LangGraph classification (true positive / needs review / false positive, with rationale) | sha="latest" supported |
get_scan_summary |
Combined plain-text report (raw counts + triage verdict) | sha="latest" supported |
Setup
1. Install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
2. Configure environment
Copy .env.example to .env and fill in:
AWS_REGION=us-east-1
AWS_PROFILE=default # local dev only; omit if using ambient creds
SCAN_OUTPUT_DIR=./scan-output # local cache directory
# Optional S3 automation — see "S3 hand-off" below
SCAN_RESULTS_S3_BUCKET=
SCAN_RESULTS_S3_PREFIX=
3. Register with Claude Desktop
Open Claude Desktop → Settings → Developer → Edit Config, and add:
{
"mcpServers": {
"ci-triage": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/server.py"],
"env": {
"AWS_PROFILE": "default",
"SCAN_OUTPUT_DIR": "/absolute/path/to/scan-output",
"SCAN_RESULTS_S3_BUCKET": "your-bucket-name",
"SCAN_RESULTS_S3_PREFIX": ""
}
}
}
}
Fully quit and restart Claude Desktop (config only loads on startup), then
enable the ci-triage connector via the + button in a conversation.
4. Point ci-triage-agent's Action at your bucket
In the caller workflow (e.g. triage.yml), add two inputs to the existing
Ci-mvp step:
- uses: kere-sifon/Ci-mvp@v1.1
with:
aws-role-to-assume: ${{ secrets.CI_TRIAGE_AWS_ROLE_ARN }}
s3-bucket: your-bucket-name
s3-prefix: ""
The s3-prefix value here must exactly match SCAN_RESULTS_S3_PREFIX
above — a mismatch here is the single most likely thing to break the
hand-off (ask me how I know).
IAM
Two separate identities, least-privilege on each side:
- The Action's OIDC-assumed role needs
s3:PutObjectscoped toarn:aws:s3:::{bucket}/*, in addition to whateverbedrock:InvokeModelscope it already has. - The MCP server's local AWS identity (a named profile in local dev,
or its own role if deployed) needs only
s3:GetObjecton the same bucket — it never writes to S3.
Local testing without S3
If SCAN_RESULTS_S3_BUCKET is unset, the server falls back to
SCAN_OUTPUT_DIR only. Drop Trivy/Semgrep JSON manually at:
{SCAN_OUTPUT_DIR}/{repo_slug}/{sha}/trivy.json
{SCAN_OUTPUT_DIR}/{repo_slug}/{sha}/semgrep.json
where repo_slug replaces / with __ (e.g. myorg/my-service →
myorg__my-service).
Known limitations / roadmap
- stdio transport only. This runs as a local subprocess Claude Desktop spawns directly — no remote/HTTP access, no OAuth. Fine for personal use; would need the MCP 2026-07-28 spec's OAuth 2.1 resource-server pattern for any multi-user or remote deployment.
ci-triage-agentisn't a packaged dependency. Itspyproject.tomlhas no[build-system]table, so this project imports it via asys.path.insert()at a hardcoded local path (triage/bedrock_client.py) rather thanpip install -e. Fine for a single-machine setup; would need proper packaging to install this cleanly elsewhere.resolve_sha("latest")depends on S3 object timestamps, not git history — if uploads ever land out of commit order, "latest" reflects upload recency, not commit recency.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。