PlanWright
API Reference

Reference

API Reference

Complete reference for Planwright's MCP tools, permissions, lane state machine, audit events, and common errors.

MCP Tools Reference

All tools are prefixed with planwright_ and accessed via the MCP protocol at mcp.planwright.tools/mcp.

Session Setup

planwright_set_repo

Set the active project for this session. Required before any other tool call.

Parameters

githubRepo(string)GitHub repo in 'owner/repo' format
projectId(uuid)Project UUID (for projects without linked repos)
workspaceSlug(string)Disambiguate when repo exists in multiple workspaces

planwright_list_workspaces

List workspaces you have access to with role and project counts.

planwright_list_projects

List projects you have access to with their IDs and linked GitHub repos.

Parameters

workspaceSlug(string)Filter to a specific workspace

Objectives

planwright_create_objective

Create a new objective in the backlog.

Parameters

title*(string)Outcome-focused title
description*(string)Detailed description (Markdown)
acceptanceCriteria(string)Bullet-point acceptance criteria
priority(1-5)1=urgent, 5=someday. Default 3
initiativeSlug(string)Initiative to assign to
labels(string[])Labels to apply (created if missing)
strategic_focus*(object)Strategic classification

planwright_list_objectives

List objectives in a lane. Defaults to 'scheduled'.

Parameters

lane(string)backlog | scheduled | in_progress | acceptance | done
initiativeSlug(string)Filter to an initiative
labelName(string)Filter to a label

planwright_get_objective

Fetch full objective details including agent run history.

Parameters

objectiveId*(uuid)Objective to fetch

planwright_update_objective

Update objective metadata (not lane — use transitions for that).

Parameters

objectiveId*(uuid)Objective to update
title(string)New title
description(string)New description
priority(1-5)New priority
strategic_focus(object)Strategic classification

planwright_schedule_objective

Move a backlog objective to scheduled lane. Human only.

Parameters

objectiveId*(uuid)Objective to schedule

Agent Execution

planwright_claim_objective

Claim a scheduled objective and start an agent run.

Parameters

objectiveId*(uuid)Objective to claim
agentKind*(string)e.g. 'claude-code', 'cursor'
model(string)Model used, e.g. 'claude-sonnet-4'

planwright_check_alignment

Verify proposed work aligns with claimed objective before coding.

Parameters

agentRunId(uuid)Active agent run ID
proposedWork(string)One sentence describing what you'll implement

planwright_append_plan

Post the agent's decomposition plan to the run log.

Parameters

agentRunId*(uuid)Active agent run ID
planMarkdown*(string)Decomposition plan in Markdown

planwright_record_diff

Record diff summary and test results for the agent run.

Parameters

agentRunId*(uuid)Active agent run ID
diffSummary*(string)Human-readable summary of changes
filesChanged(number)Number of files changed
testsPassed(boolean)Whether tests passed
commitSha(string)Git commit SHA (required for direct mode)

planwright_request_acceptance

Move objective to acceptance lane for human review.

Parameters

objectiveId*(uuid)Objective to submit
agentRunId*(uuid)Active agent run ID
summary*(string)What you did in this run
userSummary*(string)Plain English summary for release notes
driftScore(0-100)Self-assessed alignment score, 0 = perfect alignment
driftNote(string)One sentence on why delivery diverged (required if driftScore > 0)

planwright_append_note

Add a progress note to the agent run log.

Parameters

agentRunId*(uuid)Active agent run ID
note*(string)Free-form note

Initiatives

planwright_list_initiatives

List initiatives for the current workspace.

planwright_create_initiative

Create a new initiative.

Parameters

name*(string)Initiative name
description(string)What this initiative delivers
targetDate(ISO 8601)Target completion date

planwright_update_initiative

Update an initiative's metadata.

Parameters

initiativeId*(uuid)Initiative to update
name(string)New name
description(string)New description
targetDate(ISO 8601)New target date

planwright_delete_initiative

Delete an initiative. Objectives are preserved with cleared assignment.

Parameters

initiativeId*(uuid)Initiative to delete

Context Files

planwright_list_context_files

List all context files for the current project.

