ProductBrain
v0.1.0Drive 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.
search
Semantic search over the ProductBrain plan. Returns nodes ranked by similarity with ancestor paths. Use this FIRST for any lookup — never scan all nodes by label.
| Parameter | Type | Description |
|---|---|---|
q * | string | natural-language query |
projectId | string |
list_nodes
List nodes in a project (bulk read). Optional type (goal|need|approach|job|task) and iteration filters.
| Parameter | Type | Description |
|---|---|---|
iteration | string | |
projectId | string | |
type | string |
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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
projectId | string | |
relation | string |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
agentId | string | |
before | string | |
limit | number | |
nodeId | string | |
projectId | string | |
since | string | |
source | string |
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.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
payload * | object | rest of the mutate body, e.g. { node: {...} } or { nodeId, data } or { mutations: [...] } |
idempotencyKey | string | |
projectId | string |
list_iterations
List phases/iterations. current:true returns the active phase; status:active filters to active.
| Parameter | Type | Description |
|---|---|---|
current | boolean | |
projectId | string | |
status | string |
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.
| Parameter | Type | Description |
|---|---|---|
body * | object | workflow request: { flow, state?, response? } |
projectId | string |
set_view
Drive the live canvas. command = { type: setViewMode|selectIteration|zoomToNode|expandNode|collapseNode|focusGoals, ... }.
| Parameter | Type | Description |
|---|---|---|
command * | object | |
projectId | string |
read_view
Read what the user is looking at now: view_mode, selected_iteration, expanded_nodes, focused_goals, selected_node.
| Parameter | Type | Description |
|---|---|---|
projectId | string |
list_webhooks
List the outbound webhooks registered on a project (secrets are never returned). Shows lastStatus/lastDeliveryAt so you can spot a failing receiver.
| Parameter | Type | Description |
|---|---|---|
projectId | string |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | https URL; must be publicly routable |
events | array | |
projectId | string |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
events | array | |
projectId | string | |
rotateSecret | boolean | |
url | string |
delete_webhook
Remove a webhook registration. Irreversible — the secret is gone; re-registering mints a new one.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
projectId | string |
list_members
List the members (human and agent seats) on a project, plus the owner. Any member can read this.
| Parameter | Type | Description |
|---|---|---|
projectId | string |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | display name for the agent seat |
projectId | string |
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.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
projectIds * | array | projects 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.
| Parameter | Type | Description |
|---|---|---|
userId * | string | |
projectId | string |
list_projects
List the projects you own or are a member of. Archived ones are hidden unless includeArchived is true.
| Parameter | Type | Description |
|---|---|---|
includeArchived | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
id | string | 2-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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
projectId | string |
archive_project
Archive (archived:true) or unarchive (false) a project you own. Archiving hides it from list_projects without deleting anything — reversible, unlike delete.
| Parameter | Type | Description |
|---|---|---|
archived * | boolean | |
projectId | string |
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.
| Parameter | Type | Description |
|---|---|---|
projectId | string |
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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
summary * | string | one line, max 200 chars |
context | object | e.g. { endpoint, workflow } (max 4KB) |
details | string | what you tried, what happened, what would have helped (max 5000 chars) |
projectId | string |