UNPKG

mcp-openweathermap

Version:
21 lines 903 B
import OpenWeatherAPI from "openweather-api-node"; import type { SessionData } from "../auth/types.js"; import type { Units } from "../schemas.js"; /** * Get or create an OpenWeatherAPI client for the given session * @param session - Session data from HTTP auth, or null/undefined for stdio * @returns Configured OpenWeatherAPI client */ export declare function getOpenWeatherClient(session: SessionData | null | undefined): OpenWeatherAPI; /** * Configure client for a specific request * @param client - OpenWeatherAPI client instance * @param location - Location string to parse * @param units - Temperature units */ export declare function configureClientForLocation(client: OpenWeatherAPI, location: string, units?: Units): OpenWeatherAPI; /** * Clear the client cache (useful for testing) */ export declare function clearClientCache(): void; //# sourceMappingURL=client-resolver.d.ts.map