identity
Okta MCP Integration for Vercel AI SDK
Connect Okta to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Okta to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Okta MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-okta": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=okta",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=okta --write=deny Why Use KosmoKrator Here
Expose only Okta instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Okta Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Okta integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__okta__okta_list_users | okta.okta_list_users | Read | List users in the Okta organization. Returns user profiles with IDs, names, emails, and status. Supports search filtering by name or email. |
integration__okta__okta_get_user | okta.okta_get_user | Read | Get details for a specific Okta user by ID or login email. Returns the full user profile including status, group memberships, and assigned applications. |
integration__okta__okta_get_current_user | okta.okta_get_current_user | Read | Get the profile of the currently authenticated Okta API token owner. Useful for verifying the integration connection and identifying which service account is in use. |
integration__okta__okta_create_user | okta.okta_create_user | Write | Create a new user in Okta. Requires a profile with at least firstName, lastName, email, and login. Optionally provide credentials (password) and control activation. |
integration__okta__okta_update_user | okta.okta_update_user | Write | Update an existing Okta user profile. Provide only the profile fields you want to change — other fields remain unchanged. |
integration__okta__okta_deactivate_user | okta.okta_deactivate_user | Write | Deactivate an Okta user. The user will be unable to sign in but their data is retained. This action can be reversed by reactivating the user in the Okta admin console. |
integration__okta__okta_list_groups | okta.okta_list_groups | Read | List groups in the Okta organization. Returns group names and IDs. Supports search filtering by group name. |
integration__okta__okta_get_group | okta.okta_get_group | Read | Get details for a specific Okta group by ID. Returns the group name, description, and type. |
integration__okta__okta_add_user_to_group | okta.okta_add_user_to_group | Write | Add a user to an Okta group. The user will inherit the group's assigned applications and permissions. |
integration__okta__okta_list_applications | okta.okta_list_applications | Read | List applications in the Okta organization. Returns application names, IDs, statuses, and types. |