Skip to main content
Glama
mrwyndham

PocketBase MCP Server

impersonate_user

Allows administrators to temporarily assume another user's identity for testing or support purposes by generating an impersonation token.

Instructions

Impersonate another user (admin only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the user to impersonate
collectionIdOrNameNoCollection name or id (default: users)users
durationNoToken expirey time (default: 3600)

Implementation Reference

  • src/index.ts:522-545 (registration)
    Registration of the 'impersonate_user' tool in the MCP tools list, including its description and input schema. No separate handler implementation found; it will likely throw MethodNotFound when called.
    { name: 'impersonate_user', description: 'Impersonate another user (admin only)', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID of the user to impersonate', }, collectionIdOrName: { type: 'string', description: 'Collection name or id (default: users)', default: 'users' }, duration: { type: 'number', description: 'Token expirey time (default: 3600)', default: 3600 } }, required: ['id'], }, },
  • Input schema definition for the 'impersonate_user' tool, specifying parameters for user ID, collection, and duration.
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID of the user to impersonate', }, collectionIdOrName: { type: 'string', description: 'Collection name or id (default: users)', default: 'users' }, duration: { type: 'number', description: 'Token expirey time (default: 3600)', default: 3600 } }, required: ['id'], },

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