Skip to main content
Glama

get_user_identity

Retrieve current user identity details to enable personalized AI persona management within the DollhouseMCP server, enhancing context-aware interactions.

Instructions

Get current user identity information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'get_user_identity' tool, including schema (empty input) and handler lambda that delegates to server.getUserIdentity()
    { tool: { name: "get_user_identity", description: "Get current user identity information", inputSchema: { type: "object", properties: {}, }, }, handler: () => server.getUserIdentity() },
  • Core implementation of getUserIdentity() method that retrieves the current user identity from environment variables
    getUserIdentity(): { username: string | null; email: string | null } { return { username: process.env.DOLLHOUSE_USER || null, email: process.env.DOLLHOUSE_EMAIL || null }; }
  • Input schema for get_user_identity tool (empty object, no parameters required)
    inputSchema: { type: "object", properties: {}, }, },

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/DollhouseMCP/mcp-server'

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