UNPKG

mcp-ts-template

Version:

A production-grade TypeScript template for building robust Model Context Protocol (MCP) servers, featuring built-in observability with OpenTelemetry, advanced error handling, comprehensive utilities, and a modular architecture.

15 lines 778 B
/** * @fileoverview Handles the registration of the `get_random_cat_fact` tool. * This module acts as the "handler" layer, connecting the pure business logic to the * MCP server and ensuring all outcomes (success or failure) are handled gracefully. * @module src/mcp-server/tools/catFactFetcher/registration * @see {@link src/mcp-server/tools/catFactFetcher/logic.ts} for the core business logic and schemas. */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; /** * Registers the 'get_random_cat_fact' tool and its handler with the MCP server. * * @param server - The MCP server instance to register the tool with. */ export declare const registerCatFactFetcherTool: (server: McpServer) => Promise<void>; //# sourceMappingURL=registration.d.ts.map