@miguelarios/cal-mcp 0.2.0 → 0.2.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.
@@ -0,0 +1,162 @@
1
+ {
2
+ "tools": [
3
+ {
4
+ "name": "list_calendars",
5
+ "description": "List all calendars across all configured CalDAV providers. Returns provider-prefixed IDs (e.g., mailbox/work).",
6
+ "inputSchema": { "type": "object", "properties": {} }
7
+ },
8
+ {
9
+ "name": "list_events",
10
+ "description": "Query events in a calendar by date range. Expands recurring events.",
11
+ "inputSchema": {
12
+ "type": "object",
13
+ "properties": {
14
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID (e.g., mailbox/Work)" },
15
+ "start": { "type": "string", "description": "Start of date range (ISO 8601)" },
16
+ "end": { "type": "string", "description": "End of date range (ISO 8601)" }
17
+ },
18
+ "required": ["calendar", "start", "end"]
19
+ }
20
+ },
21
+ {
22
+ "name": "get_event",
23
+ "description": "Get full details of a single event by calendar and UID.",
24
+ "inputSchema": {
25
+ "type": "object",
26
+ "properties": {
27
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID" },
28
+ "uid": { "type": "string", "description": "Event UID" }
29
+ },
30
+ "required": ["calendar", "uid"]
31
+ }
32
+ },
33
+ {
34
+ "name": "create_event",
35
+ "description": "Create a new calendar event.",
36
+ "inputSchema": {
37
+ "type": "object",
38
+ "properties": {
39
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID" },
40
+ "summary": { "type": "string", "description": "Event title" },
41
+ "start": { "type": "string", "description": "Start time (ISO 8601)" },
42
+ "end": { "type": "string", "description": "End time (ISO 8601)" },
43
+ "location": { "type": "string", "description": "Event location" },
44
+ "description": { "type": "string", "description": "Event description" },
45
+ "attendees": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "email": { "type": "string" },
51
+ "name": { "type": "string" }
52
+ },
53
+ "required": ["email"]
54
+ },
55
+ "description": "List of attendees"
56
+ }
57
+ },
58
+ "required": ["calendar", "summary", "start", "end"]
59
+ }
60
+ },
61
+ {
62
+ "name": "update_event",
63
+ "description": "Update an existing event. Only provided fields are changed.",
64
+ "inputSchema": {
65
+ "type": "object",
66
+ "properties": {
67
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID" },
68
+ "uid": { "type": "string", "description": "Event UID to update" },
69
+ "summary": { "type": "string", "description": "New event title" },
70
+ "start": { "type": "string", "description": "New start time (ISO 8601)" },
71
+ "end": { "type": "string", "description": "New end time (ISO 8601)" },
72
+ "location": { "type": "string", "description": "New location" },
73
+ "description": { "type": "string", "description": "New description" },
74
+ "attendees": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "object",
78
+ "properties": {
79
+ "email": { "type": "string" },
80
+ "name": { "type": "string" }
81
+ },
82
+ "required": ["email"]
83
+ },
84
+ "description": "New attendee list (replaces existing)"
85
+ }
86
+ },
87
+ "required": ["calendar", "uid"]
88
+ }
89
+ },
90
+ {
91
+ "name": "delete_event",
92
+ "description": "Delete a calendar event by UID.",
93
+ "inputSchema": {
94
+ "type": "object",
95
+ "properties": {
96
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID" },
97
+ "uid": { "type": "string", "description": "Event UID to delete" }
98
+ },
99
+ "required": ["calendar", "uid"]
100
+ }
101
+ },
102
+ {
103
+ "name": "create_events_batch",
104
+ "description": "Create multiple events at once. Returns created event count.",
105
+ "inputSchema": {
106
+ "type": "object",
107
+ "properties": {
108
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID" },
109
+ "events": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "object",
113
+ "properties": {
114
+ "summary": { "type": "string" },
115
+ "start": { "type": "string" },
116
+ "end": { "type": "string" },
117
+ "location": { "type": "string" },
118
+ "description": { "type": "string" }
119
+ },
120
+ "required": ["summary", "start", "end"]
121
+ },
122
+ "description": "Array of events to create"
123
+ }
124
+ },
125
+ "required": ["calendar", "events"]
126
+ }
127
+ },
128
+ {
129
+ "name": "import_ics",
130
+ "description": "Import events from iCalendar (.ics) content into a calendar.",
131
+ "inputSchema": {
132
+ "type": "object",
133
+ "properties": {
134
+ "calendar": { "type": "string", "description": "Provider-prefixed calendar ID" },
135
+ "icsContent": { "type": "string", "description": "Raw iCalendar content string" }
136
+ },
137
+ "required": ["calendar", "icsContent"]
138
+ }
139
+ },
140
+ {
141
+ "name": "find_free_slots",
142
+ "description": "Find available time slots across specified calendars. Returns free windows matching the requested duration.",
143
+ "inputSchema": {
144
+ "type": "object",
145
+ "properties": {
146
+ "calendars": {
147
+ "type": "array",
148
+ "items": { "type": "string" },
149
+ "description": "Provider-prefixed calendar IDs to check availability against"
150
+ },
151
+ "start": { "type": "string", "description": "Start of search range (ISO 8601)" },
152
+ "end": { "type": "string", "description": "End of search range (ISO 8601)" },
153
+ "duration": { "type": "number", "description": "Minimum slot duration in minutes" },
154
+ "preferredStart": { "type": "string", "description": "Preferred earliest time (HH:MM, e.g., 08:00)" },
155
+ "preferredEnd": { "type": "string", "description": "Preferred latest time (HH:MM, e.g., 17:00)" },
156
+ "ignore_tentative": { "type": "boolean", "description": "If true, tentative events don't block slots (default: false)" }
157
+ },
158
+ "required": ["calendars", "start", "end", "duration"]
159
+ }
160
+ }
161
+ ]
162
+ }
package/dist/bin/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miguelarios/cal-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MCP server for calendars via CalDAV — CRUD events, free/busy, multi-provider",
5
5
  "keywords": [
6
6
  "mcp",
@@ -22,7 +22,7 @@
22
22
  "cal-mcp": "dist/bin/cli.js"
23
23
  },
24
24
  "scripts": {
25
- "build": "tsc",
25
+ "build": "tsc && chmod +x dist/bin/cli.js",
26
26
  "typecheck": "tsc --noEmit",
27
27
  "test": "vitest run",
28
28
  "lint": "biome check .",