Repository navigation
Releases
v1.2.0 — security release
Security release — upgrade from any earlier version
In every version before 1.2.0, raw_sentry_api passed its endpoint argument straight to the HTTP client. An absolute URL made the client ignore the configured Sentry URL while still sending the Authorization: Bearer header, so a single tool call could send your Sentry auth token to any host, or reach hosts on the server's internal network. Agents can be steered by text inside Sentry events, and anyone with a project's public DSN can submit events — so exploiting this needed no access to your Sentry instance.
If you ran an earlier version with an agent that reads Sentry data, rotate the token.
1.2.0 rejects absolute and protocol-relative URLs, backslashes, control characters and any path that resolves outside /api/0/, and the HTTP client additionally refuses absolute URLs and does not follow redirects.
Install
The npm release is pending (npm still serves 1.1.2 for now). Until then, install from this release's tarball:
# one-off / MCP client config
npx -y https://github.com/HieuAnh87/sentry-selfhosted-mcp/releases/download/v1.2.0/selfhosted-sentry-mcp-1.2.0.tgz
# global install
npm install -g https://github.com/HieuAnh87/sentry-selfhosted-mcp/releases/download/v1.2.0/selfhosted-sentry-mcp-1.2.0.tgzIn an MCP client config, use that URL in place of selfhosted-sentry-mcp in the npx args. Verify the download against SHA256SUMS.txt.
Highlights
- Broken tools fixed (checked against Sentry 26.9 source and a live self-hosted instance):
bulk_update_issuessent its query in the request body, which Sentry ignores, so it acted on every unresolved issue in the project — it now sends the selection in the URL and refuses a call without one.merge_issues,get_trace_details,get_grouping_configandlist_activitycalled endpoints that don't exist. Pagination cursors are now returned.in_app_onlyno longer drops every frame. SENTRY_READ_ONLY=truehides and refuses the four write tools and limitsraw_sentry_apitoGET.- Responses 68–83% smaller on real data: compact JSON, compact issue lists (
full: truefor the raw objects), breadcrumb and event noise removed. - MCP: SDK 0.6.0 → 1.32.1 (protocol up to 2025-11-25), annotations (
readOnlyHint,destructiveHint, …) on every tool. - New read-only tools:
whoami,list_event_attachments,get_event_attachment,list_user_feedback— 28 tools in total. - Short issue IDs (
PROJ-1A2) and issue URLs accepted everywhere; clearer errors, including proxy 5xx pages.
Some tool outputs changed shape (compact lists, pagination block). See CHANGELOG.md for the full list, including every output change.