Skip to content

feat(mcp): Add report_sentry_problem tool for agent feedback - #1517

Draft
sentry-junior[bot] wants to merge 2 commits into
mainfrom
feat/report-sentry-problem-tool
Draft

sentry-junior[bot] wants to merge 2 commits into
mainfrom
feat/report-sentry-problem-tool

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Agents that hit a broken MCP tool, an API that doesn't match its docs, or outdated docs have no way to tell us. This adds a minimal report_sentry_problem tool that sends what they found as Sentry User Feedback to the MCP server's own project. This reuses the User Feedback flow we already have, like sentry cli feedback.

A report includes the surface (mcp, api or docs), the target (tool name, endpoint or docs URL), what the agent expected, what actually happened, and an optional request, trace or event ID. Reports are tagged with agent_report.surface, agent_report.target and agent_report.client_family, so they can be routed and grouped by surface and client. Because feedback is captured in the active request scope, it's linked to the MCP request trace.

The tool is catalog-only: agents find it through search_sentry_tools, so it doesn't count toward the direct tool limit. The tool description tells agents to report only problems with Sentry, to tell the user what will be sent first, and never to include secrets, prompt text or customer data. If Sentry telemetry isn't configured, the tool fails with a clear error and sends nothing.

Open questions before this is ready:

  • Should the tool sit on the direct tools/list surface so agents see it without searching?
  • Do we need per-session rate limiting before shipping?
  • Who triages these reports, and do we want alerts or ownership rules on agent_report.surface?

via Armen.

--

View Junior Session [Sentry]

Let agents report problems with Sentry MCP tools, APIs, or docs. Reports
are sent as User Feedback to the MCP server's own Sentry project, tagged
with surface, target, and client family.

Co-Authored-By: Armen Zambrano Gasparnian <armenzg@sentry.io>
@vercel

vercel Bot commented Oct 16, 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 Oct 16, 2026 1:56pm UTC

Request Review

Comment thread packages/mcp-core/src/tools/catalog/report-sentry-problem.test.ts Outdated
An empty --sentry-dsn still registers a Sentry client, so the tool
reported success while nothing was sent.

This branch was successfully deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants