Skip to content

Onboarding friction: MCP authentication is discovered too late and costs minutes per install #2

Description

@ngduyanhece

From an instrumented onboarding test (Claude Code session, 2026-08-26): the plugin installed cleanly at 10:31, but when the first Brain task ran at 10:36 the agent hit claude mcp list"Needs authentication", had to read claude mcp --help twice to discover the login subcommand, ran claude mcp login plugin:byterover:byterover-brain, handed off to the browser, and abandoned the task once ("I cannot produce the brief yet — the sign-in step needs you") before the user returned ~2 minutes later with "signed in". Total: ~3.5 minutes of friction plus one dead-end response, on the very first Brain interaction.

Proposed fixes (in leverage order)

  1. Auth at install, not first use. The install flow should immediately trigger — or print verbatim — the per-tool login command. Install time is when the user is present and expecting setup; first tool use is when an agent is mid-task and blocks on them.
  2. Exact remediation in the skill. Add a first-run checklist to skills/byterover-company-brain/SKILL.md: "If claude mcp list shows Needs authentication, run exactly claude mcp login plugin:byterover:byterover-brain, expect a browser window, then re-verify with claude mcp list." The agent burned two help-page reads discovering this on its own.
  3. Structured auth errors from the server. An unauthenticated brain__query/brain__learn call should return an error object carrying the exact login command, so any agent self-remediates without mcp list spelunking.
  4. Device-code OAuth grant on dev-mcp.byterover.dev for headless/CI contexts where a browser handoff is impossible.

Items 1–2 are one-sentence/one-block changes and remove most of the observed friction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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