Skip to content
Hidden Logic Lab

Official Sentry MCP 0.51.0 grants every active skill on the default local sentry mcp path and pre-checks triage and project-management writes on a first hosted OAuth consent, even though those write skills are marked not default-enabled in the skill catalog, and write tools such as update_issue and delete_alert_rule have no server-side confirmation gates.

Published

The official Sentry MCP is a first-party Model Context Protocol server that lets a connected AI client search errors, inspect issues, traces, logs, replays, and monitors, run Seer analysis, triage issues, and manage projects, teams, DSNs, monitors, and alert rules. Publisher: Functional Software, Inc. dba Sentry (getsentry). The public source of truth is getsentry/toolkit. Official product documentation is at docs.sentry.io/product/sentry-mcp, the hosted landing page is mcp.sentry.dev, and the CLI documentation is at cli.sentry.dev. The license is the Functional Source License, Version 1.1, Apache 2.0 Future License. The repository root LICENSE.md and the sentry npm package use the SPDX abbreviation FSL-1.1-Apache-2.0. The @sentry/mcp-server package, and several workspace packages such as @sentry/mcp-core, declare FSL-1.1-ALv2, an alternate label for the same license family. The grant is not OSI-approved open source in the usual sense: it permits internal use, non-commercial education and research, and professional services to a licensee, and it excludes Competing Use, with a future Apache-2.0 conversion.

Operators meet this product on three paths that share tool code in @sentry/mcp-core but do not share the same default authorization story.

  1. The hosted remote server at https://mcp.sentry.dev/mcp, optionally scoped as /mcp/{organizationSlug} or /mcp/{organizationSlug}/{projectSlug}, with ?experimental=1 to enable experimental tools. Official docs say all hosted connections use OAuth, and that a first connection triggers an authentication flow. Public source for that Cloudflare Worker is packages/mcp-cloudflare. There is also a documented direct-token mode that sends Authorization: Sentry-Bearer <sentry_api_token> and bypasses MCP OAuth.
  2. The supported local path: the official Sentry CLI's sentry mcp command, which serves the same tools over stdio. Official docs and the repository README recommend this over the standalone npm package. The CLI also installs with Homebrew (getsentry/tools/sentry), npm install -g sentry, or the documented curl / PowerShell installers.
  3. The legacy npm package @sentry/mcp-server, whose bin is sentry-mcp (dist/sentry-mcp.cjs). Official docs still describe it as the way to run the server without installing the CLI, for clients that launch it through npx. The package is not marked deprecated on the npm registry. Its own README tells operators to prefer sentry mcp.

This review is a static review of a pinned published artifact, not of git HEAD in the abstract and not of whatever build is currently serving https://mcp.sentry.dev. At research time on 29 November 2026, Asia/Hong_Kong, npm latest for both sentry and @sentry/mcp-server was 0.51.0, matching git tag cli@0.51.0 at commit 9d0f81d55df6e3074ce7b86c76d348f6e82462f9. We cloned that commit, read first-party source and official docs, downloaded the official npm tarballs and the matching GitHub Release assets, and checked hashes. We did not run the MCP server, sentry mcp, npx @sentry/mcp-server, postinstall hooks, the curl https://cli.sentry.dev/install | bash or irm installers, or the native CLI binaries. We did not log into Sentry, use or place a Sentry token or DSN, or connect to https://mcp.sentry.dev/mcp as an authenticated client. Claims about the hosted service come only from official public documentation and from source that ships in this public repository. We cannot see private production-only Worker code, and we cannot prove that the deployed Worker is this commit: origin/main was already 60 commits ahead of cli@0.51.0 at research time, including later MCP changes.

