Skip to content

Commit 72f9d47

Browse files
committed
fix(nvim): disable mcphub vars for codecompanion v19
mcphub.nvim currently crashes on startup with CodeCompanion v19 because CodeCompanion renamed chat variables to editor_context. The upstream reports are ravitemer/mcphub.nvim#275 and ravitemer/mcphub.nvim#278. PR ravitemer/mcphub.nvim#276 was closed in favor of #279. #279 is still open and not merged, so use the upstream-recommended temporary workaround, make_vars = false. This keeps MCP tools and slash commands enabled, but disables MCP resources as CodeCompanion # context until the upstream v19 compatibility patch lands.
1 parent 5947af4 commit 72f9d47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dot_config/nvim/lua/plugins/codecompanion.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ return {
114114
callback = "mcphub.extensions.codecompanion",
115115
opts = {
116116
make_tools = true,
117-
make_vars = true,
117+
make_vars = false, -- TODO: re-enable after ravitemer/mcphub.nvim#279 lands
118118
make_slash_commands = true,
119119
show_result_in_chat = true,
120120
},

0 commit comments

Comments
 (0)