mcphub.nvim and CopilotChat.nvim integration #216
Replies: 2 comments 2 replies
-
Thanks @deathbeam for the integration. I will try to add copilotchat as an extension so that users can just enable or disable in the mcphub config. Something like: extensions = {
copilotchat = {
enabled = true,
convert_tools_to_functions = true,
convert_resources_to_functions = true,
add_mcp_prefix = false,
}, This way we can auto approve some tools or show confirmation prompt with what's being etc and also user can avoid changing the integration code when something changes. |
Beta Was this translation helpful? Give feedback.
-
Native CopilotChat Extension AvailableWe've added native CopilotChat support to mcphub.nvim that's much cleaner than the manual integration. Migration RequiredIf you're using the old manual integration code, please remove it completely and use the new native extension instead. New Setup1. Install CopilotChat normally: {
"CopilotC-Nvim/CopilotChat.nvim",
build = "make tiktoken",
opts = {},
} 2. Enable mcphub CopilotChat extension: require("mcphub").setup({
extensions = {
copilotchat = {
enabled = true,
convert_tools_to_functions = true, -- Convert MCP tools to @functions
convert_resources_to_functions = true, -- Convert MCP resources to @functions
add_mcp_prefix = false, -- Add "mcp_" prefix to function names
},
}
}) What You Get
Documentation: https://ravitemer.github.io/mcphub.nvim/extensions/copilotchat.html Make sure to remove any previous mcphub + CopilotChat integration code before switching to this native extension. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So it took me a while to finish the refactor in CopilotChat.nvim required for this but its finally done, so now mcphub.nvim integration is pretty easy and looks like this.
Stuff mostly works now so I feel like sharing this also here might be useful
Beta Was this translation helpful? Give feedback.
All reactions