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

655 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 win-nvim (Neovim) MCP server.

  • 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 consolidated MCP tool registry (nvim_buffer, nvim_workspace, nvim_intelligence, nvim_ui, nvim_exec).
  • If the tool is eagerly loaded, use it natively as an agent tool. If lazy-loaded, invoke it via the call_mcp_tool mechanism.