npmplus-mcp-server
Version:
Production-ready MCP server for intelligent JavaScript package management. Works with Claude, Windsurf, Cursor, VS Code, and any MCP-compatible AI editor.
36 lines • 1.01 kB
TypeScript
/**
* HTTP request configuration options for the HttpClient.
*
* @interface RequestOptions
* @example
* ```typescript
* const options: RequestOptions = {
* method: "POST",
* headers: { "Content-Type": "application/json" },
* body: { query: "lodash" },
* timeout: 5000
* };
* ```
*/
interface RequestOptions {
method?: "GET" | "POST" | "PUT" | "DELETE";
headers?: Record<string, string>;
body?: any;
timeout?: number;
}
export declare class HttpClient {
private baseHeaders;
constructor();
request<T>(url: string, options?: RequestOptions): Promise<T>;
npmRegistry<T>(endpoint: string): Promise<T>;
npmApi<T>(endpoint: string): Promise<T>;
bundlephobia(packageSpec: string): Promise<any>;
packagephobia(packageName: string): Promise<any>;
npmSearch(query: string, options?: {
size?: number;
from?: number;
}): Promise<any>;
}
export declare const httpClient: HttpClient;
export {};
//# sourceMappingURL=http-client.d.ts.map