UNPKG

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 625 B
/** * Use case for listing roll templates. */ export class ListTemplatesUseCase { /** * Creates a new ListTemplatesUseCase instance. * @param templateRepository The repository to use for template listing. */ constructor(templateRepository) { this.templateRepository = templateRepository; } /** * Executes the use case. * @param filter Optional filter criteria. * @returns An array of templates matching the filter. */ async execute(filter) { return await this.templateRepository.list(filter); } } //# sourceMappingURL=list-templates-use-case.js.map