WorkOS integration
Enterprise-ready authentication and identity API. Provides SSO (SAML/OIDC), Directory Sync (SCIM), User Management with magic auth and MFA, Organizations, Audit Logs, and a hosted Admin Portal that lets your customers configure their own SSO and SCIM connections. Built for B2B SaaS apps that need to onboard enterprise customers without writing one-off integrations per identity provider.
Say what should happen.
The workflow builds itself.
Common WorkOS use cases
- webhook handlers
- support tools
- offboarding tenants
- offboarding
- GDPR erasure
- team invites
- tenant rename
- MFA login step
- user migration
- custom login UI
What you can do with WorkOS
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Organization, 5 operations
create_organizationCreate organizationPOSTAgents: ask firstCreates a new organization (enterprise tenant).delete_organizationDelete organizationDELETEAgents: ask firstPermanently deletes an organization.get_organizationGet organizationGETAgents: ask firstRetrieves a single organization by id.list_organizationsList organizationsGETAgents: ask firstLists organizations (your enterprise tenants).update_organizationUpdate organizationPUTAgents: ask firstUpdates an organization's name, metadata, or domains.
User, 5 operations
create_userCreate userPOSTAgents: ask firstCreates a managed user account.delete_userDelete userDELETEAgents: ask firstPermanently deletes a managed user.get_userGet userGETAgents: ask firstRetrieves a single managed user by id.list_usersList usersGETAgents: ask firstLists users managed by WorkOS User Management.update_userUpdate userPUTAgents: ask firstUpdates a managed user's profile.
Auth factor, 3 operations
challenge_mfa_factorChallenge mfa factorPOSTAgents: ask firstCreates an MFA challenge against an enrolled factor.enroll_mfa_factorEnroll mfa factorPOSTAgents: ask firstEnrolls a TOTP or SMS MFA factor for a user.verify_mfa_challengeVerify mfa challengePOSTAgents: ask firstVerifies an MFA OTP code against an open challenge.
Connection, 3 operations
delete_connectionDelete connectionDELETEAgents: ask firstPermanently deletes an SSO connection.get_connectionGet connectionGETAgents: ask firstRetrieves a single SSO connection by id.list_connectionsList connectionsGETAgents: ask firstLists SSO connections (SAML, OIDC, OAuth) configured for your application.
Directory, 3 operations
delete_directoryDelete directoryDELETEAgents: ask firstPermanently deletes a SCIM directory.get_directoryGet directoryGETAgents: ask firstRetrieves one SCIM directory by id.list_directoriesList directoriesGETAgents: ask firstLists SCIM directories synced from identity providers.
Organization membership, 3 operations
create_organization_membershipCreate organization membershipPOSTAgents: ask firstAdds a user to an organization as a member.delete_organization_membershipDelete organization membershipDELETEAgents: ask firstRemoves a user from an organization.list_organization_membershipsList organization membershipsGETAgents: ask firstLists user-to-organization memberships.
Audit log export, 2 operations
create_audit_log_exportCreate audit log exportPOSTAgents: ask firstStarts an audit-log export job.get_audit_log_exportGet audit log exportGETAgents: ask firstGets an audit-log export's status and download URL.
Directory group, 2 operations
get_directory_groupGet directory groupGETAgents: ask firstRetrieves a single directory group by id.list_directory_groupsList directory groupsGETAgents: ask firstLists SCIM-synced directory groups.
Directory user, 2 operations
get_directory_userGet directory userGETAgents: ask firstRetrieves a single directory user by id.list_directory_usersList directory usersGETAgents: ask firstLists users synced via SCIM from an identity provider.
Session, 2 operations
authenticate_with_passwordAuthenticate with passwordPOSTAgents: ask firstAuthenticates a user with email + password.authenticate_with_refresh_tokenAuthenticate with refresh tokenPOSTAgents: ask firstRefreshes an access_token using a refresh_token.
Audit log event, 1 operation
create_audit_log_eventCreate audit log eventPOSTAgents: ask firstRecords an audit-log event for a tenant.
Magic auth, 1 operation
send_magic_auth_codeSend magic auth codePOSTAgents: ask firstSends a passwordless Magic Auth code by email.
Portal link, 1 operation
generate_admin_portal_linkGenerate admin portal linkPOSTAgents: ask firstGenerates a single-use Admin Portal URL for a tenant.
Use WorkOS from Claude Code, Cursor or Codex
Connect WorkOS in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its WorkOS operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect WorkOS
- Create your workspace
Sign up free. Nothing to install.
- Connect WorkOS once
Add your WorkOS connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
WorkOS integration FAQ
What can you do with the WorkOS integration?
LiveContext exposes 33 operations on WorkOS, covering organization, user, auth factor and connection. Common uses include webhook handlers, support tools and offboarding tenants.
