caldav-mcp 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,7 @@ import { hrefFor, toCalendarPath } from "./caldav-href.js";
|
|
|
3
3
|
import { assertOrganizerForAttendees, emailAddressOrEmptySchema, emailAddressSchema, readScheduling, toCalAddress, } from "./calendar-address.js";
|
|
4
4
|
import { isoDateTime } from "./iso-datetime.js";
|
|
5
5
|
import { recurrenceRuleSchema, toRecurrenceRule } from "./recurrence-rule.js";
|
|
6
|
+
import { writableAlarms } from "./reminder.js";
|
|
6
7
|
import { carryOverWholeDayDates, toWholeDayDate } from "./whole-day-date.js";
|
|
7
8
|
export const updateEventDefinition = {
|
|
8
9
|
description: "Updates an existing event in the calendar specified by its URL. Only provided fields are changed. For a one-day full-day event, set `wholeDay` to true and set `start` and `end` to the same calendar day. Any update of an event with attendees rewrites them as bare addresses, dropping their names and replies (accepted/declined).",
|
|
@@ -64,6 +65,7 @@ export function registerUpdateEvent(client, server) {
|
|
|
64
65
|
const effectiveWholeDay = wholeDay ?? existing.wholeDay;
|
|
65
66
|
const updated = await client.updateEvent(calendarUrl, {
|
|
66
67
|
...existing,
|
|
68
|
+
...(existing.alarms && { alarms: writableAlarms(existing.alarms) }),
|
|
67
69
|
// Dates the caller doesn't pass are carried over; reshape them so the
|
|
68
70
|
// writer stores the same days. Explicit values below override these.
|
|
69
71
|
...(effectiveWholeDay && carryOverWholeDayDates(existing)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "caldav-mcp",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "A CalDAV client using Model Context Protocol (MCP) to expose calendar operations as tools for AI assistants.",
|
|
5
5
|
"homepage": "https://github.com/langmail/caldav-mcp#readme",
|
|
6
6
|
"bugs": {
|