MCP session lost on every container restart (Hermes re-init required) #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every time the MCP container restarts (
docker compose up -d), Hermes MCP client sessions are invalidated. The next tool call returnsMcpError: Session terminatedand the agent must re-initialize (which sometimes requires 2-3 retries before succeeding).Impact
During debugging (July 16 session), the container was restarted ~6 times for network/key fixes. Each restart required session renegotiation, adding friction to an already fragile flow.
Proposed Fix
list_folders)Context
This is primarily an MCP protocol / client issue, but the server should be robust against it.