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) • 723 B
TypeScript
import { RollTemplateEntity } from '../domain/entities/roll-template-entity.js';
import { RollTemplateRepository } from '../ports/secondary/roll-template-repository.js';
/**
* Use case for getting a roll template by ID.
*/
export declare class GetTemplateUseCase {
private readonly templateRepository;
/**
* Creates a new GetTemplateUseCase instance.
* @param templateRepository The repository to use for template retrieval.
*/
constructor(templateRepository: RollTemplateRepository);
/**
* Executes the use case.
* @param id The ID of the template to get.
* @returns The template, or null if not found.
*/
execute(id: string): Promise<RollTemplateEntity | null>;
}