Repository navigation
feat(cli): add local MCP server command - #1401
Open
MathurAditya724 wants to merge 10 commits into
Open
MathurAditya724 wants to merge 10 commits into
MathurAditya724 wants to merge 10 commits into
@sentry/warden / warden
completed
Oct 7, 2026 in 0s
3 issues
Medium
Interactive MCP auth logs into env host, not --host target - `apps/cli-docs/src/content/docs/contributing.md:93-123`
In a TTY, sentry mcp --host=<other> with no usable session runs OAuth against resolveEffectiveLoginHost() (env/default SaaS), stores those credentials, then fails host-scope checks for the MCP target.
CLI MCP refresh leaves later tool calls using the rejected token - `packages/mcp-server/src/index.ts:432-437`
After an upstream 401, the CLI refreshes the credential, but the server’s tool handlers retain a copied accessToken. Subsequent tool calls continue using the rejected token and fail until the server restarts.
Low
Windows prepare-e2e-bundle spawn fails without shell:true - `packages/cli/script/prepare-e2e-bundle.ts:3-10`
spawn('pnpm.cmd', …) without shell: true cannot run .cmd shims on Windows, so pnpm test:e2e fails at bundle prep with ENOENT instead of building the e2e bundle.
3 skills analyzed
| Skill | Findings | Duration | Cost |
|---|---|---|---|
| security-review | 0 | 4m 4s | $2.17 |
| mcp-audit | 0 | 3m 53s | $0.30 |
| code-review | 3 | 14m 47s | $7.40 |
⏱ 22m 45s · 15.0M in / 229.2k out · $9.88
Loading