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) • 796 B
TypeScript
import { RollResult } from '../../domain/index.js';
import { RollService } from '../../ports/index.js';
import { RollOnTableUseCase } from '../roll-on-table-use-case.js';
/**
* Implementation of the RollService interface.
*/
export declare class RollServiceImpl implements RollService {
private readonly rollOnTableUseCase;
/**
* Creates a new RollServiceImpl instance.
* @param rollOnTableUseCase The use case for rolling on tables.
*/
constructor(rollOnTableUseCase: RollOnTableUseCase);
/**
* 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[]>;
}