Skip to content

[Bug]: Outside agents guide says a plain-http LAN or Tailscale address works, but MCP OAuth clients refuse it #22214

Closed

Description

@jason5545

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Docs

Steps to reproduce

  1. Run a T3 server reached directly over a tailnet or LAN address, e.g. t3 serve --host 100.x.y.z (plain http, as remote-access.md describes).
  2. Follow docs/user/outside-agents.md, which says an agent on your own computers "can use any address that computer reaches the environment at: a LAN or Tailscale address".
  3. Point an MCP client on another tailnet machine at http://100.x.y.z:3773/mcp and sign in.

Expected behavior

The guide's address works, or the guide says which addresses won't.

Actual behavior

Discovery, registration and approval all succeed, but the client won't exchange the code: the advertised token endpoint is http://100.x.y.z:3773/oauth/mcp/token, and clients refuse to send credentials to plain http off loopback. #16336 already lists this under Limits ("Plain-http LAN/tailnet addresses can't work: Claude Code refuses non-https token endpoints off localhost."). We hit the same with mcp-remote: --allow-http lets it connect, but not exchange the token.

Fronting the server with Tailscale Serve fixed it (tailscale serve --bg http://100.x.y.z:3773). T3 derives the issuer and resource from Host and X-Forwarded-Proto, so everything becomes https://<machine>.<tailnet>.ts.net and the sign-in completes. t3 pair --tailscale already publishes over Tailscale Serve, so the guide could point there.

Impact

Anyone following the guide on a LAN or tailnet without T3 Connect gets stuck after approving, with no hint why. Suggested fix: say plain http only works for localhost on the host, and send other machines to an HTTPS route (Tailscale Serve / t3 pair --tailscale, or T3 Connect).

Version or commit

Server whose auth code matches upstream ff9f41b65f; the guide is unchanged on 70a869d262.

Environment

Headless Linux server reached over Tailscale; MCP client is mcp-remote on another tailnet machine.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions