Files
mcp-memory/agent-rules/nvim_mcp_enforcement.md
T

716 B

Neovim MCP Enforcement Rule

When interacting with the user's Neovim editor (e.g., opening a file, moving the cursor, reading the active buffer, setting diagnostics), you MUST ALWAYS use the MCP tools provided by the linux-nvim (WSL/Linux) or win-nvim (Windows) MCP servers.

  • You are strictly forbidden from using bash scripts, nvim --server, or other raw terminal/shell hacks to remote-control Neovim.
  • You must rely entirely on the MCP tool registry (e.g., nvim_goto_line, nvim_get_active_buffer, nvim_get_cursor, nvim_get_visual_selection, nvim_set_diagnostics).
  • If the tool is eagerly loaded, use it natively as an agent tool. If lazy-loaded, invoke it via the call_mcp_tool mechanism.