Skip to content

feat(mcp): Add a feedback tool for MCP servers - #26996

Merged
logaretm merged 34 commits into
awad/mcp-package-scaffoldfrom
awad/mcp-feedback-tool
Dec 1, 2026
Merged

logaretm merged 34 commits into
awad/mcp-package-scaffoldfrom
awad/mcp-feedback-tool

Conversation

@logaretm

@logaretm logaretm commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

For context on why this is its own package, refer to #26995

MCP server authors have no easy way to hear from agents that get stuck on their tools, this PR adds addFeedbackTool and createFeedbackTool to cater for both simple setups and more dynamic ones like ours in sentry mcp server.

Two ways to set it up for now:

import * as Sentry from '@sentry/node';
import { McpServer } from '@modelcontextprotocol/server';
import { addFeedbackTool } from '@sentry/mcp';

Sentry.init({ dsn: process.env.SENTRY_DSN, tracesSampleRate: 1 });

// Whatever MCP setup they have, as long as we have the `server`
const server = Sentry.wrapMcpServerWithSentry(new McpServer({ name: 'orders', version: '1.0.0' }));

// user adds tools and other stuff...
// ...

// Adds the feedback tool, wraps other tools with a "honey pot" hint on error.
addFeedbackTool(server, { serverName: 'Orders' });

Or, for servers that register tools through their own catalog, create the tool and register it like any other:

import { createFeedbackTool } from '@sentry/mcp';

// Same options as addFeedbackTool. `server` is optional: it names the agent on each report and adds the error hints
const tool = createFeedbackTool({ serverName: 'Orders', server });

server.registerTool(tool.name, tool.config, tool.handler);

The tool returns the feedback ID as structuredContent with a matching outputSchema, next to the text.

Error Hints

Failing tools get this sentence appended to their error:

If this keeps failing after you adjust your request, report it to the Orders team with `submit_feedback`.
└─────────────────── condition ───────────────────┘               └─ recipient ─┘      └── toolName ───┘

With serverName: 'Orders' the recipient becomes "the Orders team", and the tool name follows name. Successful results are never modified, error results get the hint as an extra text block so structuredContent is never touched, and errors that already mention the feedback tool don't get a second hint.

Only these errors receive the hint:

Failure Hint?
{ status: 429 }, { statusCode: 404 }, { response: { status: 403 } } No
McpError with code -32602 No
{ status: 502 }, a plain Error, ECONNREFUSED (string code), an isError result Yes

The user can also customize which errors get hinted with errorHints option:

addFeedbackTool(server);                        // default: shouldHintFeedback
addFeedbackTool(server, { errorHints: false }); // no hints
addFeedbackTool(server, {
  // (toolName, failure) => boolean; failure is the thrown Error or the isError result
  errorHints: (toolName, failure) => shouldHintFeedback(failure) && toolName !== 'search_orders',
});

Hints on other results

For results that aren't errors but still suggest a problem, like an empty search, authors add the hint themselves. Both helpers use the name and serverName of the tool addFeedbackTool or createFeedbackTool made, and add nothing until that tool exists and Sentry has a client:

import { feedbackHint, withFeedbackHint } from '@sentry/mcp';

// adds the hint as its own text block, leaves structuredContent and the existing content alone
return orders.length ? result : withFeedbackHint(result, 'If this stays empty after you broaden the query');

// or just the sentence, for your own messages
throw new Error(`Index is rebuilding. ${feedbackHint('If this keeps failing after the rebuild')}`);

Custom handler

If the user wants their own handler, for example to name the agent from their own per-call context, captureAgentFeedback does the filler check, scrubbing and sending:

import { captureAgentFeedback, createFeedbackTool } from '@sentry/mcp';

const tool = createFeedbackTool({ serverName: 'Orders' });

server.registerTool(tool.name, tool.config, input => {
  const result = captureAgentFeedback(input, {
    clientName: 'cursor',             // shown as "MCP agent (cursor)"
    userId: 'user-42',                // dropped from the name when dataCollection.userInfo is false
    scrub: msg => msg.replace(/s3:\/\/\S+/g, '[REDACTED]'), // runs after built-in token/email scrubbing
  });
  if (!result.ok) {
    return { isError: true, content: [{ type: 'text', text: result.error }] }; // filler like "N/A"
  }

  return { content: [{ type: 'text', text: 'Feedback sent.' }], structuredContent: { feedbackId: result.feedbackId } };
});

