Get Session Info
get_session_infoCheck the current MCP session state before writes to confirm the active branch and Infrahub instance address.
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 | |||