Skip to content

feat(dev): Add sentry local workflows - #1194

Draft
sentry-junior[bot] wants to merge 2 commits into
mainfrom
junior/sentry-local-dev
Draft

feat(dev): Add sentry local workflows#1194
sentry-junior[bot] wants to merge 2 commits into
mainfrom
junior/sentry-local-dev

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Add first-class sentry local workflows for Cloudflare HTTP and Node.js stdio development. Local telemetry now reaches the Worker, browser client, and stdio SDK without developers manually coordinating Spotlight environment variables.

Local development commands

pnpm dev:local and pnpm dev:stdio:local wrap the existing commands with sentry local run, while the original commands remain available when local telemetry is not needed.

Cloudflare and browser telemetry

The Worker forwards SENTRY_SPOTLIGHT into its SDK configuration, and the Vite client consumes the CLI-injected VITE_SENTRY_SPOTLIGHT value. Both variables pass through Turborepo.

Fix-up

  • Merged latest main
  • Regenerated pnpm-lock.yaml so it only adds sentry@0.38.0 (the previous lockfile accidentally upgraded ai and broke mcp-server-evals ToolSet typing)

Checks

  • pnpm run tsc
  • pnpm run lint
  • pnpm run test
  • vitest for packages/mcp-cloudflare/src/server/sentry.config.test.ts

Requested by David Cramer via Junior.

--

View Junior Session

sentry-junior Bot and others added 2 commits July 28, 2026 01:21
Co-Authored-By: David Cramer <david@sentry.io>
Resolve the main conflict by keeping main's lockfile and re-adding only
the sentry CLI dependency. This avoids the accidental ai package upgrade
that broke ToolSet typing in mcp-server-evals.

Co-Authored-By: David Cramer <david@sentry.io>
Comment thread README.md
Comment on lines +223 to 224

### Tests

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README instructs connecting MCP client to non-running stdio process

pnpm dev:stdio:local runs build watchers rather than the stdio server, so developers following the README cannot connect an MCP client to it.

Evidence
  • Root package.json defines dev:stdio as turbo dev --filter=!@sentry/mcp-cloudflare.
  • @sentry/mcp-server's dev script is tsdown --watch, a TypeScript bundler watcher.
  • @sentry/mcp-server-evals's dev script is tsc -w, a compiler watcher.
  • None of these scripts start or maintain a runnable MCP stdio server process.
  • The actual stdio server command is pnpm start:stdio (tsx src/index.ts).

Identified by Warden · code-review · WME-8PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants