@appleparan/kma-mcp-server / clients/typhoon / TyphoonClient
Class: TyphoonClient¶
Defined in: src/clients/typhoon.ts:20
Extends¶
Constructors¶
Constructor¶
new TyphoonClient(
config):TyphoonClient
Defined in: src/clients/typhoon.ts:21
Parameters¶
config¶
Returns¶
TyphoonClient
Overrides¶
Properties¶
authKey¶
protectedauthKey:string
Defined in: src/clients/base.ts:43
Inherited from¶
client¶
protectedclient:AxiosInstance
Defined in: src/clients/base.ts:42
Inherited from¶
Methods¶
formatDateTime()¶
protectedformatDateTime(date,includeTime):string
Defined in: src/clients/base.ts:96
Format datetime to KMA API format (YYYYMMDDHHmm or YYYYMMDD)
Parameters¶
date¶
Date
includeTime¶
boolean = true
Returns¶
string
Inherited from¶
getCurrentTyphoons()¶
getCurrentTyphoons():
Promise\<TyphoonInfo[]>
Defined in: src/clients/typhoon.ts:28
Get information on currently active typhoons
Returns¶
Promise\<TyphoonInfo[]>
getTyphoonById()¶
getTyphoonById(
typhoonId):Promise\<TyphoonInfo[]>
Defined in: src/clients/typhoon.ts:36
Get detailed information for a specific typhoon
Parameters¶
typhoonId¶
string
Typhoon identification number (e.g., '2501')
Returns¶
Promise\<TyphoonInfo[]>
getTyphoonForecast()¶
getTyphoonForecast(
typhoonId):Promise\<TyphoonInfo[]>
Defined in: src/clients/typhoon.ts:46
Get forecast track for a specific typhoon
Parameters¶
typhoonId¶
string
Typhoon identification number
Returns¶
Promise\<TyphoonInfo[]>
getTyphoonHistory()¶
getTyphoonHistory(
year):Promise\<TyphoonInfo[]>
Defined in: src/clients/typhoon.ts:56
Get typhoon history for a specific year
Parameters¶
year¶
Year in YYYY format
string | number
Returns¶
Promise\<TyphoonInfo[]>
makeRequest()¶
protectedmakeRequest\<T>(endpoint,params):Promise\<T[]>
Defined in: src/clients/base.ts:56
Type Parameters¶
T¶
T = unknown
Parameters¶
endpoint¶
string
params¶
Record\<string, unknown>
Returns¶
Promise\<T[]>