The e2e tests call the tool over MCP SDK v1 with zod 3.25 and over v2, and check the feedback envelope it sends and the structured result.

@logaretm
logaretm added this pull request to stack #26997 November 30, 2026 16:35
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: d1b7e00 (PR test merge using base PR #26995 at beb309c)

Against: beb309c (base PR #26995) · base run #68481

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.58 kB - -
@sentry/browser - with treeshaking flags 28.76 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.63 kB - -
@sentry/browser (incl. Tracing) 53.72 kB - -
@sentry/browser (incl. Tracing Core) 40.65 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.72 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.6 kB - -
@sentry/browser (incl. Tracing, Replay) 93.64 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.43 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 98.49 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.45 kB - -
@sentry/browser (incl. Feedback) 48.43 kB - -
@sentry/browser (incl. sendFeedback) 31.15 kB - -
@sentry/browser (incl. FeedbackAsync) 36.2 kB - -
@sentry/browser (incl. Metrics) 31.9 kB - -
@sentry/browser (incl. Logs) 32.18 kB - -
@sentry/browser (incl. Metrics & Logs) 32.84 kB - -
@sentry/react 32.6 kB - -
@sentry/react (incl. Tracing) 56.45 kB - -
@sentry/vue 38.78 kB - -
@sentry/vue (incl. Tracing) 56.74 kB - -
@sentry/svelte 30.61 kB - -
@sentry/effect (client) 42.27 kB - -
@sentry/effect (client, incl. Tracing) 55.01 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.34 kB - -
@sentry/remix (Remix 3 client bundle) 59.46 kB - -
CDN Bundle 32.4 kB - -
CDN Bundle (incl. Tracing) 54.09 kB - -
CDN Bundle (incl. Logs, Metrics) 35.16 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.55 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.12 kB - -
CDN Bundle (incl. Tracing, Replay) 91.88 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.82 kB - -
CDN Bundle - uncompressed 94.64 kB - -
CDN Bundle (incl. Tracing) - uncompressed 159.96 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 102.98 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.59 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.37 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.39 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.02 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 299.95 kB - -
@sentry/nextjs (client) 60.27 kB - -
@sentry/sveltekit (client) 55.07 kB - -
@sentry/astro (client) - rolldown, without tracing 39.52 kB +0.01% +2 B 🔺
@sentry/core/server 45.91 kB - -
@sentry/core/browser 14.49 kB - -
@sentry/node 157.98 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.6 kB - -
@sentry/node - without tracing 89.99 kB +0.01% +1 B 🔺
@sentry/node - without channel injection 146.94 kB - -
@sentry/aws-serverless 100.65 kB +0.01% +3 B 🔺
@sentry/cloudflare (withSentry) - minified 212.5 kB - -
@sentry/cloudflare (withSentry) 492.68 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 215.45 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 237.93 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 1 not successful, 64 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Failing after 4m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E hono-5 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E hapi-21 (bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 (MCP SDK OpenTelemetry) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (0.x) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E hono-5 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry (static trace lifecycle) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (cloudflare) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (no upload) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E hapi-21 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (development) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E hono-5 (bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E hono-5 (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-without-tracing-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps enabled by Sentry) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-4-sourcemaps (Vite server) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (content off) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (manual upload) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E vinext-cf-workers (workers cache) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (manual upload) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (delete all) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (delete all) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (bun) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (no upload) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (no upload) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 1m Details

Comment thread packages/mcp/src/errorHints.ts Resolved
Comment thread packages/mcp/src/feedback.ts Resolved
sentry-junior[bot]
sentry-junior Bot previously requested changes Dec 1, 2026

@sentry-junior sentry-junior 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.

The README says this works with @modelcontextprotocol/sdk v1, and the core MCP integration supports ^1.9.0. But feedbackInputSchema and feedbackOutputSchema in feedback.ts are built with zod/v4, and v1 only accepts zod v4 shapes from 1.23.0 on. Before 1.23.0 the SDK depends on zod ^3.23.8 and wraps the shape with v3's z.object.

I checked this with @modelcontextprotocol/sdk@1.22.0 and zod@3.25.76, registering a tool with a zod/v4 raw shape the same way addFeedbackTool does:

  • tools/list shows {"type":"object","properties":{}}, so the agent sees no fields.
  • Every tools/call returns isError with keyValidator._parse is not a function.

On those servers addFeedbackTool registers a tool that can never succeed. The error hints then tell agents to call it after every hinted failure. That's worse than having no tool, because each stuck agent spends an extra failed call and the report is lost.

The e2e apps use ^1.26.0 and 1.32.1, so CI doesn't hit this. Before this lands, I'd state the floor (>=1.23.0 for v1) in the README, and either declare it as an optional peer or skip registration and hints with a debug.warn when the server's SDK is older.

@logaretm

logaretm commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

I changed the readme to state that 1.23 is our minimum here, the docs will also state the same.

@sentry-junior
sentry-junior Bot dismissed their stale review December 1, 2026 18:12

The SDK floor is now documented; superseded by a follow-up review.

@sentry-junior sentry-junior 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.

The README floor covers my earlier zod v4 concern, so I dismissed that review.

One small gap at the new floor: on @modelcontextprotocol/sdk 1.23.0 and 1.23.1, a registered tool stores its function as callback. The rename to handler came in 1.24.0. wrapRegisteredTool in errorHints.ts only looks for executor or handler, so on 1.23.x it returns early and no error hints get added. The feedback tool itself still works. Either also check callback there, or raise the documented floor to 1.24.0.

The Size Check failure isn't from this PR. It couldn't find base results for the stacked base branch.

@sentry-junior sentry-junior 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.

Looks good to me. wrapRegisteredTool now picks up callback on 1.23.x, and the parametrized error-hint tests cover all three keys. From 1.24.0 on, registered tools have no callback, so the lookup order can't pick the wrong function.

@isaacs isaacs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The design is sound. Moving to @sentry/mcp with an optional range peer on @sentry/core solves the real problem (a second copy of @sentry/core would have its own carrier, getClient() would return nothing, and the tool would always say feedback isn't available). I checked that the core APIs this package uses (getCombinedScopeData, isObjectLike, Client.getDataCollectionOptions, captureFeedback with tags) all exist in 11.0.0, so "works with any 11.x SDK" holds. Changing the thrown error's message and restoring it for Sentry in a global event processor is a little unusual, but it is needed because both MCP SDKs build the error result from error.message alone. The e2e tests check that Sentry keeps the original message.

captureAgentFeedback reporting success without a client should be fixed before landing. The OpenAI key pattern is a small change that should go in with it. The bump-version gap at the next major can be a follow-up issue, as long as someone files it now.

The earlier Warden comment about shouldHintFeedback rejecting all -32768..-32000 codes is outdated. Commit cc49af0cbc narrowed it to the client error codes, the same list as isJsonRpcServerError in core.

Optional, no action needed:

  • packages/mcp/src/addFeedbackTool.ts lines 13-18 and 59: the server.tool(...) fallback only runs on servers without registerTool, and those are all v1 versions older than the stated 1.23.0 floor. Removing it drops a branch and the second method in McpServerLike. The tool wrapping in packages/mcp/src/errorHints.ts line 90 should stay, because 1.23+ servers can still register other tools with the deprecated tool().
  • feedbackHint and withFeedbackHint use the tool from the last addFeedbackTool or createFeedbackTool call in the process. That is fine for one server config per process, and the JSDoc says so.
  • restoreOriginalMessage (packages/mcp/src/errorHints.ts lines 175-189) only restores an exception value that equals the hinted message exactly. If a later step truncates the value first (for example maxValueLength), the hinted message stays in Sentry. This is a rare case, not worth changing now.

Comment thread packages/mcp/src/feedback.ts Resolved
Comment thread packages/mcp/src/feedback.ts Resolved
Comment thread scripts/bump-version.js Resolved
…or result

The filter only ever receives a thrown Error or a result with isError: true, so
type it that way and export ToolErrorResult. Callbacks can now narrow with
instanceof or read content without casts. Examples use CustomError so they
don't suggest schema validation errors, which the MCP SDK handles before the
tool runs.
…ckTool return value

It uses the tool from the last addFeedbackTool call, so tools defined away from
the server setup don't need the returned withHint threaded to them.
withFeedbackHint covers the same case without threading the return value, so
addFeedbackTool returns nothing and there is one way to add the hint.
…Tool call

feedbackHint now takes its tool name and recipient from addFeedbackTool like
withFeedbackHint does, so a thrown error only needs a condition. The state moves
to feedback.ts so both helpers share it.
Matches withFeedbackHint(result, condition), and the common call only needs the
condition. toolName, recipient and available move to the second argument.
feedbackHint takes a condition with optional options, or a single options object
that can hold the condition, so options never need an undefined first argument.
…mselves

createFeedbackTool returns the tool's name, config and handler, and makes them
the defaults for feedbackHint and withFeedbackHint, so a server with its own
catalog keeps the right hint without calling addFeedbackTool. addFeedbackTool is
built on it. feedbackInputSchema and getFeedbackToolDescription are no longer
exported, since tool.config covers them.
addFeedbackTool and createFeedbackTool now record the tool name and server, so
feedbackHint no longer needs toolName, recipient or available. The error hints
keep naming their own server through an internal formatter.
feedbackHint fell back to submit_feedback before any tool existed, which could
point agents at a tool the server doesn't have. It now matches withFeedbackHint.
createFeedbackTool already takes the server to name the agent, so it now also
adds the error hints, with the same errorHints option as addFeedbackTool.
addFeedbackTool checks that it can register the tool, then builds on it.
The feedback tool now declares an outputSchema and returns
structuredContent: { feedbackId } next to the text, so servers that require an
outputSchema on every tool can register tool.handler as is.
…active span

The feedback handler now reads the client name from the per-request envelope
MCP SDK v2 passes, then the server's handshake, then the mcp.client.name
attribute on the active span, so catalogs without the server can still name
the agent. Adds @sentry/conventions for the attribute name, which every Sentry
SDK already installs.
The hint now says "report it to the Orders team", matching sentry-mcp's
wording. Also fixes comments that still said only addFeedbackTool sets the
tool, and drops a duplicated default.
Before 1.23.0, the v1 SDK wraps tool schemas with zod v3, so it can't read the
feedback tool's zod v4 schema and every call fails.
Before 1.24.0, the v1 SDK keeps a registered tool's function under callback
instead of handler, so the wrapper skipped those tools and no hints were added.
update({ callback }) puts a new function under the key we wrapped (v2 rebuilds
executor), which dropped the hint. Wrap update so the new function is wrapped
too, and follow renames for the errorHints filter.
…client, scrub current API keys

Without a client, captureFeedback drops the event but still returns an ID, so
custom handlers told the agent its report was sent. The check now lives in
captureAgentFeedback instead of only the built-in handler.

The key pattern only matched legacy 48-character OpenAI keys. It now also
catches sk-proj-, sk-svcacct- and sk-ant- keys, since feedback events skip
beforeSend.
Only v1 servers older than the 1.23.0 floor lack registerTool. Error hints
still wrap tool(), since newer servers can register other tools with it.
…ersion

Range peers like @sentry/mcp's on @sentry/core stay put within a major, but a
major release would have shipped them still pinned to the old one. Move them to
^<major>.0.0 (^<major>.0.0-0 for prereleases), and fail before writing anything
for a range form the script can't move.
…dler fits

The fake typed the handler as taking no arguments, which the real handler, with
its required input, isn't assignable to.
@logaretm
logaretm force-pushed the awad/mcp-feedback-tool branch from c2e1af5 to 7ad8373 Compare December 1, 2026 19:01
@logaretm
logaretm merged commit 19a9c5e into develop Dec 1, 2026
526 of 560 checks passed
@logaretm
logaretm deleted the awad/mcp-feedback-tool branch December 1, 2026 19:08
logaretm added a commit to getsentry/sentry-docs that referenced this pull request Dec 1, 2026
The new `@sentry/mcp` agent feedback tool from
[getsentry/sentry-javascript#26996](getsentry/sentry-javascript#26996)
has no docs yet, so this adds an Agent Feedback page under JavaScript
MCP Monitoring.
scttcper added a commit to getsentry/sentry that referenced this pull request Dec 2, 2026
Follow up to #133046. Feedback is the product now and the browser widget
is one way to send it. With [MCP agent
feedback](getsentry/sentry-javascript#26996)
landing in the same inbox, "the Feedback integration" no longer clearly
means the widget.

Setup docs, the loader script toggle, and the crash report notification
hint now say "User Feedback Widget" wherever they're talking about the
widget.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants