Skip to main content
Glama

Japanese Weather MCP Server

weather-api.test.ts•659 B
import { describe, expect, it } from "vitest"; import { CITY_IDS, WeatherAPI } from "./weather-api.js"; describe("WeatherAPI", () => { const weatherAPI = new WeatherAPI(); it("should have valid city IDs", () => { expect(CITY_IDS.TOKYO).toBe("130010"); expect(CITY_IDS.OSAKA).toBe("270000"); expect(CITY_IDS.KYOTO).toBe("260010"); }); it("should create WeatherAPI instance", () => { expect(weatherAPI).toBeInstanceOf(WeatherAPI); }); // Note: We don't test actual API calls in unit tests to avoid rate limiting // and external dependencies. In a real project, you would use mocks or // integration tests for API calls. });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kongyo2/Japanese-Weather-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server