MCP tools

emfirge_rollback_branch_to_count

Truncate a branch’s ordered change log so only its first N changes remain.

Parameters

branch_id: string · required; target_change_count: integer ≥ 0 · required; branch_revision: string · optional

MCP ask / arguments
{ "branch_id": "branch_456", "target_change_count": 2, "branch_revision": "3f9a…c21e" }

Returns

The response is JSON shaped for the operation. The fields and semantics are described below.

JSON response
{ "branch_id": "branch_456", "name": "restrict-public-access", "status": "open", "base_analysis_id": "analysis_123", "num_changes": 2 }

Validation, behavior, and limits

target_change_count must be between zero and the current number of changes; an invalid target returns HTTP 422.

Pass branch_revision from emfirge_get_branch to reject a stale view with HTTP 409.

Use 0 to return a branch to its base state in one call. Only the branch model changes, never AWS.

Based on the Emfirge MCP and engine source.View source
Documentation