Skip to main content
Glama

set_user_identity

Assign a username and optional email to manage persona attribution and participation in collections within the DollhouseMCP server for dynamic AI persona management.

Instructions

Set your username for persona attribution and collection participation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoYour email address (optional)
usernameYesYour username (alphanumeric, hyphens, underscores, dots)

Implementation Reference

  • Core implementation of user identity setting logic, used by the tool handler. Sets internal state and environment variables for persistence.
    setUserIdentity(username: string | null, email?: string): void { this.currentUser = username; if (username) { process.env.DOLLHOUSE_USER = username; if (email) { process.env.DOLLHOUSE_EMAIL = email; } } else { delete process.env.DOLLHOUSE_USER; delete process.env.DOLLHOUSE_EMAIL; } }
  • Defines the tool specification (name, description, inputSchema) and registers the handler function that delegates to server.setUserIdentity. Part of getUserTools export.
    tool: { name: "set_user_identity", description: "Set your username for persona attribution and collection participation", inputSchema: { type: "object", properties: { username: { type: "string", description: "Your username (alphanumeric, hyphens, underscores, dots)", }, email: { type: "string", description: "Your email address (optional)", }, }, required: ["username"], }, }, handler: (args: any) => server.setUserIdentity(args.username, args?.email) },
  • Zod validation schema for the set_user_identity tool input parameters.
    export const SetUserIdentityArgsSchema = z.object({ username: z.string().describe("Your username for persona attribution"), email: z.string().optional().describe("Your email address (optional)") });
  • Location where UserTools (including set_user_identity) was registered into the MCP tool registry. Currently commented out as deprecated, replaced by dollhouse_config tool.
    // this.toolRegistry.registerMany(getUserTools(instance));
  • TypeScript interface definition for the server.setUserIdentity method called by the tool handler.
    setUserIdentity(username: string, email?: string): Promise<any>;

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