Rejected regionUrl errors don't say how to recover when an agent passes the organization's web URL
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 84/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
从 packages/mcp-core/src/internal/tool-helpers/validate-region-url.ts 第 58–65 行附近开始,阅读现有的拒绝消息。保留允许列表的行为,然后修改错误,使其说明调用方应使用 find_organizations 中的 regionUrl,而不是 webUrl,或者省略 regionUrl。完成标准是:被拒绝的组织网站 URL 仍无法通过验证,并且错误中包含这些补救选项。
由索引模型根据 Issue 内容生成。
描述
Agents pass an organization's web URL (https://<org>.sentry.io, the webUrl from find_organizations) as regionUrl. The SSRF allowlist rightly rejects it, but the error only lists the allowed domains. It doesn't say the agent passed the wrong URL or that omitting regionUrl works, so agents retry with a guessed region or give up.
Where
packages/mcp-core/src/internal/tool-helpers/validate-region-url.ts(~L58-65) throwsInvalid regionUrl. The domain '<org>.sentry.io' is not allowed. Allowed domains are: sentry.io, us.sentry.io, de.sentry.iowith no next step.ParamRegionUrl(packages/mcp-core/src/schema.ts~L184-186) andfind_organizationsalready describeregionUrlandwebUrlcorrectly, so this is about recovery, not the description.
Expected
The rejection keeps the allowlist (no SSRF change) and tells the agent to pass the regionUrl from find_organizations, not the webUrl, or to omit regionUrl.
Reports
- MCP-SERVER-GX7 (hosted, org-scoped URL):
get_event_stacktracerejected the org's web URL; the agent then guessedhttps://us.sentry.ioand hit a 401 (also counted on #2495). - MCP-SERVER-GYN (hosted, org-scoped URL):
get_issue_detailsandget_replay_detailsrejected the org's web URL asregionUrl; omittingregionUrlworked.
Report count: 2
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_d3a7b079a597fb34fdd749c9c82402a4.
--
- 主要语言
- TypeScript
- 星标
- 975
- 派生
- 189
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 571
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/toolkit 的其他 Issue
-
mcp-feedback-pattern
难度 2/5 1-3 小时 新手友好度 74/100
getsentry/toolkit#2458 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
getsentry/toolkit#2444 · 1 条评论 ·
维护者通常 1 天内回复
-
mcp-feedback-pattern
难度 2/5 1-3 小时 新手友好度 67/100
getsentry/toolkit#2362 · 1 条评论 ·
维护者通常 1 天内回复
-
mcp-feedback-pattern
难度 2/5 1-3 小时 新手友好度 75/100
getsentry/toolkit#2315 · 1 条评论 ·
维护者通常 1 天内回复
-
link_issue passes through a misleading 404 when an integration token lists Sentry App installations未关闭mcp-feedback-pattern
难度 2/5 1-3 小时 新手友好度 65/100
getsentry/toolkit#2295 · 1 条评论 ·
维护者通常 1 天内回复
查看 getsentry/toolkit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area:vscode bug has repro platform:macos platform:vscode regression
难度 2/5 1-3 小时 新手友好度 70/100
anthropics/claude-code#113502 ·
-
check:passed streams:add
难度 1/5 1 小时以内 新手友好度 77/100
维护者通常 1 天内回复
-
effort/l priority/p1 risk/high triage/core
难度 2/5 1-3 小时 新手友好度 76/100
iflytek/skillhub#1188 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement needs-triage
难度 2/5 1-3 小时 新手友好度 74/100
Fission-AI/OpenSpec#2337 ·
维护者通常 1 天内回复