Skip to content

trinity:connect: handle External MCP access being off on a fresh Trinity install #26

Open

Description

@vybe

Summary

Trinity is changing its default for external MCP access (Abilityai/trinity#4264). On a fresh install, MCP clients outside the server are refused until an admin turns the access on. trinity:connect runs from outside the server, so on a fresh install it will write a working-looking .mcp.json whose connection is then refused.

What changes in Trinity

  • A fresh install refuses off-box MCP clients with 403 and a JSON-RPC -32003 error, named external_mcp_access_off, plus the header X-Trinity-Refusal: external_mcp_access_off.
  • An admin turns access on under Settings → MCP Keys → External MCP access.
  • While the backend cannot be read, off-box clients get 503 external_mcp_access_unverified with Retry-After.
  • Fresh installs publish the raw :8080 port on loopback only, so off-box clients use <web origin>/mcp. The URL shown in Settings → MCP Keys is the one to use.
  • Upgraded installs keep access on, with no operator action.

Acceptance criteria

  • trinity:connect tells a fresh-install user to turn on External MCP access before connecting.
  • A refused connection is reported as the named setting being off, with the Settings path, and not as a transport failure or a bad key.
  • The skill does not assume :8080 is reachable. It uses the instance's advertised MCP URL.
  • The flow is checked end to end against a fresh install and against an upgraded one.

🤖 Generated with Claude Code

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