Skip to main content

flux-topology

skills.sh

An MCP server 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-topology

Configure MCP

Add to your opencode.json:

{
  "mcp": {
    "flux-topology": {
      "type": "local",
      "command": ["flux-topology", "mcp"],
      "enabled": true
    }
  }
}

The server reads from flux/ in the working directory. Run opencode from your GitOps repo root.

Agent Skill

The bundled agent skill teaches AI agents when and how to use the MCP tools. Install it from skills.sh:

npx skills add seppaleinen/flux-topology-mcp

This gives your agent a workflow: start with fluxtop_map for an overview, drill down with fluxtop_app_card, check blast radius with fluxtop_trace, and find shared references with fluxtop_find_refs.

Tools

Tool Description
fluxtop_map Top-level view: domains, hub apps by edge count, warnings
fluxtop_trace BFS blast radius from any app with typed edges
fluxtop_find_refs Regex search for references across all apps
fluxtop_app_card Full card for one app: workloads, services, edges
fluxtop_check_freshness Check if the topology cache is up to date

CLI

# Build the topology cache (.fluxtop/)
flux-topology build

# Run the MCP server (for AI agents)
flux-topology mcp

How it works

  1. Discovers apps by walking flux/ and finding ownership signals (HelmReleases, Kustomizations, Deployments, Services)
  2. Extracts workloads, services, ingress hosts, and refs per app
  3. Resolves edges between apps from cross-references
  4. Caches everything in .fluxtop/ — rebuilt only when source files change

No cluster access required. Pure static analysis of YAML files.

Development

git clone https://github.com/seppaleinen/flux-topology-mcp.git
cd flux-topology-mcp
pip install -e ".[dev]"
pytest

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flux_topology-0.2.4.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flux_topology-0.2.4-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file flux_topology-0.2.4.tar.gz.

File metadata

  • Download URL: flux_topology-0.2.4.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flux_topology-0.2.4.tar.gz
Algorithm Hash digest
SHA256 45d47f23881d6d316e9d22557c2bb0962e7b14b1fbd4c3c5c42b80c3391e451c
MD5 58b7d64aa4dfae445d0d88dc59cacfab
BLAKE2b-256 0100b2b0f120fd78eebdda74680b3d9e3215f52000ce3097f53b40e523c79617

See more details on using hashes here.

Provenance

The following attestation bundles were made for flux_topology-0.2.4.tar.gz:

Publisher: release.yml on seppaleinen/flux-topology-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flux_topology-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: flux_topology-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flux_topology-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4d5564c00bcc112e9a2ca9607bcb349870b3100d96ccb38c158c8660a67cac22
MD5 bca1d2644ec2a3f25458392b0c843f4d
BLAKE2b-256 8afa446b8f93d530c4978d622a73f96d42b617f8a3afaa94736961398dd89df5

See more details on using hashes here.

Provenance

The following attestation bundles were made for flux_topology-0.2.4-py3-none-any.whl:

Publisher: release.yml on seppaleinen/flux-topology-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.2

2 files

0.3.1

2 files

This release

0.2.4 This release

2 files

0.2.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page