---
title: "MCP or CLI? Yes."
description: "Sentry now ships its MCP server launchable from the CLI (`sentry mcp`), running stdio mode with a shim that reuses CLI credentials via a separate `Sentry-Bearer` token header that bypasses the OAuth proxy's CIMD/DCR flow."
url: "https://swe.quest/articles/mcp-or-cli-yes-bc20ce304cab3de5"
canonical: "https://blog.sentry.io/mcp-or-cli/"
source: "Sentry"
published: "2026-11-10"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 6
tags: ["ai-agents","developer-tools","identity-auth"]
---

# MCP or CLI? Yes.

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-11-10, 6 min read, Opinion. Original: [https://blog.sentry.io/mcp-or-cli/](https://blog.sentry.io/mcp-or-cli/)

## Summary

Sentry now ships its MCP server launchable from the CLI (\`sentry mcp\`), running stdio mode with a shim that reuses CLI credentials via a separate \`Sentry-Bearer\` token header that bypasses the OAuth proxy's CIMD/DCR flow. This sidesteps MCP's authentication bugs but gives up the consolidated, client-native auth that MCP offers. The two interfaces are complementary: the CLI has filesystem access for token-efficient grepping and pagination over raw data like session replay event logs, while MCP provides native tool discovery and steering. Sentry plans transport-aware steering where MCP tool responses point agents at CLI commands, and notes that uneven harness support for tool search, \`instructions\` metadata and MCP Events still limits relying on MCP alone.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- Model Context Protocol basics
- OAuth device code flow ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- coding agent harnesses

## Keywords

Sentry, MCP, Sentry CLI, Claude Code, OAuth, CIMD, DCR

## Related posts

- [Better Rails for Agents: A New Remote MCP and Railway Agent in the CLI](https://swe.quest/articles/better-rails-for-agents-a-new-remote-mcp-and-railway-agent-in-the-cli-4b9abaf62a02f3cd.md): Railway · 2026-04-17 · Medium · 13 min read · AI agents, API design, Developer tools, TypeScript
  Railway shipped a remote MCP server at mcp.railway.com, which connects to MCP clients over OAuth with no local install, and a new \`railway agent\` CLI command for interactive, scripted or CI use with JSON output.
- [Is MCP good yet?](https://swe.quest/articles/is-mcp-good-yet-c41ace4de474f361.md): Neon · 2026-11-04 · Medium · 9 min read · AI agents, API design, Serverless, LLMs
  Neon's remote MCP server now handles more tool calls than its CLI runs commands and has about twice the CLI's daily active users.
- [Bringing MCP to the Cloud](https://swe.quest/articles/bringing-mcp-to-the-cloud-de1944b558e43ff0.md): Neon · 2025-04-11 · Medium · 8 min read · AI agents, Identity & auth, API design, JavaScript
  Neon moved its MCP server from a locally spawned stdio process authenticated by a long-lived API key to a hosted server at mcp.neon.tech, using SSE for server-to-client messages and HTTP POST to a /messages endpoint routed by an in-memory session map.
- [Unreal MCP now speaks Sentry](https://swe.quest/articles/unreal-mcp-now-speaks-sentry-404394eced53e898.md): Sentry · 2026-10-06 · Medium · 7 min read · AI agents, Games, Observability, Developer tools
  Unreal Engine 5.8 adds an experimental in-editor MCP server, and Sentry's Unreal plugin (1.24.0+) registers its own tools and agent skills so coding agents like Claude Code, Cursor or Codex can configure the DSN, enable debug symbol upload, instrument tracing/logs/metrics and debug captured crashes.
- [Solving the MCP Authentication Headache with Vercel & Better Auth](https://swe.quest/articles/solving-the-mcp-authentication-headache-with-vercel-better-auth-749640ed1439e99c.md): Neon · 2025-05-23 · Medium · 5 min read · Identity & auth, AI agents, TypeScript
  Remote MCP servers can authenticate users with OAuth instead of plaintext bearer tokens or UUIDs stored in a client's mcp.json, using Better Auth's MCP plugin together with Vercel's @vercel/mcp-adapter in a Next.js app.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
