How to use MCPcat to identify your user’s sessions.
identify
callback function when tracking your MCP server:
UserIdentity
object with the following structure:
get_access_token()
function from mcp.server.auth.middleware.auth_context
, not through the context parameter. This is different from the TypeScript SDK where auth info is available in the extra
parameter.null
, sessions will be tracked anonymously. This is useful for: