CLI Reference
CLI Reference
Section titled “CLI Reference”Hatago MCP Hub exposes the hatago command.
Install / Run
Section titled “Install / Run”# npx (recommended)npx @himorishige/hatago-mcp-hub --version
# or globalnpm install -g @himorishige/hatago-mcp-hubhatago init
Section titled “hatago init”Create hatago.config.json.
hatago init # interactivehatago init --mode stdio # STDIO templatehatago init --mode http # HTTP templatehatago init --config my.json # custom pathOptions: --config, --force, --mode <stdio|http>
hatago serve
Section titled “hatago serve”Start the hub.
hatago serve --stdio --config ./hatago.config.json # STDIOhatago serve --http # HTTP# Hot reload using external tools (v0.0.14+)npx nodemon --exec "hatago serve" --watch hatago.config.jsonhatago serve --tags dev,api # tag filterhatago serve --verbose # verbose logsOptions: --stdio|--http, --config, --host, --port, --tags, --verbose|--quiet
Auto-reload Configuration (v0.0.14+)
Section titled “Auto-reload Configuration (v0.0.14+)”Built-in config watching was removed in v0.0.14 for performance improvements. Use external tools for auto-reload:
# Using nodemonnpx nodemon --exec "hatago serve" --watch hatago.config.json
# Using PM2pm2 start "hatago serve" --watch hatago.config.jsonClient examples
Section titled “Client examples”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.