-
-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy pathinit.lua
More file actions
57 lines (57 loc) · 1.44 KB
/
Copy pathinit.lua
File metadata and controls
57 lines (57 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
return {
"ravitemer/mcphub.nvim",
dependencies = {
"nvim-lua/plenary.nvim", -- Required for Job and HTTP requests
},
event = "User AstroFile",
cmd = "MCPHub",
opts = {},
specs = {
{
"olimorris/codecompanion.nvim",
optional = true,
opts = {
extensions = {
mcphub = {
callback = "mcphub.extensions.codecompanion",
opts = {
show_result_in_chat = true,
make_vars = false,
make_slash_commands = true,
},
},
},
},
},
{
"yetone/avante.nvim",
optional = true,
opts = {
system_prompt = function()
local hub = require("mcphub").get_hub_instance()
return hub and hub:get_active_servers_prompt() or ""
end,
-- The custom_tools type supports both a list and a function that returns a list. Using a function here prevents requiring mcphub before it's loaded
custom_tools = function()
return {
require("mcphub.extensions.avante").mcp_tool(),
}
end,
},
},
{
"CopilotC-Nvim/CopilotChat.nvim",
optional = true,
opts = {
extensions = {
copilotchat = {
enabled = true,
convert_tools_to_functions = true,
convert_resources_to_functions = true,
add_mcp_prefix = false,
},
},
},
},
},
}