Vars and slash commands not registered in CodeCompanion #162
-
I've got mcphub configured via the recommended require("codecompanion").setup({
extensions = {
mcphub = {
callback = "mcphub.extensions.codecompanion",
opts = {
show_result_in_chat = true, -- Show mcp tool results in chat
make_vars = true, -- Convert resources to #variables
make_slash_commands = true, -- Add prompts as /slash commands
}
}
}
}) and I've studied I've looked at #101 and #110. However, in the chat only 🤔 I can confirm that codecompanion's extensions seems to be configured correctly:
gets me
And also no mcphub-related variables are registered
What's a good way to debug this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What cmp provided are you using? Do you have
Can you go to the location where the mcphub.nvim is downloaded mostly at mcphub.nvim/lua/mcphub/extensions/codecompanion/utils.lua Lines 231 to 256 in bd3534e Thank you! |
Beta Was this translation helpful? Give feedback.
That was it! Now I can see vars and slash commands.
That is excellent. I would love to curate the tools exposed to an LLM rather than providing it with everything all the time.
The reason for those names is that stole
servers.json
from no other than olimorris's .co…