Error handling

Updated May 23, 2026

Dear Diary returns structured MCP errors for common failure cases:

Table 7: Common error conditions.

Condition Error code Resolution
Missing collection name INVALID_PARAMS Provide collection_name or set COLLECTION_NAME
Collection does not exist Use qdrant_store to create the collection
Server in read-only mode INVALID_REQUEST Disable read-only mode for write operations
Connection failure INTERNAL_ERROR Verify Qdrant URL and credentials
Arbitrary filter not enabled INVALID_PARAMS Filters require additional configuration