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.

39 lines (38 loc) 1.11 kB
import { RollTemplateService } from '../../../../ports/index.js'; import { BaseResource } from './resource.js'; /** * Parameters for the templates resource. */ type TemplatesResourceParams = Record<string, never>; /** * Content for the templates resource. */ type TemplatesResourceContent = { templates: Array<{ id: string; name: string; description: string; }>; }; /** * Resource for accessing all roll templates. */ export declare class TemplatesResource extends BaseResource<TemplatesResourceParams, TemplatesResourceContent> { private readonly templateService; /** * Creates a new TemplatesResource 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. * @returns The resource content. */ protected getResourceContent(): Promise<TemplatesResourceContent>; } export {};