Skip to content

feat(tools): Return DSN status and rate limit from find_dsns - #2102

Open
sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/find-dsns-rate-limit
Open

sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/find-dsns-rate-limit

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

You can set a DSN's rate limit through MCP with update_dsn, but there was no way to read it back. find_dsns only returned id, name, and dsn, even though the project keys endpoint already returns isActive and rateLimit.

This adds both fields to find_dsns's structured output:

  • isActive: whether the DSN is enabled
  • rateLimit: { count, windowSeconds }, the same shape update_dsn returns, or null when no limit is set. Sentry's ProjectKeySerializer already returns null when either value is unset, so this passes that through.

The fields are mapped explicitly instead of spreading the passthrough API object, so backend-only fields like the secret DSN still can't leak. The existing test covers both a rate-limited DSN and an unlimited one.

via Saad Khan.

--

View Session [Sentry]

sentry-junior Bot and others added 2 commits October 29, 2026 08:30
find_dsns only returned the DSN id, name, and public DSN, so there was no
way to read a DSN's rate limit through MCP even though update_dsn can set
it. The Sentry project keys API already returns isActive and rateLimit;
map both into the structured output. rateLimit is null when no limit is
set, matching what Sentry returns.

Co-Authored-By: Saad Khan <saad.khan@sentry.io>
…imit

Co-Authored-By: Saad Khan <saad.khan@sentry.io>

# Conflicts:
#	packages/mcp-core/src/skillDefinitions.json
#	packages/mcp-core/src/toolDefinitions.json
#	packages/mcp-core/src/tools/catalog/find-dsns.ts
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 9, 2026 7:28am UTC

Request Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6942246. Configure here.

update_dsn returns rateLimit as { count, windowSeconds }. Use the same
field names in find_dsns so agents see one shape across both tools.

This branch was successfully deployed

1 active and 1 inactive deployments
Actions — 0934ea27 Deployed Nov 9, 2026 by sentry-junior[bot] via eval #1738
Preview — 0934ea27 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants