There was an error while loading. Please reload this page.
1 parent 0696fd6 commit 833a2e8Copy full SHA for 833a2e8
1 file changed
lua/astrocommunity/editing-support/mcphub-nvim/init.lua
@@ -29,7 +29,7 @@ return {
29
opts = {
30
system_prompt = function()
31
local hub = require("mcphub").get_hub_instance()
32
- return hub:get_active_servers_prompt()
+ return hub and hub:get_active_servers_prompt() or ""
33
end,
34
-- The custom_tools type supports both a list and a function that returns a list. Using a function here prevents requiring mcphub before it's loaded
35
custom_tools = function()
0 commit comments