Skip to content

@appleparan/kma-mcp-server


@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

KMAClientConfig

Returns

TyphoonClient

Overrides

BaseKMAClient.constructor

Properties

authKey

protected authKey: string

Defined in: src/clients/base.ts:43

Inherited from

BaseKMAClient.authKey


client

protected client: AxiosInstance

Defined in: src/clients/base.ts:42

Inherited from

BaseKMAClient.client

Methods

formatDateTime()

protected formatDateTime(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

BaseKMAClient.formatDateTime


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()

protected makeRequest\<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[]>

Inherited from

BaseKMAClient.makeRequest