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.

19 lines (18 loc) 625 B
import { RollTemplateRepository } from '../ports/secondary/roll-template-repository.js'; /** * Use case for deleting a roll template. */ export declare class DeleteTemplateUseCase { private readonly templateRepository; /** * Creates a new DeleteTemplateUseCase instance. * @param templateRepository The repository to use for template deletion. */ constructor(templateRepository: RollTemplateRepository); /** * Executes the use case. * @param id The ID of the template to delete. * @throws Error if the template does not exist. */ execute(id: string): Promise<void>; }