PromptBranch
v0.2.6Local-first MCP server for versioning, searching, evaluating, and improving AI prompts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_prompt
Fetch and render a prompt. If status is needs_input, do not execute content: ask the user for every missingVariables value, then call get_prompt again with variables. Execute content only when status is ready. Defaults to the current (preferred) version; pin with version and/or branch.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Prompt title (exact or unique substring) or id |
branch | string | Branch name; defaults to the current version's branch |
variables | object | Values for {{variables}}. If the response says needs_input, ask the user for every missing variable and call get_prompt again. |
version | integer | Per-branch version number; defaults to the current version |
search_prompts
Full-text search over prompt titles, descriptions, tags, notes and version content.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
collection | string | Restrict to this collection (name) |
limit | integer | Max results (default 10) |
tag | string | Restrict to prompts carrying this tag (name) |
list_prompts
List prompts in the library, optionally filtered by collection or tag.
| Parameter | Type | Description |
|---|---|---|
collection | string | |
tag | string |
report_run
Report that a prompt version was used: which tool/model ran it, the outcome rating (1–5) and a short result summary.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Prompt title (exact or unique substring) or id |
tool * | string | Tool that ran the prompt, e.g. 'kimi-cli', 'mcp' |
metrics | object | Arbitrary structured metrics (tokens, latency…) |
model | string | |
outcomeRating | integer | |
resultSummary | string | |
version | integer | Per-branch version number; defaults to the current version |
add_note
Attach a freeform note to a prompt (or a specific version of it).
| Parameter | Type | Description |
|---|---|---|
body * | string | |
prompt * | string | Prompt title (exact or unique substring) or id |
versionId | string | Specific version id; omit for a prompt-level note |
suggest_variation
Propose a rewritten version of a prompt. Creates a PENDING suggestion that a human must approve in the PromptBranch app before it becomes usable — agents propose, humans approve.
| Parameter | Type | Description |
|---|---|---|
newContent * | string | |
prompt * | string | Prompt title (exact or unique substring) or id |
rationale * | string | Why this change improves the prompt |
baseVersion | integer | Version number to base the suggestion on; defaults to current |