caldav-mcp 0.2.2 → 0.3.0
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.
- package/README.md +15 -2
- package/dist/index.js +10 -2
- package/package.json +58 -68
package/README.md
CHANGED
|
@@ -44,12 +44,25 @@
|
|
|
44
44
|
|
|
45
45
|
## Development
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
### Quick Start
|
|
48
|
+
|
|
49
|
+
Run the MCP server in development mode with auto-reload:
|
|
50
|
+
```bash
|
|
51
|
+
npm run dev
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
This will run the TypeScript code directly with watch mode and automatically load environment variables from `.env`.
|
|
55
|
+
|
|
56
|
+
### Manual Build
|
|
57
|
+
|
|
58
|
+
Alternatively, you can compile TypeScript to JavaScript and run it:
|
|
59
|
+
|
|
60
|
+
1. Compile:
|
|
48
61
|
```bash
|
|
49
62
|
npx tsc
|
|
50
63
|
```
|
|
51
64
|
|
|
52
|
-
2. Run
|
|
65
|
+
2. Run:
|
|
53
66
|
```bash
|
|
54
67
|
node dist/index.js
|
|
55
68
|
```
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "dotenv/config";
|
|
3
|
-
import { CalDAVClient } from "ts-caldav";
|
|
4
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import { CalDAVClient } from "ts-caldav";
|
|
6
5
|
import { registerCreateEvent } from "./tools/create-event.js";
|
|
7
6
|
import { registerDeleteEvent } from "./tools/delete-event.js";
|
|
8
7
|
import { registerListCalendars } from "./tools/list-calendars.js";
|
|
@@ -20,6 +19,15 @@ async function main() {
|
|
|
20
19
|
password: process.env.CALDAV_PASSWORD || "",
|
|
21
20
|
},
|
|
22
21
|
});
|
|
22
|
+
// Test connection on startup
|
|
23
|
+
try {
|
|
24
|
+
await client.getCalendars();
|
|
25
|
+
console.log("✅ Connected to CalDAV server");
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error("❌ Failed to connect to CalDAV server:", error);
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
23
31
|
registerCreateEvent(client, server);
|
|
24
32
|
registerListEvents(client, server);
|
|
25
33
|
registerDeleteEvent(client, server);
|
package/package.json
CHANGED
|
@@ -1,70 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"typescript": "^5.8.3",
|
|
61
|
-
"typescript-eslint": "^8.34.1",
|
|
62
|
-
"vitest": "^3.2.4"
|
|
63
|
-
},
|
|
64
|
-
"lint-staged": {
|
|
65
|
-
"src/**/*.{ts,tsx,js,jsx}": [
|
|
66
|
-
"eslint --fix",
|
|
67
|
-
"prettier --write"
|
|
68
|
-
]
|
|
69
|
-
}
|
|
2
|
+
"name": "caldav-mcp",
|
|
3
|
+
"description": "A CalDAV client using Model Context Protocol (MCP) to expose calendar operations as tools for AI assistants.",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"caldav-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": ["dist"],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc && shx chmod +x dist/*.js",
|
|
13
|
+
"dev": "tsx --watch --env-file=.env src/index.ts",
|
|
14
|
+
"prepare": "husky",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"test:watch": "vitest",
|
|
17
|
+
"test:coverage": "vitest run --coverage",
|
|
18
|
+
"check": "biome check .",
|
|
19
|
+
"check:fix": "biome check --write .",
|
|
20
|
+
"check:ci": "biome ci .",
|
|
21
|
+
"validate": "npm run check && npm test && npm run build",
|
|
22
|
+
"watch": "tsc --watch",
|
|
23
|
+
"semantic-release": "semantic-release"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/dominik1001/caldav-mcp.git"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/dominik1001/caldav-mcp/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/dominik1001/caldav-mcp#readme",
|
|
33
|
+
"author": "Dominik Grusemann",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18.0.0",
|
|
37
|
+
"npm": ">=9.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@modelcontextprotocol/sdk": "^1.13.0",
|
|
41
|
+
"ts-caldav": "^0.2.5"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@biomejs/biome": "2.3.14",
|
|
45
|
+
"@commitlint/cli": "^20.4.1",
|
|
46
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
47
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
48
|
+
"@semantic-release/git": "^10.0.1",
|
|
49
|
+
"@semantic-release/github": "^12.0.5",
|
|
50
|
+
"@semantic-release/npm": "^13.1.4",
|
|
51
|
+
"@types/node": "^24.0.3",
|
|
52
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
53
|
+
"husky": "^9.1.7",
|
|
54
|
+
"semantic-release": "^25.0.3",
|
|
55
|
+
"shx": "^0.4.0",
|
|
56
|
+
"tsx": "^4.21.0",
|
|
57
|
+
"typescript": "^5.9.3",
|
|
58
|
+
"vitest": "^3.2.4"
|
|
59
|
+
}
|
|
70
60
|
}
|