Skip to main content
Glama
mrwyndham

PocketBase MCP Server

authenticate_with_oauth2

Enable user authentication via OAuth2 providers such as Google, Facebook, or GitHub by processing authorization codes, PKCE verifiers, and redirect URLs for secure login integration.

Instructions

Authenticate a user with OAuth2

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe authorization code returned from the OAuth2 provider
codeVerifierYesPKCE code verifier
collectionNoCollection name (default: users)users
providerYesOAuth2 provider name (e.g., google, facebook, github)
redirectUrlYesThe redirect URL used in the OAuth2 flow

Implementation Reference

  • src/index.ts:332-362 (registration)
    Registration of the 'authenticate_with_oauth2' tool in the ListTools response, including its input schema definition. Note: No corresponding handler implementation found in the CallToolRequestSchema switch statement.
    { name: 'authenticate_with_oauth2', description: 'Authenticate a user with OAuth2', inputSchema: { type: 'object', properties: { provider: { type: 'string', description: 'OAuth2 provider name (e.g., google, facebook, github)', }, code: { type: 'string', description: 'The authorization code returned from the OAuth2 provider', }, codeVerifier: { type: 'string', description: 'PKCE code verifier', }, redirectUrl: { type: 'string', description: 'The redirect URL used in the OAuth2 flow', }, collection: { type: 'string', description: 'Collection name (default: users)', default: 'users' } }, required: ['provider', 'code', 'codeVerifier', 'redirectUrl'], }, },
  • Input schema for the 'authenticate_with_oauth2' tool defining parameters for OAuth2 authentication.
    inputSchema: { type: 'object', properties: { provider: { type: 'string', description: 'OAuth2 provider name (e.g., google, facebook, github)', }, code: { type: 'string', description: 'The authorization code returned from the OAuth2 provider', }, codeVerifier: { type: 'string', description: 'PKCE code verifier', }, redirectUrl: { type: 'string', description: 'The redirect URL used in the OAuth2 flow', }, collection: { type: 'string', description: 'Collection name (default: users)', default: 'users' } }, required: ['provider', 'code', 'codeVerifier', 'redirectUrl'], },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrwyndham/pocketbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server