- Add serialize_dataclass() helper to convert dataclass instances to JSON-compatible dicts
- Convert datetime fields to ISO format strings for JSON serialization
- Fix all MCP tool return values (list_messages, list_chats, search_contacts, etc.)
- Add 'title' parameter to list_messages for easier chat lookup by name
- Change date_range parameter to accept ISO date strings instead of datetime objects
- Set include_context default to False for better performance
Fixes compatibility issues where MCP tools were failing with 'tool compatibility issue' error
because Python dataclasses with datetime fields cannot be directly JSON-serialized.
All tools now return properly serialized dictionaries that work with the MCP protocol.
Author: Danny Stocker
Date: 2025-10-26