Skip to content

MCP connection cards misreport what the provider never offered #491

Description

@czpython

An MCP connection card can show "Account identity unavailable" and "No scopes recorded" for a healthy connection. Both lines read as failures. For many MCP servers they only mean the provider exposes nothing: the Atlassian MCP authorization server advertises no userinfo_endpoint and lists no scopes, so there is nothing to fetch.

Two changes:

  1. Record what the provider does report. The OAuth flow stores scopes=[] unconditionally (mcp/oauth.py), but a token response can carry a scope field. Store it when present.
  2. Say the true state. When the provider exposes no identity or scopes, the card says so ("not reported by the provider"), and reserves the current wording for a lookup that failed.

Optional, later: an identity fallback that asks the resource itself — some MCP servers expose a whoami-style tool (Atlassian has atlassianUserInfo). That is per-provider knowledge and a separate decision.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions