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.

21 lines 525 B
/** * Base class for MCP resources. */ export class BaseResource { /** * Gets the URI pattern for this resource. * @returns The URI pattern. */ getUriPattern() { return this.getResourceUriPattern(); } /** * Gets the content of the resource. * @param params The resource parameters extracted from the URI. * @returns The resource content. */ async getContent(params) { return this.getResourceContent(params); } } //# sourceMappingURL=resource.js.map