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 で影響範囲を確認し、fluxtop_find_refs で共有参照を見つけます。
ツール
ツール | 説明 |
| トップレベルのビュー: ドメイン、エッジ数によるハブアプリ、警告 |
| 型付きエッジを持つ任意のアプリからの BFS 影響範囲 |
| 全アプリにわたる参照の正規表現検索 |
| 1 つのアプリの完全なカード: ワークロード、サービス、エッジ |
| トポロジーキャッシュが最新かどうかを確認 |
CLI
# 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.
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