feat(dev): Add sentry local workflows - #1194
Draft
sentry-junior[bot] wants to merge 2 commits into
Draft
Conversation
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 on lines
+223
to
224
|
|
||
| ### Tests |
There was a problem hiding this comment.
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.jsondefinesdev:stdioasturbo dev --filter=!@sentry/mcp-cloudflare. @sentry/mcp-server'sdevscript istsdown --watch, a TypeScript bundler watcher.@sentry/mcp-server-evals'sdevscript istsc -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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add first-class
sentry localworkflows 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:localandpnpm dev:stdio:localwrap the existing commands withsentry local run, while the original commands remain available when local telemetry is not needed.Cloudflare and browser telemetry
The Worker forwards
SENTRY_SPOTLIGHTinto its SDK configuration, and the Vite client consumes the CLI-injectedVITE_SENTRY_SPOTLIGHTvalue. Both variables pass through Turborepo.Fix-up
mainpnpm-lock.yamlso it only addssentry@0.38.0(the previous lockfile accidentally upgradedaiand brokemcp-server-evalsToolSet typing)Checks
pnpm run tscpnpm run lintpnpm run testvitestforpackages/mcp-cloudflare/src/server/sentry.config.test.tsRequested by David Cramer via Junior.
--
View Junior Session