Skip to main content

flux-topology

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.

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/daveri/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.2.tar.gz (24.7 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.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flux_topology-0.2.2.tar.gz
  • Upload date:
  • Size: 24.7 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.2.tar.gz
Algorithm Hash digest
SHA256 5f1841bd9f86f5ac34f0e3290810780924dca1add4399b0c5bc19e6db393b960
MD5 65560762c77ed341b0d3f9497a5ccd22
BLAKE2b-256 799c5c0a551164829c2e997a2a8e853d67a27a8938c75c68efd406afb27d348e

See more details on using hashes here.

Provenance

The following attestation bundles were made for flux_topology-0.2.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: flux_topology-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c170cd5490b39a62fe900c0ccbbb387704b36d95a6ff977c9f435b77ddcda8
MD5 ba3cec666a097c71f75bca497e3e0bc3
BLAKE2b-256 459459fef3a289d99b82560f690952f9908ef1bca8d5342d55df7683d3326cc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for flux_topology-0.2.2-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

0.2.4

2 files

This release

0.2.2 This release

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