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.
24 lines (23 loc) • 794 B
TypeScript
import { RollTemplateRepository } from '../ports/secondary/roll-template-repository.js';
/**
* Use case for updating an existing roll template.
*/
export declare class UpdateTemplateUseCase {
private readonly templateRepository;
/**
* Creates a new UpdateTemplateUseCase instance.
* @param templateRepository The repository to use for template updates.
*/
constructor(templateRepository: RollTemplateRepository);
/**
* Executes the use case.
* @param id The ID of the template to update.
* @param updates Object containing the updates to apply.
* @throws Error if the template does not exist.
*/
execute(id: string, updates: {
name?: string;
description?: string;
template?: string;
}): Promise<void>;
}