caldav-mcp 0.4.0 → 0.4.1

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.
@@ -13,8 +13,8 @@ export function registerCreateEvent(client, server) {
13
13
  description: "Creates an event in the calendar specified by its URL",
14
14
  inputSchema: {
15
15
  summary: z.string(),
16
- start: z.string().datetime(),
17
- end: z.string().datetime(),
16
+ start: z.string().datetime().describe("Start datetime (ISO 8601)"),
17
+ end: z.string().datetime().describe("End datetime (ISO 8601)"),
18
18
  calendarUrl: z.string(),
19
19
  recurrenceRule: recurrenceRuleSchema.optional(),
20
20
  },
@@ -1,13 +1,20 @@
1
1
  import { z } from "zod";
2
- const dateString = z.string().refine((val) => !Number.isNaN(Date.parse(val)), {
3
- message: "Invalid date string",
4
- });
5
2
  export function registerListEvents(client, server) {
6
3
  server.registerTool("list-events", {
7
4
  description: "List all events between start and end date in the calendar specified by its URL",
8
5
  inputSchema: {
9
- start: dateString,
10
- end: dateString,
6
+ start: z
7
+ .string()
8
+ .refine((val) => !Number.isNaN(Date.parse(val)), {
9
+ message: "Invalid date string",
10
+ })
11
+ .describe("Start date (ISO 8601)"),
12
+ end: z
13
+ .string()
14
+ .refine((val) => !Number.isNaN(Date.parse(val)), {
15
+ message: "Invalid date string",
16
+ })
17
+ .describe("End date (ISO 8601)"),
11
18
  calendarUrl: z.string(),
12
19
  },
13
20
  }, async (args) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "caldav-mcp",
3
3
  "description": "A CalDAV client using Model Context Protocol (MCP) to expose calendar operations as tools for AI assistants.",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "bin": {