Adapter Details: oauth

Connected accounts: OAuth 2.0 grants held for venue users so agents can call a provider's API as the user — connect, check status, disconnect — with access tokens reaching only the HTTP adapter (bearerSecret "oauth/<provider>"), never a model.

Name:oauth
Class:covia.adapter.OAuthAdapter

MCP Tools

This adapter provides 4 MCP tool(s) for AI agent integration:

Tool NameDescription
oauth_connectStarts connecting the caller's account at an OAuth provider (google, microsoft, github, or any provider the operator configured). Returns the URL the user must open and approve. Approval alone connects nothing: the venue then gives the browser a one-time completion code, and oauth:complete with that code, from this same account, stores the grant. With returnTo the browser takes the code to that app; without it the venue's page shows the code for the user to give back. Afterwards, call the provider's API with http:get / http:post and bearerSecret "oauth/<provider>" — the access token never appears in your context.
oauth_disconnectForgets the caller's grant for a provider and, where the provider supports revocation, revokes it there too. Only when the user asks to disconnect.
oauth_statusThe caller's connected accounts — provider, granted scope, whether the grant can refresh itself, when it was obtained and when the current access token expires. Never the tokens.
oauth_completeFinishes connecting an account the user approved at the provider. After approval the venue gives the browser a one-time completion code: an app named in returnTo receives it, otherwise the venue's page shows it for the user to give back. Only the account that started the connect can complete it; any other caller is refused and the code is used up. Returns the connection as oauth:status reports it.

Navigation

Back to all adapters

Back to index