UNPKG

thunderclient-mcp

Version:
115 lines 3.58 kB
import { z, ZodSchema } from "zod"; import { ThunderClient } from "../thunder-client.js"; import { Tool } from "@modelcontextprotocol/sdk/types.js"; interface ToolDefinition<TSchema extends ZodSchema, TResult> { name: string; description: string; keywords?: string[]; schema: TSchema; handler: (client: ThunderClient, args: z.infer<TSchema>) => Promise<TResult>; } export declare const toolDefinitions: { readonly thunder_curl: ToolDefinition<z.ZodEffects<z.ZodObject<{ curlInput: z.ZodEffects<z.ZodString, string, string>; name: z.ZodString; collection: z.ZodOptional<z.ZodString>; folder: z.ZodOptional<z.ZodString>; projectDir: z.ZodString; }, "strip", z.ZodTypeAny, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }>, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }>, { success: boolean; error?: string; projectDir?: string; version: string; }>; readonly thunder_debug: ToolDefinition<z.ZodObject<{ projectDir: z.ZodString; }, "strip", z.ZodTypeAny, { projectDir: string; }, { projectDir: string; }>, { success: boolean; error?: string; projectDir?: string; version: string; }>; }; export declare const tools: Tool[]; export declare const toolHandlers: { [k: string]: ToolDefinition<z.ZodEffects<z.ZodObject<{ curlInput: z.ZodEffects<z.ZodString, string, string>; name: z.ZodString; collection: z.ZodOptional<z.ZodString>; folder: z.ZodOptional<z.ZodString>; projectDir: z.ZodString; }, "strip", z.ZodTypeAny, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }>, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }, { projectDir: string; curlInput: string; name: string; collection?: string | undefined; folder?: string | undefined; }>, { success: boolean; error?: string; projectDir?: string; version: string; }> | ToolDefinition<z.ZodObject<{ projectDir: z.ZodString; }, "strip", z.ZodTypeAny, { projectDir: string; }, { projectDir: string; }>, { success: boolean; error?: string; projectDir?: string; version: string; }>; }; export declare const toolNames: Record<string, string>; export type ToolName = (typeof toolDefinitions)[keyof typeof toolDefinitions]["name"]; export type ToolArgs<T extends ToolName> = z.infer<(typeof toolDefinitions)[Extract<keyof typeof toolDefinitions, string>]["schema"]>; export {}; //# sourceMappingURL=definitions.d.ts.map