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-hub
hatago 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 path
Options: --config
, --force
, --mode <stdio|http>
hatago serve
Section titled “hatago serve”Start the hub.
hatago serve --stdio --config ./hatago.config.json # STDIOhatago serve --http # HTTPhatago serve --watch # hot‑reloadhatago serve --tags dev,api # tag filterhatago serve --verbose # verbose logs
Options: --stdio|--http
, --config
, --host
, --port
, --tags
, --watch
, --verbose|--quiet
Client 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.