Skip to main content
Glama
mrwyndham

PocketBase MCP Server

authenticate_with_oauth2

Authenticate users with OAuth2 providers to enable secure access to PocketBase database operations. Handles authorization codes, PKCE verification, and redirect URLs for authentication flows.

Instructions

Authenticate a user with OAuth2

Input Schema

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

Implementation Reference

  • src/index.ts:332-362 (registration)
    Registration of the 'authenticate_with_oauth2' tool in the ListToolsRequestSchema response. Includes the tool name, description, and input schema. 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 including provider, code, codeVerifier, redirectUrl, and optional collection.
    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