UNPKG

@edjl/rest-mcp

Version:

REST API tools for MCP (Model Context Protocol)

18 lines 534 B
import { Method } from 'axios'; export interface RequestOptions { url: string; method: Method; withoutAuthorization?: boolean; headers?: Record<string, string>; contentType?: string; body?: any; queryParams?: Record<string, any>; } export interface RequestResult { data: any; status: number; statusText: string; headers: Record<string, string>; } export declare function makeRequest(options: RequestOptions, authToken?: string): Promise<RequestResult>; //# sourceMappingURL=request.d.ts.map