Environment variables
Credential resolution
The server resolves authentication in this order:CROSMOS_API_KEYcredentials.jsoncreated byauth login- Error if no key is available
~/.crosmos/credentials.json unless CROSMOS_CREDENTIALS_DIR is set.
Space resolution
search_memories and add_memory need a target memory space. The MCP server resolves it in this order:
- Explicit
space_idpassed to the tool DEFAULT_SPACE_IDDEFAULT_SPACE_NAME, resolved by exact name lookup- First space returned by
list_spaces - Error if no spaces exist
Client config with environment variables
Custom API URL
UseCROSMOS_API_BASE_URL when targeting a non-default API environment:
HTTP server settings
crosmos-mcp-http reads these server variables:
The HTTP server supports CORS for
GET, POST, and OPTIONS, and exposes /sse, /message, and /health.