wip: fix mpchub tool integration configs

This commit is contained in:
Jeremy Wall 2025-05-07 12:28:38 -04:00
parent 48ee2d8c65
commit 9cce1fb0b0

View File

@ -706,9 +706,8 @@ require('avante').setup ({
behavior = {
enable_cursor_planning_mode = true,
},
--system_prompt = hub_instance:get_active_servers_prompt(),
-- Using function prevents requiring mcphub before it's loaded
custom_tools = require("mcphub.extensions.avante").mcp_tool(),
system_prompt = hub_instance and hub_instance:get_active_servers_prompt() or "",
custom_tools = { require("mcphub.extensions.avante").mcp_tool() },
-- Disable these because we'll use the mcphub versions instead
disabled_tools = {
"list_files", -- Built-in file operations