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.

20 lines (19 loc) 588 B
import { RandomTable } from '../domain/index.js'; import { TableRepository } from '../ports/index.js'; /** * Use case for getting a random table by ID. */ export declare class GetTableUseCase { private readonly repository; /** * Creates a new GetTableUseCase instance. * @param repository The table repository to use. */ constructor(repository: TableRepository); /** * Executes the use case. * @param id The ID of the table to get. * @returns The table, or null if not found. */ execute(id: string): Promise<RandomTable | null>; }