@sentry/mcp-server 0.48.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -4
  2. package/dist/sentry-mcp.cjs +2325 -2528
  3. package/package.json +4 -5
package/README.md CHANGED
@@ -3,6 +3,21 @@
3
3
  The Sentry MCP server for stdio clients, as a single file with no runtime
4
4
  dependencies. Works with sentry.io and self-hosted Sentry.
5
5
 
6
+ > **Prefer `sentry mcp`.** The [Sentry CLI](https://cli.sentry.dev) runs the
7
+ > same server as `sentry mcp`, using your CLI login, so the MCP config needs
8
+ > no token:
9
+ >
10
+ > ```shell
11
+ > curl https://cli.sentry.dev/install -fsS | bash
12
+ > sentry auth login
13
+ > claude mcp add sentry -- sentry mcp
14
+ > ```
15
+ >
16
+ > Other clients take `{"command": "sentry", "args": ["mcp"]}`. See the
17
+ > [`sentry mcp` docs](https://cli.sentry.dev/commands/mcp/) and
18
+ > <https://mcp.sentry.dev/?transport=cli>. This package remains for clients
19
+ > that launch the server through npx.
20
+
6
21
  ```json
7
22
  {
8
23
  "command": "npx",
@@ -35,6 +50,9 @@ Requires Node.js 22.15 or later.
35
50
  - Each server process uses one account. The package runs the CLI's own
36
51
  `auth` commands, so `npx -y @sentry/mcp-server auth status|list|switch|logout`
37
52
  manages the same login.
53
+ - `npx -y @sentry/mcp-server cli defaults` and `cli fix` are the CLI's own
54
+ commands too: they set the defaults (such as `ca-cert` for a corporate TLS
55
+ proxy) and repair the local database the server shares with the CLI.
38
56
 
39
57
  ## Options
40
58
 
@@ -48,7 +66,7 @@ variables. For self-hosted Sentry, set `SENTRY_HOST` / `SENTRY_URL` (with
48
66
  ## Development
49
67
 
50
68
  The source lives in `packages/cli`: `packages/cli/src/mcp-server.ts` runs the
51
- CLI's runner with an application of three commands, `mcp`, `auth`, and
52
- `help` (`packages/cli/src/mcp-server-app.ts`). `pnpm run bundle` builds
53
- `dist/sentry-mcp.cjs` from it, and `pnpm run test:bundle` smoke-tests the
54
- result.
69
+ CLI's runner with an application of four commands, `mcp`, `auth`, `cli`
70
+ (`defaults` and `fix` only), and `help` (`packages/cli/src/mcp-server-app.ts`).
71
+ `pnpm run bundle` builds `dist/sentry-mcp.cjs` from it, and
72
+ `pnpm run test:bundle` smoke-tests the result.