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.
29 lines • 1.18 kB
TypeScript
/**
* @fileoverview Defines the core logic, schemas, and types for the `fetch_image_test` tool.
* This tool fetches a random cat image from the public cataas.com API.
* @module src/mcp-server/tools/imageTest/logic
* @see {@link src/mcp-server/tools/imageTest/registration.ts} for the handler and registration logic.
*/
import { z } from "zod";
import { RequestContext } from "../../../utils/index.js";
export declare const FetchImageTestInputSchema: z.ZodObject<{
trigger: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
trigger: boolean;
}, {
trigger?: boolean | undefined;
}>;
export type FetchImageTestInput = z.infer<typeof FetchImageTestInputSchema>;
export declare const FetchImageTestResponseSchema: z.ZodObject<{
data: z.ZodString;
mimeType: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
mimeType: string;
}, {
data: string;
mimeType: string;
}>;
export type FetchImageTestResponse = z.infer<typeof FetchImageTestResponseSchema>;
export declare function fetchImageTestLogic(input: FetchImageTestInput, context: RequestContext): Promise<FetchImageTestResponse>;
//# sourceMappingURL=logic.d.ts.map