Skip to content

YEP-3037 Allow to use only selected api tools in MCP#19

Merged
agtraveso merged 1 commit intomainfrom
feature/YEP-3037
Nov 25, 2025
Merged

YEP-3037 Allow to use only selected api tools in MCP#19
agtraveso merged 1 commit intomainfrom
feature/YEP-3037

Conversation

@marcos-muino-garcia
Copy link
Contributor

@marcos-muino-garcia marcos-muino-garcia commented Nov 25, 2025

Note

Enables specifying individual API tools by name in YEPCODE_MCP_TOOLS and refactors tool listing with grouped constants.

  • Server (tool listing):
    • Introduces DEFAULT_API_TOOLS and ADDITIONAL_API_TOOLS constants to group API tools.
    • Updates ListTools handler to:
      • Use grouped constants for default/full API tool sets.
      • Include tools explicitly when their tool.name is listed in YEPCODE_MCP_TOOLS.
  • Docs (README):
    • Notes that YEPCODE_MCP_TOOLS can include specific API tool names (e.g., execute_process_sync, get_execution).

Written by Cursor Bugbot for commit 38129cc. This will update automatically on new commits. Configure here.

@marcos-muino-garcia marcos-muino-garcia requested a review from a team as a code owner November 25, 2025 09:23
@marcos-muino-garcia marcos-muino-garcia requested review from santicastro and sergio-rs and removed request for a team November 25, 2025 09:23
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 14

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

for (const tool of [...DEFAULT_API_TOOLS, ...ADDITIONAL_API_TOOLS]) {
if (this.tools.includes(tool.name)) {
tools.push(tool);
}
Copy link

Choose a reason for hiding this comment

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

Bug: Duplicate tools added when combining categories with specific names

When a user specifies both a category tag (like yc_api or yc_api_full) and a specific tool name that belongs to that category, the tool gets added to the tools array twice. The category check pushes all tools from DEFAULT_API_TOOLS/ADDITIONAL_API_TOOLS, and then the for-loop unconditionally pushes any tool whose name matches this.tools, without checking if it was already added. This results in duplicate entries in the ListTools response.

Fix in Cursor Fix in Web

@agtraveso agtraveso merged commit 2376269 into main Nov 25, 2025
2 checks passed
@agtraveso agtraveso deleted the feature/YEP-3037 branch November 25, 2025 09:39
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

Comments