Skip to content

CLI Reference

Hatago MCP Hub exposes the hatago command.

Terminal window
# npx (recommended)
npx @himorishige/hatago-mcp-hub --version
# or global
npm install -g @himorishige/hatago-mcp-hub

Create hatago.config.json.

Terminal window
hatago init # interactive
hatago init --mode stdio # STDIO template
hatago init --mode http # HTTP template
hatago init --config my.json # custom path

Options: --config, --force, --mode <stdio|http>

Start the hub.

Terminal window
hatago serve --stdio --config ./hatago.config.json # STDIO
hatago serve --http # HTTP
hatago serve --watch # hot‑reload
hatago serve --tags dev,api # tag filter
hatago serve --verbose # verbose logs

Options: --stdio|--http, --config, --host, --port, --tags, --watch, --verbose|--quiet

Claude Code .mcp.json:

{
"mcpServers": {
"hatago": {
"command": "npx",
"args": ["@himorishige/hatago-mcp-hub", "serve", "--stdio", "--config", "./hatago.config.json"]
}
}
}

Codex CLI ~/.codex/config.toml:

[mcp_servers.hatago]
command = "npx"
args = ["-y", "@himorishige/hatago-mcp-hub", "serve", "--stdio", "--config", "./hatago.config.json"]

See also: Config Reference, Remote Servers, Tag Filtering.