planwright_get_context_file

Read a specific context file by filename.

Parameters

filename*(string)e.g. 'CLAUDE.md', 'architecture.md'

planwright_push_context_file

Create or update a context file.

Parameters

filename*(string)File identifier
content*(string)Full file content
description(string)One-line summary

Clarity & Quality

planwright_flag_clarity

Flag an objective as having ambiguous requirements.

Parameters

objectiveId*(uuid)Objective to flag
concerns*(string[])Specific concerns (1-10 items)

planwright_list_unenriched

List objectives/initiatives missing intentSummary.

planwright_list_unclassified

List objectives missing strategic_focus.

Utilities

planwright_get_board_url

Get the board URL for the current project.

Parameters

labelName(string)Filter URL to a specific label

planwright_list_my_bugs

List bugs for this project.

Parameters

agentKind(string)Filter by agent kind

planwright_get_doc_suggestions

Get pending documentation gap suggestions.

Permissions & Roles

RolePermissions
ownerFull access. Manage workspace settings, billing, members. Transfer ownership.
adminManage members, projects. Cannot transfer ownership or delete workspace.
memberCreate/edit objectives, manage initiatives. Cannot manage workspace settings.
viewerRead-only access to board and objectives.
service tokenScoped to one project. Can claim/execute work. Cannot modify workspace.

Lanes & Transitions

Objectives move through lanes via a strict state machine. Agents cannot directly mutate lanes — they request transitions via MCP tools, and the server validates and records each change.

LaneDescriptionValid Transitions
backlogObjectives not yet ready for agent pickup. Human-managed.scheduled (human)
scheduledReady for agent pickup. Agents claim from here.in_progress (agent claim)
in_progressActive agent work. One agent run at a time.acceptance (agent request), scheduled (clarity flag)
acceptanceAwaiting human review.done (human accept), scheduled (human reject)
doneCompleted and accepted.archived (auto after retention)

Audit Events

Every MCP tool call produces a hash-chained, ECDSA P-256-signed audit record. These records are immutable and satisfy SOC 2 Trust Services Criteria for AI-generated code.

Event TypeDescription
objective.createdNew objective added to backlog
objective.updatedObjective metadata changed
objective.lane_changedObjective moved between lanes
objective.clarity_flaggedAgent flagged ambiguous requirements
agent_run.startedAgent claimed objective
agent_run.plan_appendedAgent posted decomposition plan
agent_run.diff_recordedAgent recorded code changes
agent_run.note_appendedAgent added progress note
agent_run.completedAgent requested acceptance
acceptance.signedHuman approved the work
acceptance.rejectedHuman rejected the work
initiative.createdNew initiative created
initiative.updatedInitiative metadata changed
initiative.deletedInitiative removed

Error Codes

No project selected

Call planwright_set_repo first with your githubRepo or projectId

Invalid transition

Check the lane state machine. You may be trying an invalid lane change.

Actor type 'agent' cannot transition

This transition requires human action (e.g., scheduling, accepting)

Objective not found

Verify the objectiveId exists and you have access to the project

Agent run not found

Verify the agentRunId exists and belongs to the current objective

strategic_focus required

Provide a strategic_focus object with primary bucket and area

commitSha required

In direct mode, pass the commit SHA to record_diff

Strategic Focus Taxonomy

Every objective requires a strategic_focus classification. Use the primary bucket and area that best describes the objective's intent.

BUILD

  • PRODUCT_CAPABILITY — User-facing features
  • PLATFORM_INFRASTRUCTURE — Internal systems, tooling

GROW

  • REVENUE_ENABLEMENT — Billing, upsells, pricing
  • GO_TO_MARKET — Launch, marketing, positioning
  • MARKET_POSITIONING — Competitive, branding

TRUST

  • QUALITY_RISK_REDUCTION — Testing, reliability
  • COMPLIANCE_GOVERNANCE — Security, audits
  • CUSTOMER_ENABLEMENT — Docs, onboarding

SCALE

  • ECOSYSTEM_INTEGRATIONS — Third-party connections
  • ORGANIZATIONAL_SCALE — Team processes, hiring