Skip to content

Add netcheck and an interpreted diagnose tool for connectivity triage #50

Open

Description

@TMHSDigital

Why it matters

The most common question people ask an agent about Tailscale is "why can't I reach X / why is it slow?" Today the agent has to chain tailnet_status and ping_all and then guess. A single diagnose tool that returns an interpreted answer would be the server's standout feature, since no other Tailscale MCP server offers it (per docs/research/). It combines two items already on the roadmap (netcheck, diagnose), and this issue tracks them as one deliverable.

Suggested approach

  1. netcheck tool: parse tailscale netcheck --format=json into a stable shape (UDP, IPv4/IPv6, MappingVariesByDestIP / hard NAT, PortMapping, preferred DERP, and per-region latency).
  2. diagnose {target}: resolve the target (hostname, MagicDNS name, or IP), then check status (online? last seen? key expired?), ping (direct/DERP/peer-relay, latency), and netcheck (is UDP blocked? hard NAT?), and return:
{ "verdict": "reachable_relayed",
  "summary": "raspi is online but relayed via DERP fra (41ms): this device is behind hard NAT and UDP 41641 appears blocked.",
  "suggestions": ["Allow outbound UDP 41641", "Enable a peer relay on a node in the same LAN"],
  "evidence": {} }
  1. A matching MCP prompt ("diagnose connectivity to ") from the v0.4 roadmap.

Done when

diagnose returns a verdict enum, a one-sentence summary, actionable suggestions, and the raw evidence. Fixtures cover online-direct, relayed + hard NAT, offline, expired key, and unknown target.

Activity

  1. added
    priority: P2
    feature
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurepriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions