# Session: 2026-04-14 - Hermes MCP & Obsidian Setup ## Participants - **User**: Garfield - **AI**: Claude Code (claude-sonnet-4-6) ## Session Overview Linked the local hermes-mcp repo to GitHub, pulled latest code, got the stopped hermes-mcp container back online behind Traefik, and deployed obsidian-remote for agent history tracking. --- ## 1. Context/Problem Statement - hermes-mcp repo existed locally with no git remote configured - hermes-mcp Docker container had been stopped (Exited 137) for 5 weeks - Setup.sh and nginx.conf assumed nginx for SSL termination, but Traefik was already owning ports 80/443 - Wanted Obsidian accessible via browser to track and link agent history ## 2. Investigation/Work Done - Added GitHub remote: `https://github.com/yuukiii/hermes-mcp` - Pulled latest code (hard reset to overwrite conflicting local files) - Found hermes-mcp container existed but was stopped (Exit 137 - killed) - Checked Traefik config (`/home/garfield/traefik.yml`) — uses Docker label provider, `exposedByDefault: false`, Let's Encrypt via httpChallenge - Identified nginx conflict (ports 80/443 already owned by Traefik) - Adopted Traefik label pattern from `fetcherpay-api` as the reference - Connected Traefik to `hermes-mcp_hermes-net` and `obsidian_obsidian-net` networks - Deployed obsidian-remote at `/home/garfield/obsidian/` ## 3. Results/Achievements - hermes-mcp running at `https://hermes.fetcherpay.com` - Obsidian running at `https://obsidian.fetcherpay.com` - Both routed through Traefik with auto SSL via Let's Encrypt ## 4. Key Decisions Made - Dropped nginx approach in favour of Traefik labels (consistent with rest of infra) - Connected Traefik to each service's Docker network via `docker network connect` (rather than putting all services on one shared network) - Vaults stored at `/home/garfield/obsidian/vaults` (bind mount for persistence) ## 5. Technical Details - Files modified: - `/home/garfield/hermes-mcp/docker-compose.yml` — added Traefik labels, removed port binding - `/home/garfield/obsidian/docker-compose.yml` — created new, with Traefik labels - Settings configured: - hermes-mcp port: `3456` - Obsidian port: `8080` - Traefik certresolver: `letsencrypt` - URLs/endpoints: - `https://hermes.fetcherpay.com` — Hermes MCP (SSE + Streamable HTTP on `/mcp` and `/sse`) - `https://obsidian.fetcherpay.com` — Obsidian Remote web UI - Networks connected to Traefik: - `hermes-mcp_hermes-net` - `obsidian_obsidian-net` ## 6. Issues Encountered & Solutions | Issue | Solution | |-------|----------| | Local files conflicted with git pull | `git fetch && git reset --hard origin/main` | | hermes-mcp container stopped (Exit 137) | Rebuilt and restarted via `docker compose up -d --build` | | nginx conflicts with Traefik on ports 80/443 | Replaced nginx with Traefik labels | | Default `bridge` network doesn't support aliases | Used service's own user-defined network + `docker network connect traefik` | ## 7. Next Steps / TODO - [ ] Point vault in Obsidian UI to `/vaults/` and start capturing agent history - [ ] Consider adding password protection to obsidian.fetcherpay.com (Traefik BasicAuth middleware) - [ ] Traefik network connections are not persistent across Traefik restarts — consider adding Traefik to these networks in its own compose/run config ## 8. References - GitHub repo: https://github.com/yuukiii/hermes-mcp - Obsidian Remote: https://github.com/sytone/obsidian-remote - Traefik config: `/home/garfield/traefik.yml` - Obsidian vaults: `/home/garfield/obsidian/vaults` --- ## Session Files Modified/Created - `/home/garfield/hermes-mcp/docker-compose.yml` — added Traefik labels, removed port binding, added hermes-net - `/home/garfield/obsidian/docker-compose.yml` — created with Traefik labels and vault volume mount - `/home/garfield/obsidian/vaults/` — created (empty, ready for vault creation) ## Session Status: COMPLETE