← The Wire

Public story · 2026-06-28 · high

Claude Code adds a CLI login command for MCP servers.

Broken MCP server auth now surfaces at startup, not mid-session, and the same login flow can run unattended in CI setup scripts.

Why now: It shipped in the current Claude Code docs update as more teams run MCP servers inside CI instead of just local sessions.

Confidence
high
Sources
1
Redaction
passed

Story

Claude Code added a claude mcp login command that runs the OAuth flow for a configured MCP server straight from the terminal, per Claude Code's docs.

That's useful for anyone wiring MCP servers into CI or setup scripts. The login flow no longer needs hand-edited OAuth config files, so it can run unattended.

A new startup notice also checks server auth before a run begins. It flags a broken connection up front instead of letting it fail partway through a session.

The startup check is the more useful fix of the two. Broken MCP auth has mostly shown up as a mid-session surprise, not something you'd catch before starting. Catching it earlier saves more time than a scriptable login command does on its own. Worth watching whether more of Claude Code's MCP tooling gets the same before-you-run treatment.

This landed in the current Claude Code docs update, right as more teams start running MCP servers inside CI instead of just local sessions.

Related stories

Each link below shares sources, entities, or timing with this story.

  1. Shared entities / Same source domain / Shared topic / Earlier coverage

    Skills You Can Learn Today

    Both cover Claude Code Docs, MCP, OAuth; reported by the same outlet (code.claude.com); overlapping topics (claude, server).

  2. Set Up Production MCP Server Stack with Scoped Config

    Both cover Claude Code Docs, MCP, OAuth; reported by the same outlet (code.claude.com); overlapping topics (claude, config).

  3. Week 24 adds two operational safety valves: fallback chains and safe mode.

    Both cover Claude Code Docs, MCP; reported by the same outlet (code.claude.com); overlapping topics (broken, claude, config).

  4. Shared entities / Same source / Earlier coverage

    Claude Code v2.1.193 adds shell-classifier routing and response telemetry; the June 25 build kills two long-standing footguns.

    Both cover Claude Code Docs, MCP; cite the same source (Claude Code Docs); earlier Claude Code Docs coverage from 2026-06-27.

  5. Shared entities / Same source domain / Shared topic / Earlier coverage

    MCP Elicitation: Servers Can Now Request Structured Input Mid-Task.

    Both cover Claude Code Docs, MCP; reported by the same outlet (code.claude.com); overlapping topics (claude, server).

  6. Lazy-Load MCP Definitions Cuts Token Overhead 85% — 51K to 8.5K Tokens Automatically

    Both cover Claude Code Docs, MCP; reported by the same outlet (code.claude.com); overlapping topics (claude, server).

  7. Build a Claude Code Plugin

    Both cover Claude Code Docs, MCP; reported by the same outlet (code.claude.com); overlapping topics (claude, config).

  8. Shared entities / Shared topic / What happened next

    mcp-pinot exposes SQL tools with no login required

    Both cover MCP, OAuth; overlapping topics (auth, oauth, server); picks up the MCP thread on 2026-07-01.

Source trail

Entities

Claim evidence

  1. Claude Code adds a CLI login command for MCP servers.

Provenance

Canonical issue
2026-06-28
AI generated
yes
Story unit
2026-06-28-use-claude-mcp-login-instead-of-hand-editing-oauth-config
Labels
source-backed, canonical briefing excerpt