SuperAPI AI Directory

overseer-nvim-mcp

Runs long-running commands a coding agent starts in Neovim (dev servers, watchers) as overseer.nvim tasks you can watch and stop from your task list.

Open website

About this tool

Purpose

overseer-nvim-mcp is an MCP (Model Context Protocol) server designed to bridge the gap between a coding agent's shell tool and the overseer.nvim task list in Neovim. Long-running commands that the agent starts in its own shell, such as a dev server, are otherwise invisible in the overseer task list, cannot be stopped from the list, and leave an orphaned process tree when the session ends. This server makes the agent's long-running commands real overseer tasks, so they get the same control as tasks the user starts manually.

Main capabilities

The server provides seven tools, each of which executes nvim_exec_lua against overseer over msgpack-RPC:

  • overseer_list_tasks: lists tasks, reporting the source (agent or user).
  • overseer_tail: follows task output, supports wait_for regex to wait for a matching line, task exit, or timeout, and returns the total cursor and from index.
  • overseer_run: runs commands that do not exit on their own (such as dev servers, file watchers, --watch tests), supports settle_ms to briefly wait for output or exit.
  • overseer_restart: restarts a task; force is required to operate on a running user task.
  • overseer_stop: stops a task; force is required to operate on a running user task.
  • overseer_dispose: disposes of a task; force is required to operate on a running user task.
  • overseer_list_templates: lists the task templates discovered by overseer providers, returning the raw result, including description, parameters, running task IDs, and so on. Tasks can be addressed by numeric ID or by case-insensitive name substring. When a substring matches multiple tasks, it errors and lists the candidates, requiring a numeric ID.

Usage

The server communicates over stdio and is started by the MCP client. The command is always the same. The client must run in a Neovim terminal buffer, because the server needs to inherit the $NVIM socket. The tools appear the next time the session starts, because the MCP server connects at startup. If the tools do not appear, it is usually because$NVIM not reaching the server environment.

Configuration examples:

  • Codex: Add an env_vars line in ~/.codex/config.toml, which must include NVIM.
  • Gemini: Configure in ~/.gemini/config/mcp_config.json; the user global file is the only place where MCP servers are loaded.
  • Antigravity: Configure in settings.json or opencode.json.
  • mcphub: Add an env block in the servers configuration, which must include NVIM.
  • LazyVim: Enable the overseer.nvim extra (:LazyExtras select editor.overseer), restart Neovim, then configure the MCP client as described above.

The server also publishes two drivable features:

  • Prompts: Appear as slash commands (such as /mcp__overseer__...), including directory_local_task (define tasks for projects without npm scripts, Makefile, or Taskfile) and diagnose (explain why overseer did not show the expected tasks).
  • Resources: Attachable resources, including overseer://tasks (the entire task list JSON) and overseer://task/{id}/output (output of a single task).

Applicable scenarios

  • The agent needs to start long-running commands such as development servers, file watchers, or --watch test runs.
  • The user wants these commands to appear in the overseer task list and to be able to monitor and stop them from the list.
  • Need to avoid processes started in the agent shell becoming orphaned after the session ends.
  • Need the agent to inspect task templates, run tasks by name, track output, and clean up its own tasks.

Limitations

  • Requires Neovim and overseer.nvim (tested against v2.1.0).
  • The MCP client must run in a Neovim terminal buffer to inherit the $NVIM socket.
  • If $NVIM is not set, the server registers no tools, and running outside Neovim is a no-op rather than an error.
  • Some clients (such as Codex CLI, Antigravity CLI) do not automatically use the server; you need to explicitly mention overseer in the prompt or add instructions in a project context file (such as AGENTS.md, GEMINI.md).
  • overseer_run is suitable for commands that do not exit on their own; short commands should use the agent's regular shell tools.
  • overseer_list_templates returning an empty list is normal, meaning there are no runnable tasks.
  • The server contains no provider-specific knowledge and does not filter or rewrite results.
  • Wait operations execute in Node to avoid blocking Neovim.
  • exit_code in the output is missing while the task is running and appears after it exits.
  • The license is MIT.