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.

36 lines (35 loc) 985 B
import { TableService } from '../../../../ports/index.js'; import { BaseResource } from './resource.js'; /** * Output type for the tables resource. */ type TablesResourceContent = { tables: Array<{ id: string; name: string; description: string; entryCount: number; }>; }; /** * Resource for accessing a list of tables. */ export declare class TablesResource extends BaseResource<Record<string, never>, TablesResourceContent> { private readonly tableService; /** * Creates a new TablesResource 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. * @returns The resource content. */ protected getResourceContent(): Promise<TablesResourceContent>; } export {};