@himorishige/hatago-cli
@himorishige/hatago-cli
Section titled “@himorishige/hatago-cli”Hatago MCP Hub の開発用CLIユーティリティ。
注: 一般の利用者は
@himorishige/hatago-mcp-hub
の利用を推奨。
Installation
Section titled “Installation”npm install -g @himorishige/hatago-cli# ornpx @himorishige/hatago-cli --help
Server Management
Section titled “Server Management”Start the MCP Hub server:
# Start with STDIO transport (default)hatago serve
# Start with HTTP transporthatago serve --http --port 3000
# Use custom configurationhatago serve --config ./hatago.config.json
MCP Server Management
Section titled “MCP Server Management”Manage MCP servers:
# List configured servershatago mcp list
# Add a local serverhatago mcp add myserver -- node ./server.js
# Add an NPX serverhatago mcp add fs -- npx -y @modelcontextprotocol/server-filesystem /tmp
# Add a remote serverhatago mcp add remote --transport http --url http://example.com/mcp
# Remove a serverhatago mcp remove myserver
Configuration Management
Section titled “Configuration Management”Manage Hatago configuration:
# Show current configurationhatago config show
# Set a configuration valuehatago config set port 3001hatago config set session.timeout 7200000
# Get a configuration valuehatago config get port
# Reset to defaultshatago config reset
Commands
Section titled “Commands”hatago serve
Section titled “hatago serve”Start the MCP Hub server.
Options:
-m, --mode <mode>
: Server mode (stdio
orhttp
)-c, --config <path>
: Path to configuration file-p, --port <port>
: Port to listen on (HTTP mode)-h, --host <host>
: Host to bind to (HTTP mode)--stdio
: Use STDIO transport--http
: Use HTTP transport--verbose
: Verbose output--quiet
: Quiet output
hatago mcp
Section titled “hatago mcp”Manage MCP servers.
Subcommands:
list
: List configured serversadd <name> [command...]
: Add a new serverremove <name>
: Remove a server
hatago config
Section titled “hatago config”Manage Hatago configuration.
Subcommands:
show
: Show current configurationset <key> <value>
: Set a configuration valueget <key>
: Get a configuration valuereset
: Reset to defaults
Configuration Files
Section titled “Configuration Files”Configuration files are stored in ~/.hatago/
:
config.json
: Main configurationservers.json
: MCP server configurations
License
Section titled “License”Apache-2.0