UNPKG

@yogeliu/mcp-server-yapi

Version:

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

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