manage_oauth
InactiveTool of io.github.butterbase-ai/mcp
Manage OAuth providers for end-user authentication (configure, get, update, delete). Actions: - "configure": Set up a new OAuth provider (idempotent upsert) - "get": Read provider config (single provider or all). client_secret is redacted. - "update": Patch existing provider — only supplied fields change - "delete": Remove a provider. Existing sessions remain valid until expiry. Built-in providers (URLs/scopes auto-filled — only client_id, client_secret, redirect_uris required): google, github, discord, facebook, linkedin, microsoft, apple, x For any other provider name, supply authorization_url, token_url, userinfo_url manually. Parameters by action: configure: { app_id, action: "configure", provider, client_id, client_secret, redirect_uris, scopes?, authorization_url?, token_url?, userinfo_url?, provider_metadata? } get: { app_id, action: "get", provider? } // omit provider to list all update: { app_id, action: "update", provider, ...fields-to-change } delete: { app_id, action: "delete", provider } Example — configure (Google): Input: { app_id: "app_abc123", action: "configure", provider: "google", client_id: "...", client_secret: "GOCSPX-...", redirect_uris: ["https://api.butterbase.ai/auth/app_abc123/oauth/google/callback"] } Example — configure (Apple, requires provider_metadata): Input: { ..., provider: "apple", provider_metadata: { teamId, keyId, privateKey } } Provider notes: - X (Twitter): no email — synthetic {username}@users.noreply.x.local is used - Apple: only returns name on first auth; uses POST callback (handled automatically); requires provider_metadata { teamId, keyId, privateKey } - Facebook: default scopes email, public_profile OAuth flow after configure: GET {api_base}/auth/{app_id}/oauth/{provider}?redirect_to=https://yourapp.com/auth/callback After successful authentication, user is redirected to redirect_to with tokens as query params. Common errors: - RESOURCE_NOT_FOUND: app or provider doesn't exist - VALIDATION_INVALID_SCHEMA: empty client_id/client_secret, or invalid URL on a custom provider Idempotency: configure/update/delete are safe to retry. Warning (delete): prevents future sign-ins via that provider; existing sessions remain valid until they expire.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"app_id",
"action"
],
"properties": {
"action": {
"enum": [
"configure",
"get",
"update",
"delete"
],
"type": "string",
"description": "The action to perform"
},
"app_id": {
"type": "string",
"description": "The app ID (e.g. app_abc123def456)"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"description": "OAuth scopes. Optional for built-in providers (sensible defaults)."
},
"provider": {
"type": "string",
"description": "Provider name. Required for configure/update/delete. Optional for get (omit to list all)."
},
"client_id": {
"type": "string",
"description": "OAuth client ID. Required for configure."
},
"token_url": {
"type": "string",
"format": "uri",
"description": "Required for custom providers on configure."
},
"userinfo_url": {
"type": "string",
"format": "uri",
"description": "Required for custom providers on configure."
},
"client_secret": {
"type": "string",
"description": "OAuth client secret. Required for configure (Apple: placeholder OK; real secret derived from provider_metadata)."
},
"redirect_uris": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "Required for configure. Format: [\"{api_base}/auth/{app_id}/oauth/{provider}/callback\"]"
},
"authorization_url": {
"type": "string",
"format": "uri",
"description": "Required for custom providers on configure."
},
"provider_metadata": {
"type": "object",
"description": "Provider-specific metadata. Required for Apple: { teamId, keyId, privateKey }.",
"additionalProperties": {}
}
},
"additionalProperties": false
}Parent server
io.github.butterbase-ai/mcp
https://github.com/butterbase-ai/butterbase-oss
1/7 registries