Skip to main content
Glama

export_all_personas

Export all AI personas, including default personas if specified, into a JSON bundle for easy management and integration with the DollhouseMCP server's dynamic persona system.

Instructions

Export all personas to a JSON bundle

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeDefaultsNoInclude default personas in export (default: true)

Implementation Reference

  • Commented registration of the 'export_all_personas' MCP tool, including full tool definition (name, description, inputSchema) and handler that delegates to server.exportAllPersonas()
    // tool: { // name: "export_all_personas", // description: "Export all personas to a JSON bundle", // inputSchema: { // type: "object", // properties: { // includeDefaults: { // type: "boolean", // description: "Include default personas in export (default: true)", // }, // }, // }, // }, // handler: (args: any) => server.exportAllPersonas(args.includeDefaults) // },
  • Interface definition (IToolHandler) for the server.exportAllPersonas method called by the tool handler, specifying the input parameter matching the tool schema
    exportAllPersonas(includeDefaults?: boolean): Promise<any>;
  • PersonaExporter.exportBundle method implementing the core export logic for all personas with includeDefaults filtering, which server.exportAllPersonas would use
    exportBundle(personas: Persona[], includeDefaults: boolean = true): ExportBundle { const filteredPersonas = includeDefaults ? personas : personas.filter(p => !isDefaultPersona(p.filename)); return { version: '1.0.0', exportedAt: new Date().toISOString(), exportedBy: this.currentUser || undefined, personaCount: filteredPersonas.length, personas: filteredPersonas.map(p => this.exportPersona(p)) }; }

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