APIリファレンス
APIリファレンス
Section titled “APIリファレンス”Hatago MCP HubのAPIリファレンスです。
Hub API
Section titled “Hub API”createHub
Section titled “createHub”function createHub(config: HubConfig): Hub;Hubインスタンスを作成します。
Hub.start()
Section titled “Hub.start()”async start(): Promise<void>Hubを起動します。
Hub.listTools()
Section titled “Hub.listTools()”async listTools(): Promise<Tool[]>利用可能なツール一覧を取得します。
Server API
Section titled “Server API”startServer
Section titled “startServer”async function startServer(options: ServerOptions): Promise<void>;サーバーを起動します。
内部リソース
Section titled “内部リソース”hatago://servers
Section titled “hatago://servers”現在接続しているサーバー一覧を JSON で返します。id / status / type に加え、tools / resources / prompts の配列を含みます。