Skip to content

fix(mcp): Only register the feedback tool on an MCP SDK McpServer - #27137

Merged
logaretm merged 1 commit into
developfrom
awad/mcp-feedback-tool-require-mcp-server
Dec 3, 2026
Merged

logaretm merged 1 commit into
developfrom
awad/mcp-feedback-tool-require-mcp-server

Conversation

@logaretm

@logaretm logaretm commented Dec 3, 2026

Copy link
Copy Markdown
Member

Passing a server whose registerTool isn't the MCP SDK's, like @rekog/mcp-nest's strategy, stored a nameless tool that broke tools/list for every client, fixed by also requiring the SDK's _registeredTools map before registering.

I added a test with a one-argument registerTool like mcp-nest's, which fails before the fix, and checked it against a real mcp-nest app.

addFeedbackTool called any registerTool method with the MCP SDK's arguments. On @rekog/mcp-nest's strategy, whose registerTool takes a single definition object, that stored a tool without a name, and tools/list then failed for every client. It now also requires the SDK's _registeredTools map and otherwise warns and does nothing.
@logaretm
logaretm marked this pull request as ready for review December 3, 2026 16:52
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 67e6713 (PR test merge using develop at 2007cec)

Against: 2007cec (develop) · base run #68738

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

Path Size % Change Change
@sentry/browser 30.73 kB - -
@sentry/browser - with treeshaking flags 28.85 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.7 kB - -
@sentry/browser (incl. Tracing) 54.07 kB - -
@sentry/browser (incl. Tracing Core) 40.89 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 54.08 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.97 kB - -
@sentry/browser (incl. Tracing, Replay) 94.06 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.59 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 98.9 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.85 kB - -
@sentry/browser (incl. Feedback) 48.59 kB - -
@sentry/browser (incl. sendFeedback) 31.29 kB - -
@sentry/browser (incl. FeedbackAsync) 36.34 kB - -
@sentry/browser (incl. Metrics) 32.04 kB - -
@sentry/browser (incl. Logs) 32.32 kB - -
@sentry/browser (incl. Metrics & Logs) 33 kB - -
@sentry/react 32.61 kB - -
@sentry/react (incl. Tracing) 56.57 kB - -
@sentry/vue 39.07 kB - -
@sentry/vue (incl. Tracing) 57.19 kB - -
@sentry/svelte 30.77 kB - -
@sentry/effect (client) 42.29 kB - -
@sentry/effect (client, incl. Tracing) 55.1 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.59 kB - -
@sentry/remix (Remix 3 client bundle) 59.55 kB - -
CDN Bundle 32.54 kB - -
CDN Bundle (incl. Tracing) 54.17 kB - -
CDN Bundle (incl. Logs, Metrics) 35.25 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.63 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.2 kB - -
CDN Bundle (incl. Tracing, Replay) 91.98 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.49 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.89 kB - -
CDN Bundle - uncompressed 94.94 kB - -
CDN Bundle (incl. Tracing) - uncompressed 160.29 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 103.28 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.92 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.67 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.72 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.65 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 300.27 kB - -
@sentry/nextjs (client) 59.93 kB - -
@sentry/sveltekit (client) 54.89 kB - -
@sentry/astro (client) - rolldown, without tracing 35.83 kB +0.01% +1 B 🔺
@sentry/core/server 45.96 kB - -
@sentry/core/browser 14.55 kB - -
@sentry/node 157.76 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.63 kB - -
@sentry/node - without tracing 89.74 kB -0.01% -6 B 🔽
@sentry/node - without channel injection 147.11 kB - -
@sentry/aws-serverless 100.65 kB - -
@sentry/cloudflare (withSentry) - minified 213.32 kB - -
@sentry/cloudflare (withSentry) 495.18 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 216.26 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 241.52 kB - -

View base workflow run

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Optional E2E tests

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

Check Status
❌ CI: Optional E2E Tests / E2E node-express-mcp-v2 (MCP SDK OpenTelemetry) Test (optional) Failing after 1m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 3m Details

@logaretm
logaretm merged commit 2a4a950 into develop Dec 3, 2026
66 of 67 checks passed
@logaretm
logaretm deleted the awad/mcp-feedback-tool-require-mcp-server branch December 3, 2026 16:59
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