From 9cce1fb0b0f943e4d83f95ff7b7969a2f51f434c Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 7 May 2025 12:28:38 -0400 Subject: [PATCH] wip: fix mpchub tool integration configs --- nix/base-system/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nix/base-system/init.lua b/nix/base-system/init.lua index 5ab7ffe..1924fb8 100644 --- a/nix/base-system/init.lua +++ b/nix/base-system/init.lua @@ -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