cap153_nvim/lua/lazy/plugins/mcphub.lua
2025-04-21 22:18:24 +08:00

20 lines
708 B
Lua

return {
"ravitemer/mcphub.nvim",
dependencies = {
"nvim-lua/plenary.nvim", -- Required for Job and HTTP requests
},
-- comment the following line to ensure hub will be ready at the earliest
cmd = "MCPHub", -- lazy load by default
build = "npm install -g mcp-hub@latest", -- Installs required mcp-hub npm module
-- uncomment this if you don't want mcp-hub to be available globally or can't use -g
build = "bundled_build.lua", -- Use this and set use_bundled_binary = true in opts (see Advanced configuration)
config = function()
require("mcphub").setup({
use_bundled_binary = true,
auto_approve = true, -- Auto approve mcp tool calls
extensions = {
avante = {},
},
})
end,
}