UNPKG

@yogeliu/mcp-server-yapi

Version:

Enhanced YAPI MCP server with multi-project support and enterprise features

92 lines 3.12 kB
import { MCPTool, MCPInput } from "mcp-framework"; import { z } from "zod"; declare class GetInterface extends MCPTool { name: string; description: string; schema: z.ZodObject<Pick<{ id: z.ZodNumber; title: z.ZodString; path: z.ZodString; method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"]>; project_id: z.ZodNumber; catid: z.ZodNumber; status: z.ZodDefault<z.ZodEnum<["undone", "done"]>>; desc: z.ZodString; req_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; example: z.ZodString; desc: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; desc: string; name: string; example: string; }, { value: string; desc: string; name: string; example: string; }>, "many">>; req_params: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; example: z.ZodString; desc: z.ZodString; }, "strip", z.ZodTypeAny, { desc: string; name: string; example: string; }, { desc: string; name: string; example: string; }>, "many">>; req_query: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; required: z.ZodEnum<["0", "1"]>; example: z.ZodString; desc: z.ZodString; }, "strip", z.ZodTypeAny, { desc: string; name: string; example: string; required: "0" | "1"; }, { desc: string; name: string; example: string; required: "0" | "1"; }>, "many">>; req_body_type: z.ZodEnum<["raw", "form", "json"]>; req_body_is_json_schema: z.ZodBoolean; req_body_other: z.ZodString; res_body_type: z.ZodDefault<z.ZodEnum<["json", "raw"]>>; res_body: z.ZodString; res_body_is_json_schema: z.ZodBoolean; api_opened: z.ZodBoolean; switch_notice: z.ZodBoolean; page: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; tag: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; name: z.ZodString; type: z.ZodEnum<["swagger"]>; merge: z.ZodEnum<["normal", "good", "merge"]>; json: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; }, "project_id"> & { router_path: z.ZodString; } & { project_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { project_id: number; router_path: string; project_name?: string | undefined; }, { project_id: number; router_path: string; project_name?: string | undefined; }>; execute(input: MCPInput<this>): Promise<import("../utils/yapi-request.js").YapiResponse<any>>; } export default GetInterface; //# sourceMappingURL=GetInterface.d.ts.map