md exports never delete R2 objects for moved or removed pages, so MCP docs search returns dead pages
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 小时
- 30 天内合并 PR
- 566
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 天内回复