FabricFabricSDK
Portal SDK

Identity

Who am I, what orgs do I belong to, which org am I currently acting as.

Three tools for resolving and switching the active actor. Every other tool implicitly scopes to the current organization, so these are typically the first calls in a session.

fabric_get_identity

Returns the authenticated user plus their current active organization.

> Who am I logged in as on Fabric?

Output shape:

{
  user: { id, email, name },
  organization: { id, slug, name, role }
}

fabric_list_organizations

Enumerates all organizations the user belongs to with their role in each.

> What orgs do I have on Fabric?

Output:

{ organizations: Array<{ id, slug, name, role, isActive }> }

fabric_switch_organization

Sets the active org for subsequent calls in this session.

> Switch me to the acme org.

Input:

{ organizationSlugOrId: string }

Server resolves by slug or id — pass whichever you have. The switch persists for the lifetime of the MCP session (until the client reconnects).

Notes

  • The role field is one of owner / admin / member. RBAC checks apply to subsequent operations: a member cannot create projects unless granted authority for that resource type.
  • Personal context (no org) is represented by organization: null on fabric_get_identity.