SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
4e23b01 verified
Raw History Blame Contribute Delete
775 Bytes
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<typeof listToolsQuerySchema>;
export const listToolsResponseSchema = z.object({
tools: z.array(toolDescriptorSchema),
});
export type ListToolsResponse = z.infer<typeof listToolsResponseSchema>;
export const listMcpServersResponseSchema = z.object({
servers: z.array(mcpServerSchema),
});
export type ListMcpServersResponse = z.infer<typeof listMcpServersResponseSchema>;
export const restartMcpServerResultSchema = z.object({
restarting: z.literal(true),
});
export type RestartMcpServerResult = z.infer<typeof restartMcpServerResultSchema>;