feat(mcp): limit alwaysAllow tools to fix overload (#1) #2
Reference in New Issue
Block a user
Delete Branch "feat/mcp-tool-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #1 — MCP tool overload exceeding 100 registered tools in VS Code/Roo.
Changes
Restricted
alwaysAllowin.roo/mcp.jsonfor three over-exposing servers:git["*"](all ~10 tools)gitea["*"](all 48 tools)playwrightTotal tools: 105+ → ~40 (estimated, pending VS Code restart verification)
git (5 tools)
git_status,git_diff_unstaged,git_log,git_add,git_commitgitea (8 tools)
create_issue,list_repo_issues,get_issue,edit_issue,create_issue_comment,create_pull_request,get_repository,list_my_repositoriesplaywright (6 tools)
browser_navigate,browser_click,browser_fill,browser_screenshot,browser_close,browser_new_contextVerification
After merging, restart VS Code and confirm total MCP tool count drops below 50.
Commit
ef960a4b— feat(mcp): limit tools to fix overload (#1)⚠️ Closing this PR as ineffective.
After further research,
alwaysAllowin.roo/mcp.jsondoes not reduce the number of tools loaded into the system prompt context. It only controls which tools execute without a confirmation prompt.Roo Code loads ALL tools from ALL enabled MCP servers into context regardless of
alwaysAllowsettings.The issue (#1) has been updated with correct diagnosis and real workarounds:
The
alwaysAllowchanges in this PR are harmless but provide no benefit for token usage. Reverting is optional.Pull request closed