@patruff/server-curl
Version:
MCP server for making curl/HTTP requests to fetch resources from the internet, with optional image conversion
22 lines (21 loc) • 517 B
TypeScript
export interface CurlArgs {
url: string;
method?: string;
headers?: Record<string, string>;
body?: string;
timeout?: number;
convertTo?: string;
saveAs?: string;
}
export interface CurlResponse {
success: boolean;
statusCode?: number;
headers?: Record<string, string>;
contentType?: string;
isBinary?: boolean;
data?: string;
error?: string;
savedTo?: string;
converted?: boolean;
}
export declare function isValidCurlArgs(args: any): args is CurlArgs;