Repository navigation
fix(mcp): Only register the feedback tool on an MCP SDK McpServer - #27137
Merged
Merged
Conversation
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
marked this pull request as ready for review
December 3, 2026 16:52
javascript-sdk-gitflow
Bot
requested review from
RulaKhaled,
msonnb and
timfish
December 3, 2026 16:53
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.
|
3 tasks
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 2 successful. See the run.
|
timfish
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Passing a server whose
registerToolisn't the MCP SDK's, like @rekog/mcp-nest's strategy, stored a nameless tool that broketools/listfor every client, fixed by also requiring the SDK's_registeredToolsmap before registering.I added a test with a one-argument
registerToollike mcp-nest's, which fails before the fix, and checked it against a real mcp-nest app.