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 776 B
/** * @fileoverview Handles registration and error handling for the `echo_message` 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/echoTool/registration * @see {@link src/mcp-server/tools/echoTool/logic.ts} for the core business logic and schemas. */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; /** * Registers the 'echo_message' tool and its handler with the provided MCP server instance. * * @param server - The MCP server instance to register the tool with. */ export declare const registerEchoTool: (server: McpServer) => Promise<void>; //# sourceMappingURL=registration.d.ts.map