# mcp/COMPATIBILITY - CLI version requirements for this MCP server
# Usage: source "${SCRIPT_DIR}/COMPATIBILITY"

CLI_MIN_VERSION="0.8.0"
CLI_MAX_VERSION="1.0.0"

# MCP 1.7.0 requires CLI 0.8.0 for:
# - `entry field` unified command (replaces set-field, set-fields, unset-field)
# - Standardized date filter parameters (--after/--before)
# - `interaction ls` auto-chunking: --cursor/--all removed, --days or --after required
# - `interaction ls` output includes metadata.dateRange, metadata.chunksProcessed
#
# MCP 1.0.0 requires CLI features introduced in 0.6.0:
# - JSON output format with .data wrapper
# - --session-cache flag
# - --readonly flag
# - config check-key --json command
# - version --output json command

# Progress forwarding requires CLI >= 0.6.10 (NDJSON progress on stderr)
# MCP tools gracefully degrade when progress not supported
PROGRESS_MIN_VERSION="0.6.10"
