rui-weather-service-api
Version:
Weather API service with OpenWeatherMap integration - includes both standalone API and MCP server
21 lines • 906 B
JavaScript
import { fileURLToPath } from 'url';
// Export weather API functionality
export { WeatherApiClient, weatherApi } from './api/weather-api.js';
// Export weather formatters
export * from './formatters/weather-formatter.js';
// Export MCP server functionality
export { server, startServer } from './server/mcp-server.js';
// Export configuration utilities
export * from './config/index.js';
// Export type definitions
export * from './types/index.js';
// Export CLI utilities
export { setupCli, runCli } from './cli/index.js';
// Check if this file is being run directly - ES Module version
const isMainModule = typeof import.meta.url === 'string' &&
import.meta.url === `file://${fileURLToPath(import.meta.url)}`;
// Only start server if this file is being run directly
if (isMainModule) {
import('./server/mcp-server.js').then(({ startServer }) => startServer());
}
//# sourceMappingURL=index.js.map