@dollhousemcp/mcp-server
Version:
DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.
57 lines • 1.85 kB
TypeScript
/**
* SchemaMapper - Bidirectional schema conversion between Anthropic Skills and DollhouseMCP Skills
*
* Based on the 1:1 mapping specification documented in:
* business/documents/legal/evidence/anthropic-dollhouse-skills-mapping.md
*/
export interface AnthropicSkillMetadata {
name: string;
description: string;
license?: string;
}
export interface DollhouseMCPSkillMetadata {
name: string;
description: string;
type?: string;
version?: string;
author?: string;
created?: string;
modified?: string;
category?: string;
tags?: string[];
complexity?: string;
domains?: string[];
dependencies?: string[];
prerequisites?: string[];
parameters?: Record<string, any>[];
examples?: Record<string, any>[];
languages?: string[];
proficiency_level?: number;
license?: string;
custom?: Record<string, any>;
}
export declare class SchemaMapper {
/**
* Convert Anthropic frontmatter to DollhouseMCP metadata
* Maps minimal Anthropic schema to rich DollhouseMCP schema
*/
anthropicToDollhouse(anthropicMeta: AnthropicSkillMetadata, options?: {
inferredType?: string;
inferredTags?: string[];
inferredCategory?: string;
}): DollhouseMCPSkillMetadata;
/**
* Convert DollhouseMCP metadata to Anthropic frontmatter
* Strips DollhouseMCP-specific fields to create minimal Anthropic schema
*/
dollhouseToAnthropic(dollhouseMeta: DollhouseMCPSkillMetadata): AnthropicSkillMetadata;
/**
* Auto-generate tags from skill name and description
*/
inferTags(name: string, description: string): string[];
/**
* Infer category from skill name and description
*/
inferCategory(name: string, description: string): string | undefined;
}
//# sourceMappingURL=SchemaMapper.d.ts.map