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.

22 lines (21 loc) 706 B
import { TableEntry } from '../domain/index.js'; import { TableRepository } from '../ports/index.js'; /** * Use case for creating a new random table. */ export declare class CreateTableUseCase { private readonly repository; /** * Creates a new CreateTableUseCase instance. * @param repository The table repository to use. */ constructor(repository: TableRepository); /** * Executes the use case. * @param name Table name. * @param description Optional description. * @param entries Optional initial entries. * @returns The ID of the created table. */ execute(name: string, description?: string, entries?: TableEntry[]): Promise<string>; }