♻️ refactor(config): streamline plugins and LSP configurations for improved maintainability
This commit is contained in:
21 files changed
+171
-1281
No files matched your search
@@ -158,26 +158,9 @@ avante.setup({
|
||||
debounce = 600,
|
||||
throttle = 600,
|
||||
},
|
||||
system_prompt = function()
|
||||
local hub = require('mcphub').get_hub_instance()
|
||||
return hub:get_active_servers_prompt()
|
||||
end,
|
||||
custom_tools = function()
|
||||
return {
|
||||
require('mcphub.extensions.avante').mcp_tool(),
|
||||
}
|
||||
end,
|
||||
disabled_tools = {
|
||||
'list_files',
|
||||
'search_files',
|
||||
'read_file',
|
||||
'create_file',
|
||||
'rename_file',
|
||||
'delete_file',
|
||||
'create_dir',
|
||||
'rename_dir',
|
||||
'delete_dir',
|
||||
'bash',
|
||||
'replace_in_file',
|
||||
'web_search',
|
||||
},
|
||||
slash_commands = {},
|
||||
})
|
||||
@@ -1,41 +0,0 @@
|
||||
local mcphub = require('mcphub')
|
||||
|
||||
mcphub.setup({
|
||||
port = 37373,
|
||||
config = vim.fn.expand('~/.config/mcphub/servers.json'),
|
||||
native_servers = {},
|
||||
|
||||
auto_approve = false,
|
||||
auto_toggle_mcp_servers = true,
|
||||
extensions = {
|
||||
avante = {
|
||||
enabled = true,
|
||||
make_slash_commands = true,
|
||||
},
|
||||
},
|
||||
|
||||
ui = {
|
||||
window = {
|
||||
width = 0.8,
|
||||
height = 0.8,
|
||||
relative = 'editor',
|
||||
zindex = 50,
|
||||
border = 'rounded',
|
||||
},
|
||||
wo = {},
|
||||
},
|
||||
|
||||
on_ready = function(hub) end,
|
||||
on_error = function(err) end,
|
||||
|
||||
use_bundled_binary = true,
|
||||
|
||||
-- server_url = nil, -- defaults to `http://localhost:port`
|
||||
shutdown_delay = 600000, -- 10 minutes
|
||||
log = {
|
||||
level = vim.log.levels.INFO,
|
||||
to_file = true,
|
||||
file_path = vim.fn.stdpath('state') .. '/mcphub.log',
|
||||
prefix = 'MCPHub',
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user