get_session_info
Check the active MCP session branch and Infrahub instance address to confirm which branch writes will target before making changes.
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 | |||