@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.
39 lines • 1.58 kB
TypeScript
/**
* SkillActivationStrategy - Strategy for skill element activation
*
* Handles activation, deactivation, and status tracking for skill elements.
*/
import { SkillManager } from '../../elements/skills/index.js';
import { BaseActivationStrategy } from './BaseActivationStrategy.js';
import { ElementActivationStrategy, MCPResponse } from './ElementActivationStrategy.js';
export declare class SkillActivationStrategy extends BaseActivationStrategy implements ElementActivationStrategy {
private readonly skillManager;
constructor(skillManager: SkillManager);
/**
* Activate a skill
* Extracted from ElementCRUDHandler.ts lines 184-206
*/
activate(name: string, context?: Record<string, any>): Promise<MCPResponse>;
/**
* Deactivate a skill
* Extracted from ElementCRUDHandler.ts lines 521-541
*
* @throws {ElementNotFoundError} When skill does not exist
* @see Issue #275 - Handlers return success=true for missing elements
*/
deactivate(name: string): Promise<MCPResponse>;
/**
* Get all active skills
* Extracted from ElementCRUDHandler.ts lines 392-412
*/
getActiveElements(): Promise<MCPResponse>;
/**
* Get detailed information about a skill
* Extracted from ElementCRUDHandler.ts lines 650-689
*
* @throws {ElementNotFoundError} When skill does not exist
* @see Issue #275 - Handlers return success=true for missing elements
*/
getElementDetails(name: string): Promise<MCPResponse>;
}
//# sourceMappingURL=SkillActivationStrategy.d.ts.map