md exports never delete R2 objects for moved or removed pages, so MCP docs search returns dead pages
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- build-system, cloud
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
--
- 主要言語
- MDX
- スター
- 451
- フォーク
- 1.7k
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 566
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-docs のほかの issue
-
Docs Product
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
getsentry/sentry-docs#20849 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Vanta EU integration not available anymore対応中かも @sansynx が 51 日前に担当しました。 オープンDocs Product
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
getsentry/sentry-docs#19757 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Document Android network-event breadcrumb configuration対応中かも @sansynx が 67 日前に担当しました。 オープンDocs Platform: Android SDKs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
getsentry/sentry-docs#19438 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Unused import OpenAIIntegration on Pydantic AI integration page対応中かも @minutechreview が 59 日前に担当しました。 オープンDocs Platform: Python SDKs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
getsentry/sentry-docs#19432 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Docs Product
難易度 2/5 半日 初心者へのやさしさ 68/100
getsentry/sentry-docs#19028 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-docs の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
The-Swarm-Corporation/swarms-rs#167 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
CONTRIBUTING.md and the release checklist still describe tag-based versioning and a `develop` branchオープンdocs
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
developmentseed/titiler-cmr#355 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信