Merged
Conversation
🤖 My Senior Dev1 file reviewed • 3 need attention
💬 Try: 📖 All commands & personasYou can interact with me by mentioning In PR comments or on any line of code:
Slash commands:
AI Personas (mention to get their perspective):
For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews. |
khaliqgant
approved these changes
Dec 17, 2025
TBonnin
reviewed
Dec 17, 2025
| .flatMap((action) => { | ||
| const tool = actionToTool(action); | ||
| return tool ? [tool] : []; | ||
| }) |
Collaborator
There was a problem hiding this comment.
you can avoid the filter and extra iterations.
tools: actions
.flatMap((action) => {
if(!action.enabled) return [];
const tool = actionToTool(action);
return tool ? [tool] : [];
Comment view
})
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.
https://nangohq.slack.com/archives/C09TCKP2XFB/p1765916367791799
Filter out disabled MCP actions from tool listings
Updates the MCP server
ListToolshandler to stop returning disabled actions. The handler now short-circuits within the existingflatMapso that only actions whereaction.enabledis truthy proceed toactionToToolconversion.Key Changes
• Short-circuited the
actions.flatMaplogic inpackages/server/lib/controllers/mcp/server.tsto return an empty array whenaction.enabledis falsy.• Preserved the existing
actionToToolconversion flow for enabled actions.Affected Areas
•
packages/server/lib/controllers/mcp/server.tsThis summary was automatically generated by @propel-code-bot