OAuth Connections
Lucid uses OAuth to connect AI agents to third-party services securely. When an agent needs to call a tool (e.g., post to Slack, create a GitHub issue), MCPGate resolves credentials through the configured OAuth connection.Supported Providers
| Provider | Scopes Available |
|---|---|
| GitHub | repos, issues, pull requests, actions |
| GitLab | projects, merge requests, pipelines |
| Drive, Docs, Sheets, Calendar, Gmail | |
| Slack | channels, messages, files, reactions |
| Discord | guilds, channels, messages |
| Notion | pages, databases, blocks |
| HuggingFace | models, datasets, spaces |
| Twitter/X | tweets, timelines, DMs |
| Linear | issues, projects, teams |
| Jira | issues, projects, sprints |
Connect a Provider
From the Dashboard
- Go to Dashboard → Settings → Connections
- Click Add Connection
- Select the provider
- Authorize access in the OAuth popup
- The connection appears as “Active”
Via API
Handle Callback
List Connections
Token Refresh
OAuth tokens are refreshed automatically when they expire. If a refresh fails, the connection status changes toexpired and you’ll need to re-authorize.
Revoke a Connection
Self-Hosted Alternative
If you’re self-hosting MCPGate without OAuth, use the CredentialAdapter system instead:- EnvVarAdapter — Set tokens as environment variables (simplest)
- DatabaseAdapter — Store encrypted tokens in Postgres
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)