sentry mcp 0.48.0: silent search fallback and stale docs

Chiusa
#2,050 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

Start with the named search entry points, packages/mcp-core/src/tools/support/search-events/seer.ts and search-issues.ts, then trace the docs and scope behavior through the MCP tools. Reproduce the reported cases with no LLM key, get_doc on ai/mcp.md, and a nonexistent organization scope. Done means the affected calls explain or handle these failures clearly; the issue leaves the intended behavior for several minor items open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Running the released [email protected] sentry mcp (npm, npx @sentry/mcp-server, and the install-script binary) over stdio against sentry.io found three problems that affect first-time setups, plus a few smaller issues. The core flows worked: startup, tools/list, real tool calls, scoping, the skills flags, and the auth error messages.

1. Natural-language search returns empty results without an LLM key

The tool descriptions say query is "natural language (preferred)". With no OPENAI_API_KEY/ANTHROPIC_API_KEY/OPENROUTER_API_KEY set, the English text is sent to Sentry as a literal search. The tools then report "No results found" and never say the query was not translated.

  • search_issues {"organizationSlug":"sentry","query":"top unresolved errors in the javascript project today"} returned 0 issues. query: "is:unresolved" on the same project returned results.
  • search_errors {"query":"most common error types in the last hour","projectSlug":"javascript"} and search_logs {"query":"error logs from the last 15 minutes"} ran the sentence as the query string (shown under "Executed Search") and returned no results.
  • For events, translateWithSeer (packages/mcp-core/src/tools/support/search-events/seer.ts) was tried first. GET /organizations/sentry/search-agent/state/{runId}/ returned 403, translateWithSeer returned null, and the raw text was used without any note in the response. It is unknown whether the 403 is specific to the test account or happens for all users without Seer access.
  • search_issues has no Seer path: in search-issues.ts, without hasAgentProvider() the query is passed through as-is.
  • The only signal is a startup warning on stderr, which MCP clients do not usually show.
2. The docs tools return a removed MCP setup page
  • search_docs {"query":"configure sentry mcp in claude code"} returns https://docs.sentry.io/ai/mcp (ai/mcp.md) as the top hit, with snippet content.
  • That page no longer exists: docs.sentry.io/ai/mcp/ redirects (308) to https://mcp.sentry.dev/, and ai/mcp.md serves "Page Not Found".
  • get_doc {"path":"ai/mcp.md"} returns the "Page Not Found" markdown with isError: false.
3. A scope naming a nonexistent org is only reported on each call
  • sentry mcp definitely-not-a-real-org-xyz/ starts normally, and whoami reports the constraint.
  • Every scoped call then fails with a generic API error (404): Not found. Please verify that the organization, project, or resource ID is correct, which does not mention the configured scope.
Minor
  • --disable-skills docs removes no tools, because search_docs/get_doc also belong to inspect. The flag is accepted without a warning.
  • --experimental removes get_profile and get_profile_details and adds search_attributes. It is not clear whether removing the profile tools is intended.
  • --access-token is listed in sentry mcp --help, while the other deprecated flags (--host, --url, --insecure-http, --organization-slug, --project-slug) are hidden.
  • With NODE_EXTRA_CA_CERTS set, npx @sentry/mcp-server auth status suggests sentry cli defaults ca-cert ..., which is not a command in that package.
  • The install script's "Get started" output does not mention sentry mcp.
  • Issue descriptions in get_sentry_resource output contain escaped URLs, such as https\://mcp.sentry.dev/....
  • tools/list is about 250 KB of compact JSON (73 tools) with EXPOSE_ALL_TOOLS on. That is heavy for clients without native tool search.
Not covered

These were not tested: real agent clients (Claude Code, Cursor, VS Code), interactive TTY login, the configured-LLM-key path, 401 and token-refresh handling, and the macOS and Windows binaries.

via @dcramer.

--

View Session [Sentry]

Lingua principale
TypeScript
Stelle
957
Fork
174
Merge medio
13h 16m
PR unite (30g)
407

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/toolkit

Tutte le issue di getsentry/toolkit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.