md exports never delete R2 objects for moved or removed pages, so MCP docs search returns dead pages
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- build-system, cloud
Direzione di ricerca
Start in scripts/generate-md-exports.mjs: uploadToCFR2 sets the bucket around line 96, existingFilesOnR2 is built at lines 697-715, and the only existing cleanup (lines 950-975) touches local cache files. Add a step that deletes R2 keys present in existingFilesOnR2 but not produced by the build, then plan a one-off cleanup of current stale keys. Done means a full build with R2 credentials leaves no bucket keys without a matching page. Confirm the AutoRAG data source with someone who has Cloudflare access first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
scripts/generate-md-exports.mjs uploads each page's markdown to the sentry-docs R2 bucket (uploadToCFR2, bucket set at :96) and lists the bucket's existing keys to skip unchanged files (:697-715). It never deletes an R2 object whose page the build no longer produces; the only cleanup removes local cache files (:950-975).
The Sentry MCP search_docs tool searches the sentry-docs AutoRAG index (getsentry/toolkit packages/mcp-cloudflare/src/server/routes/search.ts:166), which likely reads this bucket. It keeps returning pages that redirect or are gone, often as the top result:
| Search query | Top result | docs.sentry.io today |
|---|---|---|
| connect Sentry MCP server client setup | ai/mcp.md |
308 to https://mcp.sentry.dev/ |
| connect Sentry MCP server client setup | product/sentry-mcp.md |
301 to https://mcp.sentry.dev/ |
| explore metrics | product/explore/metrics.md |
soft 404 |
| uptime monitoring setup | product/uptime-monitoring.md |
soft 404 |
| seer issue fix | product/ai-in-sentry/seer/issue-fix.md |
soft 404 |
Agents then fail to fetch those pages: in the last 14 days, failed get_doc calls include product/explore/metrics.md (40), ai/mcp.md (28) and product/sentry-mcp.md (19).
Suggested fix
After a full build with R2 credentials, delete R2 keys that the build didn't produce (keys in existingFilesOnR2 with no matching output file), and run a one-off cleanup of the current stale keys. The AutoRAG index then drops them on its next sync.
Not verified: that the AutoRAG index's data source is this bucket. Someone with Cloudflare access to the MCP account can confirm.
MCP-side tracking: getsentry/toolkit#2491
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_00354f1fee745b34eb351180b5db6308.
--
- Lingua principale
- MDX
- Stelle
- 451
- Fork
- 1.7k
- Merge medio
- 1g 10h
- PR unite (30g)
- 566
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-docs
-
API Register a New Service Hook does NOT mention the plans for which the feature is availableApertaDocs Product
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
getsentry/sentry-docs#20849 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Vanta EU integration not available anymoreForse già presa @sansynx l’ha presa 51 giorni fa. ApertaDocs Product
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
getsentry/sentry-docs#19757 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Document Android network-event breadcrumb configurationForse già presa @sansynx l’ha presa 67 giorni fa. ApertaDocs Platform: Android SDKs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
getsentry/sentry-docs#19438 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Unused import OpenAIIntegration on Pydantic AI integration pageForse già presa @minutechreview l’ha presa 59 giorni fa. ApertaDocs Platform: Python SDKs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
getsentry/sentry-docs#19432 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Docs Product
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
getsentry/sentry-docs#19028 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getsentry/sentry-docs
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
The-Swarm-Corporation/swarms-rs#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
-
CONTRIBUTING.md and the release checklist still describe tag-based versioning and a `develop` branchApertadocs
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
developmentseed/titiler-cmr#355 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno