How to use MCP servers from Neovim via Avante or CodeCompanion
언제 쓸까: You live in Neovim and don't want to switch to VS Code for MCP access.
사전 조건
- Neovim 0.10+ — brew install neovim
- Avante.nvim or CodeCompanion.nvim installed — Via your plugin manager (lazy.nvim/packer)
- mcphub.nvim + its Node dependency — See ravitemer.github.io/mcphub.nvim for install snippet
흐름
-
Install via plugin managerAdd ravitemer/mcphub.nvim to your lazy.nvim config with opts = { ... }.✓ 복사됨→ :MCPHub opens the management UI
-
Install a server from the marketplace:MCPHub marketplace — search 'github' and install.✓ 복사됨→ Server starts, tools registered
-
Use via AvanteIn Avante chat, ask a question — Avante picks up MCP tools.✓ 복사됨→ Tool calls visible in Avante output
결과: MCP tools usable inside your editor, no context switch.
함정
- Node not on PATH inside Neovim — Use an absolute path in config or ensure Neovim inherits your shell env