Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 09:26
60cfdfd

Hardening and supply-chain security release (follow-up to the v0.2.0 audit).

Security

  • Streamable HTTP sessions are bound to the token that created them; another valid token gets 403.
  • basicAuth/digestAuth password hashes are redacted in get_middleware/list_middlewares (user names stay visible). SHOW_SECRETS=true restores the old output.
  • /readyz (unauthenticated) is cached for 5 s, so it cannot be used to flood the Traefik APIs.
  • Stricter config: MCP_HTTP_PATH may not collide with /sse, /healthz, /readyz; *_FILE reads are capped at 64 KiB; *_HEADERS rejects invalid names, framing headers (Host, Content-Length, …) and Authorization combined with bearer/basic auth; --traefik-url is no longer copied into the process environment.
  • Upstream error text is labelled as upstream message.

health_report

  • Certificates that expired less than 24 h ago are reported as expired, not as "expires in 0 days".
  • Certificates with an unparseable expiry date are reported instead of skipped.
  • Only redirectScheme middlewares redirecting to https suppress the plain-HTTP finding; entry points with http.tls are no longer flagged.

Supply chain

  • Signed SLSA build provenance for all release binaries and the container image:
    gh attestation verify <file|oci://ghcr.io/virtualben89/traefik-mcp-go:0.3.0> --repo virtualben89/traefik-mcp-go
  • GitHub Actions pinned to commit SHAs, Dependabot for actions, Docker and Go modules.
  • Go toolchain from go.mod (go1.27.4), golang base image pinned by digest.
  • staticcheck and govulncheck in CI; pull requests no longer write the build cache.

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 09:11
e099381

Security hardening release, based on a full source audit of v0.2.0. Update recommended.

Fixed

  • Server crash (medium): huge page/per_page values in list_routers (with service/middleware filter) overflowed the pagination offset and terminated the whole server. Now bounded (per_page ≤ 500, page ≤ 1,000,000) in schema and code; panics in tool calls and worker goroutines are recovered.
  • Invalid boolean env values (e.g. TLS_CHECK_ENABLED=off) silently kept the default; they now stop the server with an error.
  • The upstream client followed redirects and could forward credentials (custom headers to other hosts, Authorization after an HTTPS→HTTP downgrade). Redirects are no longer followed.
  • Credentials embedded in TRAEFIK_*URL (user:pass@host) were shown by list_instances; such URLs are now rejected.
  • No-auth mode (MCP_ALLOW_NO_AUTH=true) on non-loopback listeners was open to DNS rebinding. /mcp and /sse now only accept Host localhost/loopback or MCP_ALLOWED_HOSTS; browser cross-origin requests are rejected.
  • check_tls_endpoint reported verified=true for IP targets whose certificate lacks that IP SAN, and matched store certificates by serial number alone. Now verifies against the IP and matches by fingerprint only.

Changed

  • check_tls_endpoint refuses internal destinations (loopback, RFC 1918, ULA, link-local/metadata, CGNAT, reserved), checked after DNS resolution. Allow ranges with TLS_CHECK_ALLOW_CIDRS, e.g. 192.168.100.0/24.
  • New MCP_ALLOWED_HOSTS. Negative MCP_HTTP_SESSION_TIMEOUT is rejected.
  • Rule parser limits: 64 KiB per rule, nesting depth 100. Lists with more than 1000 pages return an error instead of truncated data.

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 13:39
213c177

Troubleshooting release: 7 new tools (14 in total).

New tools

  • get_overview: counts of routers, services and middlewares per protocol with warnings/errors, providers, features.
  • list_entrypoints / get_entrypoint: address, protocol, HTTP→HTTPS redirect, default TLS, entry point middlewares, forwarded headers, proxy protocol.
  • list_certificates: certificates from the Traefik store (Traefik 3.7+), metadata only, sorted by expiry, filter expiring_within_days.
  • health_report: one call for one or all instances: disabled/warning objects with Traefik's error text, backends DOWN, expired or soon expiring certificates, ghost routers (Docker default rule because a rule label is missing), routers served over plain HTTP without redirect.
  • find_route: which router handles a URL? Evaluates Host, HostRegexp, Path, PathPrefix, PathRegexp, Method and TCP HostSNI (v2 and v3 syntax) with priorities and TCP precedence; shows the full chain entry point → router → middlewares → service → servers (UP/DOWN).
  • check_tls_endpoint: TLS handshake against host:port: served certificate, chain and hostname verification, TLS version, ALPN, detection of TRAEFIK DEFAULT CERT, lookup in the Traefik certificate stores.

Improvements

  • Exact JSON numbers (router priorities up to MaxInt64 are no longer rounded).
  • Rules stay readable in tool output (no HTML escaping of &&, <, >).
  • New settings CERT_WARN_DAYS and TLS_CHECK_ENABLED.

Full Changelog: v0.1.1...v0.2.0

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 12:57
8b6fb39

Maintenance release, no functional changes.

Changed

  • Built with Go 1.27 (go.mod now requires Go 1.27).
  • Indirect dependencies updated to their latest versions.

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 07:15

First release: a small, read-only MCP server for the Traefik API, written in Go.

Features

  • Tools (7): list_instances, list_routers, get_router, list_services, get_service, list_middlewares, get_middleware, for HTTP, TCP and UDP (protocol parameter).
  • Several Traefik instances in one server (TRAEFIK_INSTANCES, instance parameter on every tool).
  • Transports: stdio, Streamable HTTP (/mcp) and legacy HTTP+SSE (/sse), plus /healthz and /readyz.
  • Bearer token auth for HTTP (several tokens for rotation, _FILE variants). HTTP refuses to start without a token unless MCP_ALLOW_NO_AUTH=true.
  • Upstream auth towards Traefik: Basic Auth, Bearer token or custom headers (e.g. ForwardAuth / Cloudflare Access), optional CA file.
  • Filters (search, status, service, middleware), pagination with next_page, names without @provider are resolved when unique.
  • Portable tool schemas (no $ref, no type arrays) for Claude, OpenAI, Gemini, Cursor, VS Code, Codex, Hermes and other MCP clients.

Distribution

  • Static binary on scratch, about 10 MB, multi-arch image (amd64, arm64, arm/v7) on GHCR.
  • Binaries for Linux, macOS and Windows.
  • Tested against Traefik v3.7 and v2.11.

Full Changelog: https://github.com/virtualben89/traefik-mcp-go/commits/v0.1.0