- • Agent spawns (stdio) or connects (HTTP) to the server
- •
initialize exchange negotiates protocol version and capabilities
- • Agent then calls
tools/list, prompts/list, resources/list
- • All capabilities indexed in-memory — available immediately in chat
- • During a chat turn the agent decides which tool to call
- • Sends
tools/call with tool name and arguments
- • Server executes the tool and returns a content array
- • Result injected back into agent context for the response
- • Server fails to start → check command path and dependencies
- • Handshake timeout → server may be slow or unreachable
- • Missing env var → credentials not in
~/.hermes/.env
- • Agent marks server unavailable; UI shows Disconnected