planlock-mcp
v1.0.0Plan Lock MCP: one-at-a-time plan execution enforcer for local LLMs, exposed as an MCP server.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plan_create
Create a new plan and write it to the active plan file. The plan file is ``plan.md`` in a project root and ``.opencode/plan.md`` everywhere else; see ``_plan_paths`` for the rule. Args: steps: List of step descriptions to add to the plan. Returns: A message reporting the number of created steps and the absolute path of the plan file on success, or an error message on failure.
| Parameter | Type | Description |
|---|---|---|
steps * | array |
plan_next
Activate the next pending plan step ([~]) and return it. Returns: The ID, absolute plan path and text of the next step; an error message if a lock is already active or the plan file is missing; 'PLAN_DONE' when all steps are done.
plan_done
Mark the active [~] step as completed [x] and append a note. Args: id: ID of the completed step. note: Short completion note to append to the step. Returns: A success or error message.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
note * | string |
plan_fail
Mark the active [~] step as failed [!] and append a reason. Args: id: ID of the failed step. reason: Reason for the failure. Returns: A success or error message.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
reason * | string |