Skip to main content
Glama

clear_user_identity

Remove user identity and restore anonymous mode on DollhouseMCP, enabling dynamic AI persona management without personal data.

Instructions

Clear user identity and return to anonymous mode

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the core logic for the clear_user_identity tool by calling setUserIdentity(null) to remove user identity environment variables.
    clearUserIdentity(): void { this.setUserIdentity(null); }
  • Registers the clear_user_identity tool definition and thin handler that delegates to the server's clearUserIdentity method.
    { tool: { name: "clear_user_identity", description: "Clear user identity and return to anonymous mode", inputSchema: { type: "object", properties: {}, }, }, handler: () => server.clearUserIdentity() }
  • Zod schema defining the input arguments for the clear_user_identity tool (empty object as no parameters required).
    export const ClearUserIdentityArgsSchema = z.object({});
  • Supporting method that sets or clears user identity by updating internal state and environment variables DOLLHOUSE_USER and DOLLHOUSE_EMAIL.
    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; } }

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