Ship an agent that touches 5 SaaS tools without 5 auth flows
When to use: Your users want Claude to read Gmail, update HubSpot, comment on Jira — and you don't want to write OAuth glue for each.
Prerequisites
- Klavis account + API key — Sign up at klavis.ai and grab the key from dashboard
- Selected servers enabled — Toggle Gmail, HubSpot, Jira on in the Klavis UI
Flow
-
Wire the gatewayAdd Klavis as an MCP server with my token. List which tools are now available.✓ Copied→ Tool list mentions Gmail, HubSpot, Jira endpoints
-
End-user connectGenerate the Connect-Gmail URL for user_id=xyz. When they return, confirm auth succeeded.✓ Copied→ OAuth URL returned; post-callback shows connected:true
-
Cross-app actionFor the latest Gmail from acme.com, create a HubSpot contact and a Jira ticket summarizing the thread.✓ Copied→ All three APIs hit in one flow with audit trail
Outcome: A working multi-SaaS agent with user-scoped auth and one config URL.
Pitfalls
- User tokens expire silently — Subscribe to the
auth_expiredwebhook and prompt the user to reconnect