flux-topology
flux-topology
정적 분석을 통해 Kubernetes/FluxCD GitOps 저장소의 의존성 및 토폴로지 그래프를 구축하는 MCP 서버입니다. 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로 영향 범위(blast radius)를 확인한 다음, fluxtop_find_refs로 공유 참조를 찾습니다.
도구
도구 | 설명 |
| 최상위 뷰: 도메인, 엣지 수 기준 허브 앱, 경고 |
| 타입이 있는 엣지로 모든 앱의 BFS 영향 범위(blast radius) |
| 모든 앱에서 참조에 대한 정규식 검색 |
| 단일 앱의 전체 카드: 워크로드, 서비스, 엣지 |
| 토폴로지 캐시가 최신 상태인지 확인 |
CLI
# Build the topology cache (.fluxtop/)
flux-topology build
# Run the MCP server (for AI agents)
flux-topology mcp작동 방식
탐색:
flux/를 순회하며 소유권 신호(HelmReleases, Kustomizations, Deployments, Services)를 찾아 앱을 식별합니다.추출: 앱별로 워크로드, 서비스, 인그레스 호스트, 참조를 추출합니다.
해석: 교차 참조에서 앱 간 엣지를 해석합니다.
캐시: 모든 것을
.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.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Fail-closed policy guardrails for AI agents running kubectl, terraform, helm, and argocd.
Related MCP Servers
- AlicenseBqualityDmaintenanceTransforms codebases into structural knowledge graphs for AI agents and developers, providing precise architectural awareness and dependency mapping.1529MIT
- AlicenseAqualityNot gradedmaintenanceEnables 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