feat: Implement CalDAV client and FastMCP server exposing calendar event management tools.

This commit is contained in:
Lago
2026-01-26 16:25:39 +01:00
parent 32dd756885
commit 1100396c79
6 changed files with 84 additions and 15 deletions

18
test_rrule_fix.py Normal file
View File

@@ -0,0 +1,18 @@
from icalendar import vRecur
def parse_rrule(rrule_str: str) -> dict:
parts = rrule_str.split(';')
rrule = {}
for part in parts:
if '=' in part:
key, value = part.split('=', 1)
# Fix: split commas into list
if ',' in value:
value = value.split(',')
rrule[key] = value
return rrule
rrule_str = "FREQ=WEEKLY;BYDAY=MO,WE"
rrule_dict = parse_rrule(rrule_str)
print(f"Parsed dict: {rrule_dict}")
print(f"vRecur result: {vRecur(rrule_dict).to_ical().decode('utf-8')}")