PromptBranch

v0.2.6
io.github.PromptBranch/promptbranch Checked 12 hours ago Published 2 months ago

Local-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.

ParameterTypeDescription
prompt *stringPrompt title (exact or unique substring) or id
branchstringBranch name; defaults to the current version's branch
variablesobjectValues for {{variables}}. If the response says needs_input, ask the user for every missing variable and call get_prompt again.
versionintegerPer-branch version number; defaults to the current version

search_prompts

Full-text search over prompt titles, descriptions, tags, notes and version content.

ParameterTypeDescription
query *string
collectionstringRestrict to this collection (name)
limitintegerMax results (default 10)
tagstringRestrict to prompts carrying this tag (name)

list_prompts

List prompts in the library, optionally filtered by collection or tag.

ParameterTypeDescription
collectionstring
tagstring

report_run

Report that a prompt version was used: which tool/model ran it, the outcome rating (1–5) and a short result summary.

ParameterTypeDescription
prompt *stringPrompt title (exact or unique substring) or id
tool *stringTool that ran the prompt, e.g. 'kimi-cli', 'mcp'
metricsobjectArbitrary structured metrics (tokens, latency…)
modelstring
outcomeRatinginteger
resultSummarystring
versionintegerPer-branch version number; defaults to the current version

add_note

Attach a freeform note to a prompt (or a specific version of it).

ParameterTypeDescription
body *string
prompt *stringPrompt title (exact or unique substring) or id
versionIdstringSpecific 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.

ParameterTypeDescription
newContent *string
prompt *stringPrompt title (exact or unique substring) or id
rationale *stringWhy this change improves the prompt
baseVersionintegerVersion number to base the suggestion on; defaults to current