Skip to content

fix(mcp): Defer find_dropped_events and lock the default tool list - #1700

Merged
dcramer merged 2 commits into
mainfrom
fix/defer-find-dropped-events
Oct 28, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/defer-find-dropped-events

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

#1410 added find_dropped_events to TOP_LEVEL_TOOL_NAMES, which put it in the default tools/list payload. That direct surface is reserved for core tools, so this moves it back to the catalog. Agents can still discover it through search_sentry_tools and call it through execute_sentry_tool.

Generated definitions and plugin agent allowedTools lists were regenerated to match.

To keep this from happening again, a new ast-grep rule, no-expand-top-level-tools, fails lint when TOP_LEVEL_TOOL_NAMES in packages/mcp-core/src/tools/surfaces.ts differs from the allowed list. Many harnesses still load every listed tool into the context window up front, so each addition is noise in every session. If the list really needs to grow, the PR has to update the allowed list in the rule too, so the change gets reviewed on purpose. A comment on the list says it stays locked until tool search is standard in every mainstream harness, which likely happens by 2027.

Refs #1410 (comment)

via David Cramer.

--

View Junior Session [Sentry]

Remove find_dropped_events from the default direct tools/list surface. It
stays reachable through search_sentry_tools and execute_sentry_tool.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-local Ready Ready Preview Oct 28, 2026 5:12pm UTC

Request Review

Add the no-expand-top-level-tools rule, which fails when
TOP_LEVEL_TOOL_NAMES differs from the allowed list. Many harnesses still
load every listed tool into the context window, so additions need an
explicit rule update in the same PR. Restricted until tool search is
standard in every mainstream harness, likely by 2027.

Co-Authored-By: David Cramer <david@sentry.io>
@sentry-junior sentry-junior Bot changed the title fix(mcp): Defer find_dropped_events to the tool catalog fix(mcp): Defer find_dropped_events and lock the default tool list Oct 28, 2026
@dcramer
dcramer enabled auto-merge (squash) October 28, 2026 17:13
@dcramer
dcramer merged commit a234d14 into main Oct 28, 2026
40 of 41 checks passed
@dcramer
dcramer deleted the fix/defer-find-dropped-events branch October 28, 2026 17:24

This branch was successfully deployed

2 active deployments
Preview — f2a92c8d Deployed Oct 28, 2026 by vercel[bot]
Actions — f2a92c8d Deployed Oct 28, 2026 by sentry-junior[bot] via eval #1391
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.

1 participant