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.
14 lines (13 loc) • 402 B
TypeScript
import { RollResult } from '../../domain/index.js';
/**
* Interface for roll operations.
*/
export interface RollService {
/**
* Rolls on a table.
* @param tableId The ID of the table to roll on.
* @param count The number of rolls to perform (default: 1).
* @returns An array of roll results.
*/
rollOnTable(tableId: string, count?: number): Promise<RollResult[]>;
}