All files / src/schemas mcp.schemas.js

0% Statements 0/1
100% Branches 0/0
100% Functions 0/0
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                                     
/**
 * MCP Tool Schemas
 *
 * This file contains reference Zod schemas for MCP tool inputs and outputs.
 * Note: These schemas are primarily for documentation purposes and may not be used directly
 * as the schemas are now embedded in the tool definition in src/main.js.
 */
 
import { z } from "zod";
 
/**
 * Schema for ping_server tool output
 * Validates that the response is exactly "pong" and timestamp is a valid ISO8601 datetime string
 *
 * Note: This schema is a reference only. The actual implementation uses
 * inlined schema definitions in the tool registration.
 */
export const PingServerOutputSchema = z.object({
  response: z.literal("pong"),
  timestamp: z.string().datetime(), // Validates ISO8601 format
});
 
// Define future MCP tool schemas below as references
// Example format:
// export const ToolNameInputSchema = z.object({ ... });
// export const ToolNameOutputSchema = z.object({ ... });