What we pinned

  • Git tag cli@0.51.0, a lightweight tag (git cat-file -t is commit) pointing at 9d0f81d55df6e3074ce7b86c76d348f6e82462f9 (release: 0.51.0). The tag is not annotated and carries no tag signature. The commit is authored and committed by sentry-junior[bot]. Author and commit date: 25 November 2026, 01:40:12 Asia/Hong_Kong (24 November 2026, 17:40:12 UTC). git verify-commit reported no signature (N). The parent is b3f13d8acc042258675a18a4f15d004f978c753e (feat(mcp): search_attributes full tool and subagent evals (#2244)), which is GitHub-committed; we did not treat a merge signature on the parent as a signature of the release commit.
  • GitHub Release cli@0.51.0 (releases/tag/cli@0.51.0), published 25 November 2026, 02:14:26 Asia/Hong_Kong (24 November 2026, 18:14:26 UTC), target_commitish 9d0f81d55df6e3074ce7b86c76d348f6e82462f9. The release is marked immutable. Its asset list includes the npm tarballs, platform binaries, and the install / install.ps1 scripts, each with a GitHub-provided sha256 digest.
  • npm sentry@0.51.0, the latest dist-tag at research time, published 25 November 2026, 01:55:41 Asia/Hong_Kong (24 November 2026, 17:55:41 UTC) by sentry-bot. License FSL-1.1-Apache-2.0. Bin: sentry → dist/bin.cjs. Engines: node >=20.0. No gitHead field, no SLSA/npm provenance attestations, no deprecated flag. The package has no runtime dependencies; it is a published bundle. It has no install / postinstall scripts. Registry metadata includes npm ECDSA signatures under key id SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U. We recorded those signatures and did not independently verify them. Downloaded tarball: sha1 bb9049430d7d1ef5c120e4a9472218d64c3283dd, sha256 6d8d3828d01de10f0d2dbd4b65e1aadf1835127d9c15c9860e2c05529f441c16, integrity sha512-yN0YWR+16DgMpBcJgTQmdEXl+/fn++m19TV7ONBUwWIHsy5BsMLH7bjwa3N5dBSPOqfsjV8lq67cPMjxISNPYg==. That sha256 matches the GitHub Release asset sentry-0.51.0.tgz, and the npm tarball is byte-identical to the GitHub copy.
  • npm @sentry/mcp-server@0.51.0, also latest, published 25 November 2026, 01:53:42 Asia/Hong_Kong (24 November 2026, 17:53:42 UTC) by sentry-bot. License FSL-1.1-ALv2. Bin: sentry-mcp → dist/sentry-mcp.cjs. Engines: node >=22.15. Same provenance gaps as sentry: no gitHead, no attestations, not deprecated, no runtime dependencies, no install hooks. The tarball contains three files: package.json, README.md, and a 3,912,854-byte dist/sentry-mcp.cjs bundle. Downloaded tarball: sha1 4c3000bb06731618eac1e979fe842a2f2f3aacd4, sha256 ffdd2e28bf61de75fbf2ee4f5e4104108c19877665c707fa29367d8b1e9d5a7c, integrity sha512-eVye4oOZC4VnwFhs/13cWNn41HG/7UCfQ/8U9h8PtvMvKc7G7+P6DnqXM6NmtpA/SJ1+Xjqe72gHCPWPMsV5aA==. That sha256 matches the GitHub Release asset sentry-mcp-server-0.51.0.tgz, and the npm tarball is byte-identical to the GitHub copy.
  • Homebrew formula getsentry/tools/sentry at commit b1ae2560ead14b9761b0a5ff5704b72eb41714c0 (release: sentry 0.51.0, 25 November 2026, 02:14:50 Asia/Hong_Kong). It pins version 0.51.0 and the GitHub .gz assets with the same sha256 digests published on the Release, including sentry-linux-x64.gz 6a29c3f4147f213e276003927a30d05cbb64dd5ee9d87b487debc38df9354b80. We downloaded that linux-x64 gzip and confirmed the digest. We did not unpack it into a runnable binary for execution, and we did not verify Apple code signatures on the darwin assets (the pin's cli-build.yml workflow does run rcodesign verify for darwin).
  • The current installers at https://cli.sentry.dev/install and https://cli.sentry.dev/install.ps1, fetched at research time, were byte-identical to the Release assets install (sha256 383ddcd53c34ff9bd435aed029080b1a1c697bf8d2972068a1947745e5172ace) and install.ps1 (sha256 be5cb39f34e7a77a0b7e38de53669b2b5600aaebf85adfcb29e175d6a225c2cb). We read those scripts and did not execute them. The unpinned installer resolves “latest stable” from Sentry’s release registry, then downloads a GitHub Release asset and, when sha256sum or shasum is available, verifies it.

Workspace package versions inside this pin are not all 0.51.0. packages/cli and packages/mcp-server are 0.51.0. @sentry/mcp-core, @sentry/mcp-cloudflare, and several MCP test packages still declare 0.42.0 in their package.json; @sentry/mcp-core is private and is not what operators install. The repository-root MCP Registry manifest server.json still says version 0.40.0 and still lists @sentry/mcp-server at 0.40.0. That manifest is stale relative to the packages this tag actually ships. @sentry/mcp-core's package.json also still names https://github.com/getsentry/sentry-mcp as its homepage; that URL now redirects to getsentry/toolkit.

origin/main at research time was 57ce2e0fd0dfcfb06065f0b85c1d46402b14fb1c (28 November 2026, 09:32:08 Asia/Hong_Kong). A later tag http@1.0.0 (d7de7cd531e84024002803fd56137a3b3b16e3d0, 27 November 2026) is an @sentry/http workspace release, not a new CLI or @sentry/mcp-server release. Among the commits after cli@0.51.0 are MCP changes such as removing the search_attributes experimental flag, listing related issues from get_issue_details outside experimental mode, and OAuth CIMD error-handling fixes. Those are not in this pin. Do not treat HEAD, http@1.0.0, or the live Worker as 0.51.0.

Scope

This review covers the official Sentry MCP as operators are told to use it: the hosted remote URL, the local sentry mcp CLI path, and the still-published @sentry/mcp-server package. The first-party tool catalog, skill system, OAuth approval dialog, stdio defaults, credential storage, telemetry opt-outs, and documented org/project scoping are in scope.

Out of scope, because we did not run the software and cannot see private production state: runtime behavior of any tool, OAuth against a live account, the exact Worker build currently deployed at mcp.sentry.dev, third-party implementations (@sentry/api, the Cloudflare OAuth provider, LLM SDKs, the compiled native CLI binary), and a rebuild of the published JavaScript bundles from TypeScript. The independent Docs MCP Worker under apps/docs-mcp is a separate product and is not this review.

Verdict

The most important default in this pin is not a hidden backdoor. It is an authorization mismatch that official docs and example configs walk operators into.

The skill catalog in packages/mcp-core/src/skills.ts and skillDefinitions.json marks inspect and seer as defaultEnabled: true, and it marks triage (“Resolve, assign, and update issues”) and project-management (“Create and modify projects, teams, DSNs, cron monitors and their environments, uptime monitors, metric monitors, and alert rules”) as defaultEnabled: false. That catalog is not what the recommended local command does. packages/cli/src/lib/mcp/config.ts says, in so many words, that stdio “intentionally grants every active skill when --skills is absent, so a local server works without extra configuration.” Active skills are every non-deprecated skill: inspect, seer, triage, and project-management. Official CLI docs for sentry mcp repeat that default. The documented MCP client snippet is {"command": "sentry", "args": ["mcp"]}, with no --skills flag and no org/project target.

On that default path, 0.51.0 also lists every granted tool directly in tools/list. packages/mcp-core/src/tools/exposure.ts sets EXPOSE_ALL_TOOLS to true, so the older search_sentry_tools / execute_sentry_tool gateway is not registered. A client that auto-approves tools, or whose user does not scrutinize a long catalog, sees write and destructive tools in the same list as the read tools. Those writes include update_issue (resolve, ignore/archive, reopen, assign, change priority), add_issue_note, unlink_issue, create_dsn, update_dsn, create_project, update_project, create_team, delete_alert_rule, delete_uptime_monitor, delete_metric_monitor, and the other project-management create/update/delete tools named below. None of those handlers implement MCP elicitation or any other server-side confirmation gate. The tool annotations (readOnlyHint, destructiveHint) exist for a client to use; the server will not prompt on its own.

The hosted OAuth path is better only in that it shows a consent screen. It is not conservative by default. renderApprovalDialog in packages/mcp-cloudflare/src/server/lib/approval-dialog.ts pre-checks every approvable skill when no remembered-skill cookie is present. getRememberedSkillsForClient returns undefined on a first visit. A first-party test in this pin is named “selects all approvable skills when no remembered defaults are provided.” An operator who clicks through the pre-checked form grants triage and project-management even though those skills are marked not default-enabled in the catalog. Upstream, the Worker always requests a broad Sentry OAuth scope set from packages/mcp-core/src/scopes.ts: org:read project:write team:write event:write alerts:write. Skills are supposed to narrow what the MCP client can actually call. A first-time “accept the defaults” click does not narrow the write skills away.

Direct Sentry-Bearer sessions, and the README's “Remote with an Explicit Sentry Token” example, default to all active skills with no consent screen. Official docs say those sessions can be narrowed with ?skills= or ?disable-skills=.

This is a static review. We did not watch a client call update_issue. We did not find malware in the first-party scope we opened. We also did not get a clean bill of health. Anyone who installs the documented local default, or who accepts a first OAuth consent without unchecking write skills, should assume the connected agent can triage issues and change project configuration to the limit of the underlying Sentry credential.

Architecture and trust boundaries

The toolkit repository is a monorepo. Shared MCP tool logic lives in packages/mcp-core. The local stdio server is started by packages/cli/src/commands/mcp.ts, which loads packages/cli/src/lib/mcp/server.ts only when the server actually starts, and then calls buildServer() from mcp-core. @sentry/mcp-server is a single-file bundle of that same stdio server plus a small application of CLI commands (mcp, auth, cli defaults, cli fix, and help) so an npx client can log in without the rest of the CLI. The hosted path is a Cloudflare Worker in packages/mcp-cloudflare that also calls buildServer().

Those three entrypoints are not one trust boundary.

On the hosted OAuth path, official security documentation (docs/operations/security.md) describes two tokens. The MCP client receives a downstream MCP access token issued by @cloudflare/workers-oauth-provider. The Worker stores the upstream Sentry access and refresh tokens in encrypted grant props and uses them only server-side to call the Sentry API. The client is not supposed to see the raw Sentry token. Optional URL constraints from /mcp/{org} or /mcp/{org}/{project} are stored on the grant and, according to that documentation, cannot be widened by presenting the same token to a broader path. verifyConstraintsAccess in packages/mcp-cloudflare/src/server/lib/constraint-utils.ts checks that the user can see the named org or project before the session is built. Tool input schemas then drop constrained parameters, and handlers inject the stored org/project. Discovery tools such as find_organizations and find_projects are hidden when the corresponding constraint is set; create_project is hidden when a project constraint is already set.

The same document is explicit about a limitation of that narrowing: the upstream Sentry token is still the broad shared scope set, because “a single upstream token must support every tool that could be enabled for the granted MCP skills.” Skills, not Sentry scopes, are the primary MCP-side authorization mechanism in this pin. grantedScopes still exists on tokens for older clients and is described as transitional; a comment in the security doc still says it “will be removed Jan 1, 2026,” which is in the past relative to this review. We did not inspect a live grant to see whether that removal has happened in production.

Direct Sentry-Bearer mode is a different boundary. The Worker does not store, validate, exchange, or refresh the token. It forwards it as the upstream Sentry API credential. Bearer is reserved for MCP OAuth access tokens; Sentry-Bearer is intentionally distinct. Token lifetime and revocation stay with the caller. Default skill grant, as noted, is all active skills.

The local stdio path has no MCP OAuth layer at all. docs/operations/stdio-auth.md describes credential resolution as the CLI's own, with one difference: an environment token wins over a stored login, as if SENTRY_FORCE_ENV_TOKEN=1 were set. In order, that is SENTRY_AUTH_TOKEN (or legacy SENTRY_TOKEN), then the stored sentry auth login session. A repo-local .sentryclirc [auth] token is not forced over a stored login. --access-token and SENTRY_ACCESS_TOKEN still work as a deprecated alias for SENTRY_AUTH_TOKEN and print a warning on stderr. Org auth tokens (sntrys_) are host-scoped; the server refuses to send one to a different host. When a tool call gets a 401, the server forces a refresh of a stored login; an env token is never refreshed, only re-read. Official install docs say the MCP client config needs no token once the CLI is logged in. That is convenient, and it also means a long-lived sentry mcp process speaks with whatever account sentry auth login last stored, including write-capable sessions, unless the operator narrows skills or uses a narrower token.

Self-hosted Sentry is a first-class stdio target: sentry auth login --url https://sentry.example.com, then SENTRY_HOST or an http:// SENTRY_URL in the MCP environment. Seer is left out of the implicit stdio default on a non-sentry.io host, because it is a sentry.io service; --skills=seer or --all-skills opt back in. The hosted Worker reviewed here is the sentry.io deployment; this pin is not a self-hosted remote MCP.

There is a fourth data path that is easy to miss. AI-powered search tools (search_errors, search_logs, search_traces, search_metrics, search_profiles, search_replays, search_issues, search_issue_events, and, in experimental mode, search_attributes) can send natural-language queries through an embedded agent to OpenAI, Azure OpenAI, Anthropic, or OpenRouter when the operator configures those keys, and some of them first try Seer's search agent when org rollout flags allow it. Official docs say that without a configured provider those specific tools are unavailable and the rest of the catalog still works. analyze_issue_with_seer is a different write-adjacent path: it starts or reads Seer autofix analysis on an issue and is annotated readOnlyHint: false. Issue titles, event context, and operator “instruction” text can leave the operator's machine or the Worker toward those providers. We did not observe that traffic.

SSRF protections in mcp-core restrict regionUrl to the base host or to sentry.io, us.sentry.io, and de.sentry.io, and require HTTPS. First-party tests in this pin also document a prior path-traversal class (VULN-2159, VULN-2174, VULN-2450, VULN-2482): unencoded resource IDs interpolated into REST paths could, according to those tests, let ../ segments rewrite a request above the constrained org and project and reach another tenant with the granting user's credential. The pin requires request paths in packages/mcp-core/src/api-client/client.ts to go through an apiPath tagged template imported from @sentry/api/client, and path-traversal.test.ts drives several tools through the same constraint-injection pipeline the server uses. We did not run those tests, and we did not independently audit the @sentry/api implementation of apiPath. Treat the tests as evidence that the maintainers found and tried to close this class, not as a runtime proof.

Tools and defaults

packages/mcp-core/src/tools/catalog in this pin defines 78 catalog tools. With EXPOSE_ALL_TOOLS set, deprecated tools stay out of tools/list (the legacy multi-dataset search_events is in that state, replaced by the dataset-specific search_* tools). search_attributes is marked experimental: true and appears only when sentry mcp --experimental or ?experimental=1 is set. submit_feedback_to_sentry_team is hidden unless the process has a Sentry SDK DSN. The gateway tools search_sentry_tools and execute_sentry_tool are not registered on this default surface.

Skills decide what remains. inspect is the large read surface: issues, events, traces, logs, replays, releases, cron/uptime/metric monitors, profiles, documentation (search_docs, get_doc), charts, snapshots, and attachments. seer adds analyze_issue_with_seer and also includes several inspect tools that list seer among their skills. docs is a deprecated legacy grant; documentation tools are already on inspect. triage adds issue mutation. project-management adds project, team, DSN, monitor, and alert-rule mutation. Foundational tools (whoami, find_organizations, find_projects, get_sentry_mcp_info, plus onboarding_status_update and submit_feedback_to_sentry_team) list ALL_SKILLS, so any granted skill enables them.

Write tools in this pin, with their skill and the annotations declared in source, are:

  • update_issue (triage, destructiveHint: true): resolve, ignore/archive (including duration and occurrence conditions), reopen, assign to a user or team, change priority, optionally tie resolution to a release or commit.
  • add_issue_note (triage).
  • link_issue (triage) and unlink_issue (triage, destructiveHint: true).
  • create_project, update_project (destructiveHint: true), create_team, add_team_to_project, remove_team_from_project (destructiveHint: true).
  • create_dsn and update_dsn (destructiveHint: true). find_dsns, the read counterpart that returns public DSN strings, is also locked to project-management.
  • create_alert_rule, update_alert_rule (destructiveHint: true), delete_alert_rule (destructiveHint: true).
  • create_monitor, delete_monitor_environment (destructiveHint: true).
  • create_uptime_monitor, update_uptime_monitor (destructiveHint: true), delete_uptime_monitor (destructiveHint: true).
  • create_metric_monitor, update_metric_monitor (destructiveHint: true), delete_metric_monitor (destructiveHint: true).
  • analyze_issue_with_seer (seer, not marked destructive, but not read-only): starts or returns Seer analysis.
  • onboarding_status_update (ALL_SKILLS): reports progress to Sentry's agentic onboarding UI using a run token from the getting-started skill. It is omitted from generated skill prompts (includeInSkillDefinitions: false) but is still registered when any skill is granted.
  • submit_feedback_to_sentry_team (ALL_SKILLS), only when a telemetry DSN is present.

No handler we opened calls an elicitation API or waits for a confirmation token. A comment on the annotation type in packages/mcp-core/src/tools/types.ts says “Filters and confirmation gates rely on these; an undefined hint is a silent gap.” Those gates, if they exist, are in the MCP client, not in this server.

The stdio default, again, grants every active skill on sentry.io, so the write list above is in tools/list unless the operator passes --skills, --disable-skills, or --all-skills combined with later removals. --skills and --all-skills cannot be combined. Disabling every skill is rejected. On self-hosted stdio, seer is dropped from that implicit set. Official examples that show --skills inspect,triage are already a narrower grant than the unadorned default, and they still include issue mutation.

Hosted OAuth lets the user uncheck skills, and later visits can preselect remembered skills from a signed mcp-skill-preferences cookie (HttpOnly, Secure, SameSite=Lax, one-year max age, ten-client LRU). The first visit still pre-checks the write skills. Direct token mode has no such screen.

?experimental=1 / --experimental is a second switch. In this pin it primarily adds search_attributes. Later commits on main remove that experimental flag; a hosted Worker newer than this pin may already expose that tool in ordinary sessions. We cannot tell from this static review.

Malware check

We inspected first-party TypeScript in the pinned commit, the @sentry/mcp-server@0.51.0 bundle, and the published sentry@0.51.0 package metadata and file list. We also checked hashes of official Release assets we actually downloaded.

We did not find a postinstall or install hook in either npm package. We did not find a tool handler that executes a user-supplied shell command. Official security documentation states that tools do not execute user-provided commands. The @sentry/mcp-server bundle does reference child_process; the contexts we sampled are Sentry SDK process instrumentation and the CLI code that this package also ships for auth and cli subcommands, not an MCP tool that interpolates a Sentry issue id into a shell. We did not find obvious dropper, miner, or credential-exfiltration patterns in a static string pass over that bundle. That pass is not a disassembly, and it is not coverage of native code.

The official curl | bash installer, which we read and did not run, downloads a GitHub Release binary, verifies sha256 when a checksum tool exists (and prints a warning and continues if it does not), then execs sentry cli setup. It can also report installer errors to a Sentry envelope endpoint using a write-only DSN hard-coded in the script, unless SENTRY_CLI_NO_TELEMETRY=1 is set. Unpinned curl | bash is still the first install command on official MCP and CLI pages. The installer can install “nightly” if asked. A careful pin uses an explicit version and a recorded digest.

No malware was found in the first-party scope we opened. This is not a clean bill of health. We did not run the server, the installer, or the native binaries. We did not audit third-party JavaScript inside the bundles, and we did not reverse the 35 MB sentry-linux-x64.gz beyond verifying its digest.

Permissions and data access

Authorization is layered, and the layers are easy to confuse.

MCP skills control which tools are registered. They do not shrink the Sentry token that stdio already loaded, and they do not shrink the upstream OAuth token the hosted Worker requested. A session with only inspect still presents a credential that may be able to write, if that credential has write scopes; the write tools are simply not registered. The reverse is also true: granting triage or project-management does not invent scopes the token lacks. Sentry's own API will still reject a read-only user token. withAlertWritePermissionHint exists because some alert and metric-monitor writes return a bare 403 unless the token has alerts:write and the user can edit the connected projects; all-projects alerts also need org:write.

Default recommended token scopes in the repository README, for operators who mint a User Auth Token instead of using auth login, are org:read, project:read, project:write, team:read, team:write, and event:write. That list already includes write scopes. It is a poor default if the intent is a read-only assistant. A narrower token with only the DEFAULT_SCOPES in packages/mcp-core/src/constants.ts (org:read, project:read, team:read, event:read) is the better match for an inspect-only skill grant, and even that still exposes whatever those read scopes can see.

inspect is not a small surface. It can list and download event attachments (get_event_attachment), including screenshots, logs, and minidumps, either inline or as a short-lived presigned “no authentication needed” URL when the attachment is too large. It can read session replay details, issue user reports, breadcrumbs, stack traces, profiles, and agent conversation details. An org-scoped or unscoped session with a broad personal login can see every project that user can see. Official docs recommend scoping to a project when possible, and they are right.

find_dsns and create_dsn return the public DSN string an SDK uses to send events. That value is designed to be used in clients, but it is still a credential for event ingest into that project. Both tools sit behind project-management, which the local default grants.

Org and project constraints, when they are actually configured, are one of the stronger controls in this design. sentry mcp acme/web or https://mcp.sentry.dev/mcp/acme/web injects that scope into every call and hides unnecessary discovery tools. A bare acme is refused on the CLI; the org form is acme/. A target and a conflicting --org / --project flag are an error. Constraints are not the default in official “just run sentry mcp” snippets.

Network, file, credential, and telemetry risks

Network destinations for a default local server are the configured Sentry host (sentry.io unless SENTRY_HOST / SENTRY_URL says otherwise), the allowed SaaS region domains, and, if the operator has configured LLM keys, the chosen provider. The hosted Worker additionally talks to Sentry's OAuth endpoints, stores grants in Cloudflare KV, and has its own Sentry telemetry when VITE_SENTRY_DSN is set. Docs search on the hosted path can reach Sentry documentation infrastructure; search-docs later received an AutoRAG retry fix after this pin.

The stdio server does not write event attachments to the local filesystem as part of get_event_attachment. It returns content to the MCP client, or instructions and URLs. The CLI around it does write a credential and cache database. Official CLI documentation and packages/cli/src/lib/env-registry.ts say credentials live in $XDG_CONFIG_HOME/sentry/ (default ~/.config/sentry/), overridable with SENTRY_CONFIG_DIR, with a legacy ~/.sentry/ directory still honored if it already contains cli.db. The database and its WAL/SHM files are created with mode 0600, and the config directory with mode 0700. @sentry/mcp-server shares that store: npx -y @sentry/mcp-server auth login and sentry auth login are the same login. A .sentryclirc in a repository, or ~/.sentryclirc, can still supply org and token values for other CLI commands; stdio's env-token-wins rule is the special case.

Stdio telemetry is on by default and goes to the CLI's own Sentry project. TELEMETRY.md and packages/cli/src/lib/telemetry.ts say SENTRY_CLI_NO_TELEMETRY=1 or DO_NOT_TRACK=1 turn it off, as does a stored “telemetry” preference in cli.db. The MCP server uses that same opt-out; there is no separate MCP-only telemetry flag. Attribute notes in TELEMETRY.md include gen_ai.tool.call.arguments.<key> and, for some paths, gen_ai.tool.call.result as the full JSON tool result on spans, described as high-cardinality and intended for targeted inspection. The document also says not to log secrets and that authorization headers and access tokens must remain scrubbed. We did not inspect live telemetry payloads.

The mcp-url flag / MCP_URL environment variable is the MCP server URL reported in telemetry, not a second upstream API.

If an operator puts OPENAI_API_KEY or another provider key in the MCP client's env block so natural-language search works, that key and the queries it sees are now part of the MCP process environment. Auto-detection of the provider from whatever key happens to be set is deprecated in this pin but still present; official docs tell operators to set EMBEDDED_AGENT_PROVIDER explicitly, and the server errors if multiple keys are set without that choice.

Who it is for (and who should not use the default/write path)

This server is for teams that already trust Sentry with their error data and want a coding agent to inspect that data, optionally to triage issues, and optionally to stand up projects, DSNs, monitors, and alert rules. The skill system, org/project URL constraints, and the hosted consent screen are built for that job. An operator who wants a read-only assistant, who is willing to uncheck or omit write skills, and who will pin the CLI or package version, can use it in that shape.

The documented defaults are the wrong shape for a read-only assistant, for a shared machine, or for an MCP client that auto-approves every tool. Do not point an unattended agent at sentry mcp with a personal login that can write, and do not accept a first hosted OAuth consent without looking at the pre-checked boxes. Do not paste a privileged User Auth Token into a Sentry-Bearer header, or into SENTRY_AUTH_TOKEN, without also narrowing skills. Do not treat @sentry/mcp-server@latest as a pin, and do not treat the hosted endpoint as this git commit.

Self-hosted operators should remember that Seer is off the implicit stdio default for a reason, that some SaaS-only features will not exist, and that a plain http:// SENTRY_URL is a deliberate choice for isolated internal deployments, not something to aim at a network they do not trust.

How a careful operator would pin and restrict it

These steps reduce risk. They do not make the server “safe,” and they are not a substitute for runtime review.

  1. Pin an artifact you can hash. Prefer the GitHub Release cli@0.51.0 or npm install -g sentry@0.51.0 / npx @sentry/mcp-server@0.51.0, and compare sha256 to the digests in this review. Homebrew at the formula above already pins 0.51.0 and those digests. If you use the official installer, pass an explicit version (for example --version 0.51.0 or SENTRY_VERSION=0.51.0) and keep sha256sum available; do not pipe an unpinned curl into bash as a standing procedure, and do not install nightly for a production assistant.
  2. Prefer a least-privilege credential. For a read-only assistant, mint a User Auth Token with read scopes only, set it as SENTRY_AUTH_TOKEN in the MCP client environment so it wins over a stored login, and do not reuse a personal sentry auth login session that can write. For hosted OAuth, uncheck triage and project-management on the consent screen before approving, including the first time, when those boxes are pre-checked.
  3. Narrow skills in the server config, not only in the client UI. For local stdio, start from sentry mcp --skills inspect (add seer only if you want analyze_issue_with_seer). Equivalent environment: MCP_SKILLS=inspect. For direct hosted token mode, add ?skills=inspect rather than accepting the all-active default.
  4. Scope to one project when you can: sentry mcp my-org/my-project, or https://mcp.sentry.dev/mcp/my-org/my-project. Official docs recommend this. Do not leave the unscoped /mcp URL or a bare sentry mcp as the standing config if a single project is enough.
  5. Leave --experimental and ?experimental=1 off unless you intend to take forward-looking tools, and remember that the experimental set in this pin may not match a newer hosted Worker.
  6. Do not put LLM provider keys in the MCP environment unless you accept sending search queries, and whatever context those agents attach, to that provider. If you do, set EMBEDDED_AGENT_PROVIDER explicitly.
  7. Turn off CLI telemetry if that is a requirement: SENTRY_CLI_NO_TELEMETRY=1 or DO_NOT_TRACK=1. Review the client's tool-approval settings; this server will not prompt on writes. Do not run an untrusted MCP client against a token that can write.
  8. Treat @sentry/mcp-server as the same stdio server with a different installer, not as a safer or older product. If you use it, pin 0.51.0, log in once, and pass the same --skills and org/project target you would pass to sentry mcp.

Limits of this review

This was a static review of getsentry/toolkit at 9d0f81d55df6e3074ce7b86c76d348f6e82462f9 (tag cli@0.51.0) and of the official npm packages sentry@0.51.0 and @sentry/mcp-server@0.51.0, plus the official GitHub Release assets and installer scripts we downloaded and hashed. We read source, official docs, registry metadata, and first-party tests. We compared npm tarballs to the GitHub Release copies and verified the downloaded hashes against the registry and against the Release digests.

We did not run the server, the CLI, npx, install hooks, Docker, or either official installer. We did not log into Sentry or mcp.sentry.dev, and we used no Sentry credential. We did not rebuild dist/ from TypeScript, so we cannot independently prove that every compiled file was produced from the tagged sources, only that the GitHub Release for this tag published tarballs that match the npm latest tarballs byte-for-byte. The packages carry no gitHead and no SLSA attestations we could use as a second binding. We did not independently verify npm registry signatures, Apple code signatures, or the @sentry/api apiPath implementation. We did not audit the hosted Worker's private production configuration or the exact commit it runs.

No malware was found in that first-party scope. The skill catalog's defaultEnabled flags are not the local stdio default, and they are not the first hosted OAuth checkbox state. Write tools in this pin have no server-side confirmation gates. Official install examples disagree with a careful pin: they use unpinned curl | bash, unpinned npx @sentry/mcp-server@latest, and an unscoped sentry mcp with every active skill. We did not run the server. This is not a clean bill of health.

More skill reviews

← All skill reviews