Rejected regionUrl errors don't say how to recover when an agent passes the organization's web URL
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start with packages/mcp-core/src/internal/tool-helpers/validate-region-url.ts around lines 58–65 and read the existing rejection message. Keep the allowlist behavior, then make the error explain that callers should use regionUrl from find_organizations rather than webUrl, or omit regionUrl. Done when rejected organization web URLs still fail validation and the error includes those recovery options.
Written by the indexing model from the issue text.
Description
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.
--
- Dominant language
- TypeScript
- Stars
- 975
- Forks
- 189
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 571
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/toolkit
-
mcp-feedback-pattern
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
getsentry/toolkit#2458 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/toolkit#2444 · 1 comment ·
Maintainers usually reply within 1 day
-
mcp-feedback-pattern
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
getsentry/toolkit#2362 · 1 comment ·
Maintainers usually reply within 1 day
-
mcp-feedback-pattern
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/toolkit#2315 · 1 comment ·
Maintainers usually reply within 1 day
-
link_issue passes through a misleading 404 when an integration token lists Sentry App installationsOpenmcp-feedback-pattern
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getsentry/toolkit#2295 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/toolkit
Similar issues
-
bug engine
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
frostney/GocciaScript#2539 ·
Maintainers usually reply within 1 day
-
Fish Audio Live calls fail to start: `Unknown callback "onNotice"` from @fishaudio/agent-clientPossibly taken @NEAL3K claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
milind-soni/OpenMausBot#8345 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ardia-browser/ardia#6142 ·
Maintainers usually reply within 1 day
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day