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) 611 B
import { RandomTable } from '../domain/index.js'; import { TableRepository } from '../ports/index.js'; /** * Use case for listing random tables. */ export declare class ListTablesUseCase { private readonly repository; /** * Creates a new ListTablesUseCase instance. * @param repository The table repository to use. */ constructor(repository: TableRepository); /** * Executes the use case. * @param filter Optional filter criteria. * @returns An array of tables matching the filter. */ execute(filter?: Record<string, unknown>): Promise<RandomTable[]>; }