Repository navigation
Releases
Releases · virtualben89/traefik-mcp-go
v0.3.0
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=truerestores the old output. /readyz(unauthenticated) is cached for 5 s, so it cannot be used to flood the Traefik APIs.- Stricter config:
MCP_HTTP_PATHmay not collide with/sse,/healthz,/readyz;*_FILEreads are capped at 64 KiB;*_HEADERSrejects invalid names, framing headers (Host,Content-Length, …) andAuthorizationcombined with bearer/basic auth;--traefik-urlis 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
redirectSchememiddlewares redirecting to https suppress the plain-HTTP finding; entry points withhttp.tlsare 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
Security hardening release, based on a full source audit of v0.2.0. Update recommended.
Fixed
- Server crash (medium): huge
page/per_pagevalues inlist_routers(withservice/middlewarefilter) 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 bylist_instances; such URLs are now rejected. - No-auth mode (
MCP_ALLOW_NO_AUTH=true) on non-loopback listeners was open to DNS rebinding./mcpand/ssenow only acceptHostlocalhost/loopback orMCP_ALLOWED_HOSTS; browser cross-origin requests are rejected. check_tls_endpointreportedverified=truefor 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_endpointrefuses internal destinations (loopback, RFC 1918, ULA, link-local/metadata, CGNAT, reserved), checked after DNS resolution. Allow ranges withTLS_CHECK_ALLOW_CIDRS, e.g.192.168.100.0/24.- New
MCP_ALLOWED_HOSTS. NegativeMCP_HTTP_SESSION_TIMEOUTis 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
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, filterexpiring_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? EvaluatesHost,HostRegexp,Path,PathPrefix,PathRegexp,Methodand TCPHostSNI(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 againsthost:port: served certificate, chain and hostname verification, TLS version, ALPN, detection ofTRAEFIK 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_DAYSandTLS_CHECK_ENABLED.
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Maintenance release, no functional changes.
Changed
- Built with Go 1.27 (
go.modnow requires Go 1.27). - Indirect dependencies updated to their latest versions.
Full Changelog: v0.1.0...v0.1.1
v0.1.0
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 (protocolparameter). - Several Traefik instances in one server (
TRAEFIK_INSTANCES,instanceparameter on every tool). - Transports: stdio, Streamable HTTP (
/mcp) and legacy HTTP+SSE (/sse), plus/healthzand/readyz. - Bearer token auth for HTTP (several tokens for rotation,
_FILEvariants). HTTP refuses to start without a token unlessMCP_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 withnext_page, names without@providerare 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