get_session_info
Check the current session state to identify the active branch and Infrahub address, enabling you to confirm which branch a write targets or whether a new session branch will be created.
Instructions
Return the current MCP session state — call before writes to know which branch they target.
Reports the active session branch (if any) and the Infrahub instance address.
A session branch is lazily auto-created on the first write tool call
(node_upsert / node_delete / mutate_graphql) and is named
mcp/session-YYYYMMDD-<hex>. Before that first write, session_branch
is None and all read tools target the default branch.
Typical uses:
Confirm which branch a proposed change would merge from.
Decide whether a write is about to open a new session branch.
Display the active branch to the user.
Returns:
Dict with session_branch (str or null), infrahub_address, and has_session_branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||