Skip to content

Fix: report calendar available when CalDAV is configured (#76)#77

Merged
MadLlama25 merged 1 commit into
MadLlama25:mainfrom
JonathanGodley:fix/caldav-availability
Jul 6, 2026
Merged

Fix: report calendar available when CalDAV is configured (#76)#77
MadLlama25 merged 1 commit into
MadLlama25:mainfrom
JonathanGodley:fix/caldav-availability

Conversation

@JonathanGodley

Copy link
Copy Markdown
Contributor

Summary

check_function_availability reports calendar as unavailable for accounts that have CalDAV configured but lack the JMAP urn:ietf:params:jmap:calendars capability — even though the calendar tools (list_calendars, list_calendar_events, get_calendar_event, create_calendar_event) run over CalDAV and work fine. Reported in #76.

Fix

Calendar availability is now JMAP calendar capability OR CalDAV configured (initializeCalDAVClient() !== null). The note reflects which backend is active (JMAP / CalDAV / neither), and the enablement guide is shown only when neither path is available — now mentioning the CalDAV option as well as the JMAP scope steps.

Scope

  • src/index.tscheck_function_availability handler + tool description
  • README.md — tool reference note

No other behavior changes; no version bump.

Testing

  • npx tsc --noEmit clean.
  • npm test passes except for two pre-existing symlink-escape tests that require Windows elevation in my environment (unrelated to this change; they fail identically on a pristine main).
  • Manual: with only FASTMAIL_CALDAV_USERNAME / FASTMAIL_CALDAV_PASSWORD set and no JMAP calendar scope, check_function_availability now reports calendar available: true with a "Calendar is available via CalDAV" note.

Closes #76.

check_function_availability derived calendar availability solely from the JMAP
calendar capability. But the calendar tools run over CalDAV, so an account with
CalDAV credentials set (FASTMAIL_CALDAV_USERNAME / FASTMAIL_CALDAV_PASSWORD) but
without the JMAP calendar scope was told calendar was unavailable even though
list_calendars and friends work.

Calendar is now reported available when the JMAP calendar capability is present
OR CalDAV is configured (initializeCalDAVClient() !== null). The note reflects
the active backend, and the enablement guide is shown only when neither path is
available (and now mentions the CalDAV option).

Closes MadLlama25#76.
@MadLlama25 MadLlama25 merged commit 671331e into MadLlama25:main Jul 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check_function_availability reports calendar unavailable when CalDAV fallback works

2 participants