New advertisers: 50% off your first month with code FIRSTMONTHSee slots
sandstrompl avatar

whyreach

sandstrompl/whyreach

Read-only Docker network diagnosis: finds why one container can't reach another, with evidence and fixes.

tools
4
transport
STDIO
last updated
Nov 21, 2026
View on GitHub

What it does

  • Diagnoses failed connections with diagnose_connection, naming the cause from 14 rules, such as localhost used inside a container or a server bound to 127.0.0.1
  • Gathers evidence with inspect_environment and run_probe, and stores findings through save_report; the server changes nothing in containers, networks, firewall, or DNS
  • Requires Linux with Docker Engine and Docker socket access; runs locally over stdio and logs every call to an audit file
  • Designed for developers running Docker Compose services, often alongside an AI coding agent that needs proof before acting

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

diagnose_connectionDiagnoses why one container cannot connect to another container or to the host.

Diagnoses why one container cannot connect to another container or to the host.

No parameter schema in public metadata yet.

inspect_environment

No parameter schema in public metadata yet.

run_probe

No parameter schema in public metadata yet.

save_report

No parameter schema in public metadata yet.

Readme

whyreach

What is it? A tool that tells you why one Docker container can't connect to another container or to the host. It shows the proof and the fix, and it changes nothing. You can run it yourself or let your AI coding agent run it.

whyreach in a terminal. The demo's worker logs Connection refused for http://localhost:8080/. Then whyreach --from service:worker@whyreach-demo localhost:8080 names the cause, WR007: localhost inside worker is worker itself, not api. It lists the facts and the fix: connect to api:8080.

Why does it exist? Errors like Connection refused or a timeout don't say what's wrong. The cause could be a wrong address or port, a service that only listens to itself, containers on different networks, or a service that isn't ready yet. whyreach finds the real one.

Who is it for? Developers who run several services with Docker Compose on Linux, or on Windows inside WSL2 (from v0.2), often together with an AI coding agent such as Claude Code, Codex or Cursor. Docker Desktop on macOS and native Windows builds come later.


View the full README on GitHub

Details

Repository
github.com/sandstrompl/whyreach
Website
github.com/SandstromPL/whyreach
Categories
DevOps & Cloud, Monitoring & Observability, Developer Tools
Package
ghcr.io/sandstrompl/whyreach:0.2.0
Transport
STDIO
Registry
MCP registry, active

Similar to whyreach

More DevOps & Cloud