reset_session_branch
Reset the active session branch to control which branch your writes target. Clear cached branch for a fresh one or switch to a specific branch.
Instructions
Reset or switch the active session branch for the current MCP session.
Use this to recover or take control of which branch your writes target:
No
branch— clears the cached session branch; the next write auto-creates a fresh one. Useful after you have merged your work and want to start a new change set.With
branch— points this session at the named branch. If it does not exist and the name matches the configured branch pattern, it is created and reported. The instance default branch and merged/read-only branches are rejected.
Note: a merged or deleted session branch is recovered automatically on the next write — this tool is the explicit override on top of that.
Affects only the calling session; other sessions are unaffected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Target branch. Omit to drop the cached session branch so the next write creates a fresh one. Provide a name to switch this session to that branch (created if it does not exist and the name matches the configured pattern). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||