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.
20 lines (19 loc) • 741 B
TypeScript
import { RollTemplateEntity } from '../domain/entities/roll-template-entity.js';
import { RollTemplateRepository } from '../ports/secondary/roll-template-repository.js';
/**
* Use case for listing roll templates.
*/
export declare class ListTemplatesUseCase {
private readonly templateRepository;
/**
* Creates a new ListTemplatesUseCase instance.
* @param templateRepository The repository to use for template listing.
*/
constructor(templateRepository: RollTemplateRepository);
/**
* Executes the use case.
* @param filter Optional filter criteria.
* @returns An array of templates matching the filter.
*/
execute(filter?: Record<string, unknown>): Promise<RollTemplateEntity[]>;
}