Configuration Reference
Configuration Reference
Section titled āConfiguration ReferenceāHatago uses a JSON config file (hatago.config.json).
Basic Structure
Section titled āBasic Structureā{ "$schema": "https://raw.githubusercontent.com/himorishige/hatago-mcp-hub/main/schemas/config.schema.json", "version": 1, "logLevel": "info", "mcpServers": {}}version
Section titled āversionā- Type:
number - Required
logLevel
Section titled ālogLevelā- Type:
"debug" | "info" | "warn" | "error" - Default:
"info"
mcpServers
Section titled āmcpServersā- Type:
object - Required: Define local/remote servers
Local Server
Section titled āLocal Serverā{ "server-id": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "env": { "KEY": "value" }, "cwd": "./path", "disabled": false, "tags": ["dev", "local"] }}Remote Server
Section titled āRemote Serverā{ "server-id": { "url": "https://api.example.com/mcp", "type": "http", "headers": { "Authorization": "Bearer ${TOKEN}" }, "disabled": false, "tags": ["production"] }}Env Expansion
Section titled āEnv Expansionā${VAR}ā expand or error if undefined${VAR:-default}ā use default if undefined
Tag Filtering
Section titled āTag Filteringāhatago serve --tags dev,testAuto-reload Configuration Changes
Section titled āAuto-reload Configuration ChangesāBuilt-in watching was removed for simplicity. For auto-reload use a supervisor:
# nodemonnpx nodemon --exec "hatago serve --http" --watch hatago.config.json
# PM2pm2 start "hatago serve --http" --name hatago --watch hatago.config.json