flux-topology
flux-topology
这是一个 MCP 服务器,通过静态分析构建 Kubernetes/FluxCD GitOps 仓库的依赖与拓扑图,让 AI 智能体无需集群访问即可推理服务之间的关系。
安装
pip install flux-topologyRelated MCP server: Merovingian MCP Server
配置 MCP
添加到你的 opencode.json:
{
"mcp": {
"flux-topology": {
"type": "local",
"command": ["flux-topology", "mcp"],
"enabled": true
}
}
}服务器从工作目录中的 flux/ 读取数据。请从你的 GitOps 仓库根目录运行 opencode。
智能体技能
内置的智能体技能会教 AI 智能体何时以及如何使用 MCP 工具。从 skills.sh 安装它:
npx skills add seppaleinen/flux-topology-mcp这为你的智能体提供了一个工作流:先用 fluxtop_map 获取概览,再用 fluxtop_app_card 深入查看,用 fluxtop_trace 检查爆炸半径,用 fluxtop_find_refs 查找共享引用。
工具
工具 | 描述 |
| 顶层视图:域名、按边数排序的枢纽应用、警告 |
| 从任意应用出发的 BFS 爆炸半径,边带类型 |
| 跨所有应用对引用进行正则搜索 |
| 单个应用的完整卡片:工作负载、服务、边 |
| 检查拓扑缓存是否最新 |
命令行
# Build the topology cache (.fluxtop/)
flux-topology build
# Run the MCP server (for AI agents)
flux-topology mcp工作原理
发现应用:遍历
flux/并寻找所有权信号(HelmReleases、Kustomizations、Deployments、Services)提取每个应用的工作负载、服务、ingress 主机和引用
解析来自交叉引用的应用间边
缓存所有内容到
.fluxtop/— 仅在源文件更改时重建
无需集群访问。纯 YAML 文件静态分析。
开发
git clone https://github.com/seppaleinen/flux-topology-mcp.git
cd flux-topology-mcp
pip install -e ".[dev]"
pytest许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
IaC attack-path auditor: finds internet-to-crown-jewel chains in Terraform/CFN/K8s.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Related MCP Servers
- AlicenseBqualityDmaintenanceTransforms codebases into structural knowledge graphs for AI agents and developers, providing precise architectural awareness and dependency mapping.1526MIT
- AlicenseAqualityDmaintenanceEnables AI agents to map cross-repository dependencies, detect breaking changes in API contracts, and assess impact across services.10MIT
- AlicenseNot gradedqualityBmaintenanceProvides a dependency graph of any local repository with tools for change impact, transitive dependents, health audits, and more, enabling AI coding agents to see structure and refactor safely.4MIT
- AlicenseAqualityCmaintenanceExtracts deterministic architecture maps from codebases for AI agents, enabling queries about blast radius, routes, security findings, and production readiness without sending code anywhere.660 PyPIMIT