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.

41 lines (40 loc) 1.16 kB
import { RollTemplateService } from '../../../../ports/index.js'; import { BaseResource } from './resource.js'; /** * Parameters for the template resource. */ type TemplateResourceParams = { id: string; }; /** * Content for the template resource. */ type TemplateResourceContent = { id: string; name: string; description: string; template: string; }; /** * Resource for accessing a specific roll template. */ export declare class TemplateResource extends BaseResource<TemplateResourceParams, TemplateResourceContent> { private readonly templateService; /** * Creates a new TemplateResource instance. * @param templateService The template service to use. */ constructor(templateService: RollTemplateService); /** * 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: TemplateResourceParams): Promise<TemplateResourceContent>; } export {};