-
Everything works 100% when using minimal.lua, so I’m guessing it's something in my config but I’m not sure where to look. I'm currently using the default LazyVim Blink configuration. Any ideas on what might be causing this? My plugin setup for CodeCompanion: return {
"olimorris/codecompanion.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"ravitemer/mcphub.nvim",
},
opts = {
extensions = {
mcphub = {
callback = "mcphub.extensions.codecompanion",
opts = {
make_vars = true,
make_slash_commands = true,
show_result_in_chat = true,
},
},
},
},
keys = {
{ "<leader>a", "", desc = "+ai", mode = { "n", "v" } },
{
"<leader>aa",
function()
vim.cmd("CodeCompanionChat Toggle")
end,
desc = "Toggle (AiChat)",
mode = { "n", "v" },
},
{
"<leader>ap",
function()
vim.cmd("CodeCompanionActions")
end,
desc = "Ai Prompt",
mode = { "n", "v" },
},
},
} and MCPHub: return {
"ravitemer/mcphub.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
build = "bun add -g mcp-hub@latest", -- Installs `mcp-hub` node binary globally
config = function()
require("mcphub").setup()
end,
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 20 replies
-
@ShooTeX Can you share your servers.json? Does any of the servers provide resources or prompts? |
Beta Was this translation helpful? Give feedback.
-
mcphub.on({ "servers_updated", "prompt_list_changed" }, function(_)
vim.notify("Updating slash commands", vim.log.levels.ERROR) this triggers notifications when I enable/disable mcp servers (twice for each action) and when the chat is open. Somehow after enabling/disabling a server a couple of times I saw slash commands, but I can't reproduce it anymore |
Beta Was this translation helpful? Give feedback.
I figured it out 🤦 ,
I added
lazy = false
to both mcphub and code companion: