Symptoms
hatago: command not found / npx: not foundnode --version)ls hatago.config.json) for STDIO mode--verbose and read first errorSymptoms
hatago: command not found / npx: not foundCauses:
Fix:
npx @himorishige/hatago-mcp-hub ... or add global bin to PATHSymptoms
ENOENT: hatago-config.jsonFix:
npx @himorishige/hatago-mcp-hub inithatago serve --stdio --config ./hatago.config.jsonPrevention: keep an example (hatago-config.example.json) and document copying.
Fix: validate with cat hatago.config.json | jq . and fix syntax.
Symptoms
${VAR} not foundFix: export vars or add defaults (${VAR:-default}).
Causes: wrong command, missing deps, permissions.
Fix: run the server directly (e.g. npx @modelcontextprotocol/server-filesystem .) and read its logs.
Symptoms
ECONNREFUSED / timeoutFixes:
Fixes:
Authorization header presentFixes:
notifications/tools/list_changed support and wait a momenthatago://servers to confirm connected serversUse --verbose for debug, or --quiet to reduce noise.
Change port: hatago serve --http --port 3536.
| Layer | Symptom | Command | First action |
|---|---|---|---|
| 1. Startup | command not found | which hatago | Use npx or fix PATH |
| 2. Config | Invalid config | `cat config | jq .` |
| 3. Env | ${VAR} not found | echo $VAR | Export or set default |
| 4. Spawn | spawn ENOENT | which npx | Use absolute path |
| 5. Network | ECONNREFUSED | curl -I <url> | Verify URL/firewall |
| 6. Auth | 401/403 | echo $TOKEN | Refresh token/scopes |
| 7. Timeout | Request timeout | time curl <url> | Increase timeout |
hatago serve --verbosehatago serve --tags development