You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, with MCPHub v5.8.0, there is a behaviour change with respect to gta mode.
vim.g.codecompanion_auto_tool_mode is no longer automatically checked by MCPHub. Previously, using gta in CodeCompanion or setting vim.g.codecompanion_auto_tool_mode = true would auto-approve ALL MCP tool calls, even those not configured for auto-approval in the UI or servers.json.
Migration: Include the check in your custom function if needed:
require("mcphub").setup({
auto_approve=function(params)
-- Respect CodeCompanion's auto tool modeifvim.g.codecompanion_auto_tool_mode==truethenreturntrueend-- Auto-approve GitHub issue readingifparams.server_name=="github" andparams.tool_name=="get_issue" thenreturntrue-- Auto approveend-- Block access to private reposifparams.arguments.repo=="private" thenreturn"You can't access my private repo" -- Error messageendreturnfalse-- Show confirmationend,
})
Auto-Approval Priority
The system checks auto-approval in this order:
Function: Custom auto_approve function (if provided)
Server-specific: autoApprove field in server config
Default: Show confirmation dialog
This new system gives you fine-grained control over MCP tool approval based on actual arguments and context! Please the discussion for information.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, with MCPHub v5.8.0, there is a behaviour change with respect to
gta
mode.vim.g.codecompanion_auto_tool_mode
is no longer automatically checked by MCPHub. Previously, usinggta
in CodeCompanion or settingvim.g.codecompanion_auto_tool_mode = true
would auto-approve ALL MCP tool calls, even those not configured for auto-approval in the UI or servers.json.Migration: Include the check in your custom function if needed:
Auto-Approval Priority
The system checks auto-approval in this order:
auto_approve
function (if provided)autoApprove
field in server configThis new system gives you fine-grained control over MCP tool approval based on actual arguments and context! Please the discussion for information.
Thanks 💖
Beta Was this translation helpful? Give feedback.
All reactions