API Reference
API Reference
Section titled “API Reference”Hub API
Section titled “Hub API”createHub
Section titled “createHub”function createHub(config: HubConfig): Hub;
Create a Hub instance.
Hub.start()
Section titled “Hub.start()”async start(): Promise<void>
Start the hub.
Hub.listTools()
Section titled “Hub.listTools()”async listTools(): Promise<Tool[]>
List available tools (aggregated).
Server API
Section titled “Server API”startServer
Section titled “startServer”async function startServer(options: ServerOptions): Promise<void>;
Start the MCP hub server (STDIO/HTTP).
Internal Resources
Section titled “Internal Resources”hatago://servers
Section titled “hatago://servers”Returns a JSON snapshot of currently connected servers. Fields include id
, status
, type
, and arrays of tools
, resources
, and prompts
.