flux-topology
Builds a dependency and topology graph of a FluxCD GitOps repository by statically analyzing its manifests, enabling discovery of apps and tracing of service relationships.
Analyzes Kubernetes manifests to extract workloads, services, ingress hosts, and cross-references, providing a topology and blast-radius view of applications without cluster access.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flux-topologyWhat's the blast radius if I change the auth service?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
flux-topology
A CLI + agent skill that builds a dependency and topology graph of a Kubernetes/FluxCD GitOps repository by static analysis, so AI agents can reason about service relationships without cluster access.
Install
pip install flux-topologyOptional — install the agent skill from skills.sh:
npx skills add seppaleinen/flux-topology-mcpNo MCP server is required. Run the CLI from your GitOps repo root; it reads
from flux/ in the working directory.
Related MCP server: Axon Pro
Subcommands
Command | Description |
| Build the topology cache ( |
| Top-level view: domains, hub apps by edge count, warnings |
| BFS blast radius from any app with typed edges |
| Regex search for references across all apps |
| Full card for one app: workloads, services, edges |
| Check if the topology cache is up to date (never rebuilds) |
[dir] defaults to .. A directory is resolved to its flux/ subdirectory
when present; otherwise the directory itself is treated as the flux root.
Exit codes
Code | Meaning |
| Found / fresh |
| Stale, corrupt, not-found, or invalid input |
| Usage error (argparse) |
| No cache ( |
CLI examples
# Build the topology cache (.fluxtop/)
flux-topology build
# Rebuild even when the cache is fresh
flux-topology build --force
# Human-readable overview
flux-topology map
# Machine-readable output
flux-topology map --json
# Blast radius: what depends on this app? (depth 5)
flux-topology trace apps/backend --direction in
# Find every app referencing a shared resource
flux-topology find-refs "postgres-rw\.postgres\.svc\."
# Full card for one app
flux-topology app-card apps/radarr
# Freshness check (exit codes 0/1/3)
flux-topology check-freshnessHow it works
Discovers apps by walking
flux/and finding ownership signals (HelmReleases, Kustomizations, Deployments, Services)Extracts workloads, services, ingress hosts, and refs per app
Resolves edges between apps from cross-references
Caches everything in
.fluxtop/— rebuilt only when source files change
Hybrid freshness
The cache is checked against a fingerprint of all YAML files on every query:
No cache —
map/trace/find-refs/app-cardauto-build once and then answer normally.check-freshnessinstead reportsNO CACHE(exit 3) and never rebuilds.Fresh — the cache matches the working tree; queries answer from it.
Stale / corrupt — queries surface a notice and exit 1 without rebuilding, so results are never silently outdated. Rebuild explicitly with
flux-topology build --force, or justbuild(which also rebuilds when the fingerprint no longer matches).
Deployment note (dotfiles env)
The always-on flux-topology MCP server was removed from the shared MCP list
in the user's dotfiles environment (Stow-managed). The tool is now used
on-demand via the CLI + skill. Re-push the rewritten skill via skills.sh.
Development
git clone https://github.com/seppaleinen/flux-topology-mcp.git
cd flux-topology-mcp
pip install -e ".[dev]"
pytestLicense
MIT
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.
Codebase graphs, caller impact analysis, and recorded project context for AI coding agents.
IaC attack-path auditor: finds internet-to-crown-jewel chains in Terraform/CFN/K8s.
Related MCP Servers
- AlicenseAqualityAmaintenanceProvides AI coding agents with durable architecture memory for repositories by generating structured project maps of responsibilities, relationships, and risks.628 npm1MIT
- AlicenseNot gradedqualityCmaintenanceTransforms codebases into structural knowledge graphs for AI agents and developers, providing precise architectural awareness and dependency mapping.54MIT
- AlicenseAqualityDmaintenanceEnables AI agents to map cross-repository dependencies, detect breaking changes in API contracts, and assess impact across services.10MIT
- AlicenseNot gradedqualityAmaintenanceProvides 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.4,912 npm4MIT