Dive

Guides

Serve plans over MCP

Let Claude, Cursor and other MCP clients run your plans as tools.

dive mcp serve runs Dive as an MCP server over stdio. Any MCP client can then call your plans as tools.

Add Dive to a client

Point the client at dive mcp serve, and pass --dir with the project that holds your .dive/ directory. Clients start servers in a directory of their own choosing, so without --dir Dive may not find your plans.

claude mcp add dive -- dive mcp serve --dir /path/to/project

What the client sees

  • One tool per plan, named plan_<identifier> and titled with the plan's name. Its input schema is the plan's input_schema, and its description is the plan's description with the exemplars added. A plan that can't run here isn't offered, whether it's missing a server, a tool, a plan or an agent.
  • What a plan tool returns: the plan's result when it succeeds, or {error, kind?, step?, cause?} when it fails. See finish.
  • Tools for writing and testing plans, listed in MCP server tools. When the client changes a plan with them, Dive tells the client to reload its tool list, so a new plan can be called right away.

During a run

  • Progress. When the client asks for progress, Dive reports each step as it starts and the tokens spent so far.
  • Cancellation. When the client cancels the call, Dive stops the plan before its next step.
  • Questions. An ask step becomes an elicitation request, so the client's user answers it. If the client doesn't support elicitation, or nobody answers within 10 minutes, the step's whenUnanswered setting applies.
  • Long runs. A plan can take longer than a client's default tool-call timeout. Raise the timeout in the client if long plans are cut off.

On this page