import { z } from 'zod'; import { mcpServerSchema, toolDescriptorSchema } from './tool'; export const listToolsQuerySchema = z.object({ session_id: z.string().min(1).optional(), }); export type ListToolsQuery = z.infer; export const listToolsResponseSchema = z.object({ tools: z.array(toolDescriptorSchema), }); export type ListToolsResponse = z.infer; export const listMcpServersResponseSchema = z.object({ servers: z.array(mcpServerSchema), }); export type ListMcpServersResponse = z.infer; export const restartMcpServerResultSchema = z.object({ restarting: z.literal(true), }); export type RestartMcpServerResult = z.infer;