Get Session Info
get_session_infoReturns the current MCP session state, including the active session branch and Infrahub instance address, so you can 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||