Overview
Thelua integrations command enables you to connect your agent to third-party services like Linear, Discord, Google Calendar, HubSpot, and 250+ other integrations via Unified.to. When you connect an account, an MCP server is automatically created to expose tools to your agent.
Limit: Only 1 connection per integration type is allowed per agent. To change scopes, use
lua integrations update.How It Works
- Connect: Authenticate with a third-party service via OAuth or API token
- Auto-MCP: An MCP server is automatically created and activated for the connection
- Agent Access: Your agent can now use tools from that integration (e.g., create Linear issues, send Discord messages)
- Webhooks: Optionally subscribe to events from the connected service
Commands
lua integrations connect
Connect a new third-party account.- CLI fetches available integrations
- You select or specify an integration and auth method
- Browser opens for OAuth authorization (or you enter API credentials)
- Connection is established and stored
- MCP server is automatically created and activated
lua integrations list
View all connected accounts and their status.- 🟢 Active - Connection healthy, tools available
- 🟡 Connected (tools pending) - Connection healthy, MCP server inactive
- 🔴 Unhealthy - Re-authorization required
- ⏸️ Paused - Connection paused
lua integrations available
List all available integrations you can connect.- 🔐 OAuth only
- 🔑 API Token only
- 🔐🔑 Both available
lua integrations update
Update an existing connection’s OAuth scopes. This re-authorizes the connection with new permissions.Update deletes the old connection and creates a new one with updated scopes. You’ll need to re-authorize in the browser.
lua integrations disconnect
Remove a connected account. This also deletes the associated MCP server and any webhook subscriptions.lua integrations webhooks
Manage webhook subscriptions for connected integrations. Webhooks let you receive events when things happen in connected services (e.g., task created, message received).- list
- create
- delete
List all webhook subscriptions:Output:
lua integrations mcp
Manage MCP servers for connections. MCP servers are automatically created when you connect an integration, but you can activate/deactivate them manually.- list
- activate
- deactivate
List connections with MCP server status:Output:
Non-Interactive Mode
All integrations commands support non-interactive mode for CI/CD and automation:Connect Options
| Option | Description |
|---|---|
--integration <type> | Integration type (e.g., linear, discord, googlecalendar) |
--auth-method <method> | Authentication method: oauth or token |
--scopes <scopes> | Comma-separated OAuth scopes, or all for all available |
--hide-sensitive <bool> | Hide sensitive data from MCP tools (default: true) |
Disconnect Options
| Option | Description |
|---|---|
--connection-id <id> | Connection ID to disconnect |
Webhook Options
| Option | Description |
|---|---|
--connection <id> | Connection ID for the webhook |
--object <type> | Object type (e.g., task_task, calendar_event) |
--event <type> | Event type: created, updated, or deleted |
--webhook <url> | Full webhook URL to receive events |
--interval <minutes> | Polling interval for virtual webhooks |
--webhook-id <id> | Webhook ID (for delete action) |
MCP Options
| Option | Description |
|---|---|
--connection <id> | Connection ID for MCP operations |
Examples
Workflow Example
Authentication Types
OAuth 2.0 (Recommended)
- Secure authorization flow via browser
- Scope selection for fine-grained permissions
- Automatic token refresh
- Requires OAuth to be configured for the integration in your Unified.to workspace
API Token / Personal Access Token
- Direct credential entry
- Simpler setup
- Token fields vary by integration (e.g., API Key, Personal Access Token, Bot Token)
- Instructions shown during connection for where to obtain credentials
Tips
Hide Sensitive Data
Hide Sensitive Data
By default,
--hide-sensitive true is enabled, which hides sensitive fields from MCP tool responses. Disable only if your agent needs access to sensitive data:Scope Selection
Scope Selection
When using OAuth, select only the scopes your agent needs. Use
all during development, then restrict to specific scopes in production:Use Webhooks for Event-Driven Workflows
Use Webhooks for Event-Driven Workflows
Instead of polling, use webhooks to react to events:
- Create a LuaWebhook in your codebase to handle events
- Push and deploy the webhook
- Create a subscription:
lua integrations webhooks create
One Connection Per Integration
One Connection Per Integration
Each agent can have only one connection per integration type. To change accounts or scopes, use
lua integrations update or disconnect and reconnect.Related Commands
MCP Command
Manage all MCP servers (including non-integration servers)
Chat Command
Test your agent with integration tools
See Also
- MCP Servers Overview - Understanding MCP servers
- Webhooks Overview - Creating webhook handlers
- LuaWebhook API - Webhook API reference

