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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/tools/UserTools.ts:31-41 (registration)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() },
- src/persona/PersonaManager.ts:338-343 (handler)Core implementation of getUserIdentity() method that retrieves the current user identity from environment variablesgetUserIdentity(): { username: string | null; email: string | null } { return { username: process.env.DOLLHOUSE_USER || null, email: process.env.DOLLHOUSE_EMAIL || null }; }
- src/server/tools/UserTools.ts:35-39 (schema)Input schema for get_user_identity tool (empty object, no parameters required)inputSchema: { type: "object", properties: {}, }, },