random-tables-mcp
Version:
An MCP (Model Context Protocol) server for managing and rolling on random-table assets used in tabletop RPGs. Create, update, and roll on random tables with support for nested tables, weighted entries, and range-based results.
21 lines (20 loc) • 745 B
TypeScript
import { RollTemplateRepository } from '../ports/secondary/roll-template-repository.js';
/**
* Use case for creating a new roll template.
*/
export declare class CreateTemplateUseCase {
private readonly templateRepository;
/**
* Creates a new CreateTemplateUseCase instance.
* @param templateRepository The repository to use for template persistence.
*/
constructor(templateRepository: RollTemplateRepository);
/**
* Executes the use case.
* @param name Template name.
* @param description Template description.
* @param template The template string.
* @returns The ID of the created template.
*/
execute(name: string, description: string, template: string): Promise<string>;
}