ProductBrain

v0.1.0
io.github.moxzas/productbrain Checked 4 days ago Published 1 month ago

Drive your ProductBrain product plan (goals, needs, bets, jobs) from any MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_nodes

List nodes in a project (bulk read). Optional type (goal|need|approach|job|task) and iteration filters.

ParameterTypeDescription
iterationstring
projectIdstring
typestring

get_tree

Get a node in context. relation = context (ancestors+siblings+children, default) | ancestors | subtree | siblings. The endpoint's own names (up | down | lateral | context) are accepted too. There is no children-only view: subtree/children both return the full subtree.

ParameterTypeDescription
nodeId *string
projectIdstring
relationstring

get_changelog

Read the plan's history: every add/update/delete/restore, newest first, each attributed to the app or to a named agent. This is how you find a node AFTER it was deleted — /nodes can no longer see it, but restore needs its id. Filter by nodeId, action (add|update|delete|restore), source (app|api_key), agentId, since/before (ISO). Page with before=<_meta.next_before>, never an offset. Then undo with mutate {action:'restore', nodeId}, restoring a parent before its children.

ParameterTypeDescription
actionstring
agentIdstring
beforestring
limitnumber
nodeIdstring
projectIdstring
sincestring
sourcestring

mutate

Create/update/delete plan nodes and phases. action = add|update|delete|batch|addIteration|updateIteration|deleteIteration|classify. Put the rest of the v1 mutate body in payload (node | nodeId+data | mutations | iteration). Pass idempotencyKey (a UUID) to make a retry safe — a replay returns the original result instead of double-creating.

ParameterTypeDescription
action *string
payload *objectrest of the mutate body, e.g. { node: {...} } or { nodeId, data } or { mutations: [...] }
idempotencyKeystring
projectIdstring

list_iterations

List phases/iterations. current:true returns the active phase; status:active filters to active.

ParameterTypeDescription
currentboolean
projectIdstring
statusstring

run_workflow

Run the Story-Mapping methodology workflow (flow = add | task-curate | phase-assign). Returns the next prompt + opaque state, or a terminal changeset with a focus hint. Put the v1 workflow body in body.

ParameterTypeDescription
body *objectworkflow request: { flow, state?, response? }
projectIdstring

set_view

Drive the live canvas. command = { type: setViewMode|selectIteration|zoomToNode|expandNode|collapseNode|focusGoals, ... }.

ParameterTypeDescription
command *object
projectIdstring

read_view

Read what the user is looking at now: view_mode, selected_iteration, expanded_nodes, focused_goals, selected_node.

ParameterTypeDescription
projectIdstring

list_webhooks

List the outbound webhooks registered on a project (secrets are never returned). Shows lastStatus/lastDeliveryAt so you can spot a failing receiver.

ParameterTypeDescription
projectIdstring

create_webhook

Register an outbound webhook. events defaults to all (node.added|updated|deleted, iteration.added|updated|deleted). Returns the signing secret ONCE — store it immediately.

ParameterTypeDescription
url *stringhttps URL; must be publicly routable
eventsarray
projectIdstring

update_webhook

Reconfigure a webhook in place (same id). Change url and/or events without minting a new secret, or pass rotateSecret:true to mint a new one (returned once). Prefer this over delete+recreate, which breaks the receiver.

ParameterTypeDescription
id *string
eventsarray
projectIdstring
rotateSecretboolean
urlstring

delete_webhook

Remove a webhook registration. Irreversible — the secret is gone; re-registering mints a new one.

ParameterTypeDescription
id *string
projectIdstring

list_members

List the members (human and agent seats) on a project, plus the owner. Any member can read this.

ParameterTypeDescription
projectIdstring

add_agent_seat

Mint an agent seat on a project (owner only, Team tier). Returns a pb_ API key ONCE — store it now, there is no retrieval.

ParameterTypeDescription
name *stringdisplay name for the agent seat
projectIdstring

invite_contributor

Invite a guest contributor by email to one or more projects you own (owner only, Team tier). Sends a passwordless Clerk invite; one seat regardless of project count.

ParameterTypeDescription
email *string
projectIds *arrayprojects to scope the contributor to — you must own all of them

revoke_member

Remove a member (human or agent) from a project. Removing an agent seat revokes its API key once its last membership is gone.

ParameterTypeDescription
userId *string
projectIdstring

list_projects

List the projects you own or are a member of. Archived ones are hidden unless includeArchived is true.

ParameterTypeDescription
includeArchivedboolean

create_project

Create a project you own and seed its system "Later" phase, so nodes can be added immediately. id defaults to a slug of the name.

ParameterTypeDescription
name *string
idstring2-63 chars, lowercase letters/numbers/dashes

rename_project

Change a project's display name (owner only). The id is immutable — keep using the same projectId afterwards.

ParameterTypeDescription
name *string
projectIdstring

archive_project

Archive (archived:true) or unarchive (false) a project you own. Archiving hides it from list_projects without deleting anything — reversible, unlike delete.

ParameterTypeDescription
archived *boolean
projectIdstring

export_okf

Serialize the whole plan to a portable OKF file bundle (markdown with frontmatter, one file per node). Use when you want the plan as files — for a repo, a diff, or handing it to a tool that reads markdown — rather than as JSON.

ParameterTypeDescription
projectIdstring

tier_status

Read your own tier, API access, AI-credit balance, seat/project/node limits and billing period. Check this BEFORE a large run so you self-throttle instead of discovering a 402 mid-flight.

submit_feedback

Tell the ProductBrain team how PB should improve: a feature you needed, friction you hit, a bug, or a general note. Stored for the team to read, not added to any plan. Make the summary self-explanatory (there is no reply channel). Keep credentials, customer records and confidential plan content out. Max 20 per 24h, so batch related points.

ParameterTypeDescription
kind *string
summary *stringone line, max 200 chars
contextobjecte.g. { endpoint, workflow } (max 4KB)
detailsstringwhat you tried, what happened, what would have helped (max 5000 chars)
projectIdstring