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.

33 lines (32 loc) 992 B
import { TableService } from '../../../../ports/index.js'; import { BaseResource } from './resource.js'; import { RandomTableDTO } from '../../../../domain/index.js'; /** * Parameters for the table resource. */ type TableResourceParams = { tableId: string; }; /** * Resource for accessing a specific table. */ export declare class TableResource extends BaseResource<TableResourceParams, RandomTableDTO> { private readonly tableService; /** * Creates a new TableResource instance. * @param tableService The table service to use. */ constructor(tableService: TableService); /** * Gets the URI pattern for this resource. * @returns The URI pattern. */ protected getResourceUriPattern(): string; /** * Gets the content of the resource. * @param params The resource parameters. * @returns The resource content. */ protected getResourceContent(params: TableResourceParams): Promise<RandomTableDTO>; } export {};