MCP configurations
Expose AgentKit tools over MCP.
Expose AgentKit tools over MCP so hosts like Claude Desktop or Cursor can call connected-account tools through a standard protocol.
Configure an MCP server, attach connected accounts, and issue tokens for clients. See Error handling for API exceptions.
scalekit_client.actions.mcp.create_config
Section titled “scalekit_client.actions.mcp.create_config”#asyncactions.mcp.create_config
Runs scalekit_client.actions.mcp.create_config and returns the result.
Config name Required.
Human-readable summary of what this MCP config exposes
List of McpConfigConnectionToolMapping objects
Create mcp config.
response = scalekit_client.actions.mcp.create_config( name="My agent tools", description="Connectors exposed to the agent",)# response.configscalekit_client.actions.mcp.list_configs
Section titled “scalekit_client.actions.mcp.list_configs”#asyncactions.mcp.list_configs
Runs scalekit_client.actions.mcp.list_configs and returns the result.
Maximum configs per page (server default if omitted)
Opaque cursor from a previous list response
Filter by config ID
Filter by exact name
Filter by provider slug
Filter by MCP server URL
Free-text search on name
ListMcpConfigsResponse.
page1 = scalekit_client.actions.mcp.list_configs(page_size=10)for cfg in page1.configs: print(cfg.name, cfg.mcp_server_url)scalekit_client.actions.mcp.update_config
Section titled “scalekit_client.actions.mcp.update_config”#asyncactions.mcp.update_config
Runs scalekit_client.actions.mcp.update_config and returns the result.
MCP config ID from create_config or list_configs.
New human-readable description for this config
Replaces existing mappings
UpdateMcpConfigResponse.
response = scalekit_client.actions.mcp.update_config( config_id="cfg_01abc123", description="Updated description",)scalekit_client.actions.mcp.delete_config
Section titled “scalekit_client.actions.mcp.delete_config”#asyncactions.mcp.delete_config
Runs scalekit_client.actions.mcp.delete_config and returns the result.
MCP config ID to delete Required.
DeleteMcpConfigResponse.
scalekit_client.actions.mcp.delete_config(config_id="cfg_01abc123")scalekit_client.actions.mcp.list_mcp_connected_accounts
Section titled “scalekit_client.actions.mcp.list_mcp_connected_accounts”#asyncactions.mcp.list_mcp_connected_accounts
Runs scalekit_client.actions.mcp.list_mcp_connected_accounts and returns the result.
Virtual MCP config ID.
User identifier Required.
Include auth/re-auth URLs.
List mcp connected accounts.
state = scalekit_client.actions.mcp.list_mcp_connected_accounts( config_id="cfg_01abc123", identifier="alice@example.com", include_auth_link=True,)for account in state.connected_accounts: if account.connected_account_status != "active": print(account.connection_name, account.authentication_link)scalekit_client.actions.mcp.create_session_token
Section titled “scalekit_client.actions.mcp.create_session_token”#asyncactions.mcp.create_session_token
Mints a short-lived session token scoped to a user and a Virtual MCP Server config.
Virtual MCP Server config ID Required.
User identifier Required.
Token lifetime (server default if omitted, typically 1 hour).
Tokens and claims.
from datetime import timedelta
resp = scalekit_client.actions.mcp.create_session_token( mcp_config_id="cfg_01abc123", identifier="alice@example.com", expiry=timedelta(hours=1),)headers = {"Authorization": f"Bearer {resp.token}"}