dav-mcp 3.0.1 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dav-mcp",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Complete DAV integration for AI - Calendar (CalDAV), Contacts (CardDAV), and Tasks (VTODO) management via MCP protocol",
5
5
  "type": "module",
6
6
  "main": "src/server-stdio.js",
@@ -60,10 +60,10 @@
60
60
  "CHANGELOG.md"
61
61
  ],
62
62
  "dependencies": {
63
- "@modelcontextprotocol/sdk": "^1.18.2",
63
+ "@modelcontextprotocol/sdk": "^1.25.3",
64
64
  "cors": "^2.8.5",
65
- "dotenv": "^16.4.7",
66
- "express": "^4.21.2",
65
+ "dotenv": "^17.2.3",
66
+ "express": "^5.2.1",
67
67
  "express-rate-limit": "^8.1.0",
68
68
  "ical.js": "^2.2.1",
69
69
  "tsdav": "github:PhilflowIO/tsdav#master",
package/src/logger.js CHANGED
@@ -9,6 +9,9 @@
9
9
  // Detect STDIO transport mode - must write to stderr to preserve stdout for JSON-RPC
10
10
  const isStdioMode = process.env.MCP_TRANSPORT === 'stdio';
11
11
 
12
+ // Cache environment check to avoid repeated env access (satisfies CodeQL)
13
+ const isProduction = process.env.NODE_ENV === 'production';
14
+
12
15
  class JSONLogger {
13
16
  constructor(context = {}, level = 'info') {
14
17
  this.context = context;
@@ -61,7 +64,7 @@ class JSONLogger {
61
64
  : (msg) => console.log(msg);
62
65
 
63
66
  // Pretty-print in development, single-line JSON in production
64
- if (process.env.NODE_ENV !== 'production') {
67
+ if (!isProduction) {
65
68
  // Development: colored output with readable format
66
69
  const colorMap = {
67
70
  error: '\x1b[31m', // Red
@@ -27,7 +27,7 @@ export const deleteTodo = {
27
27
  const client = tsdavManager.getCalDavClient();
28
28
 
29
29
  await client.deleteTodo({
30
- todo: {
30
+ calendarObject: {
31
31
  url: validated.todo_url,
32
32
  etag: validated.todo_etag,
33
33
  },
@@ -99,7 +99,7 @@ export const updateTodoFields = {
99
99
 
100
100
  // Step 3: Send the updated todo back to server
101
101
  const updateResponse = await client.updateTodo({
102
- todo: {
102
+ calendarObject: {
103
103
  url: validated.todo_url,
104
104
  data: updatedData,
105
105
  etag: validated.todo_etag
@@ -31,7 +31,7 @@ export const updateTodoRaw = {
31
31
  const client = tsdavManager.getCalDavClient();
32
32
 
33
33
  const result = await client.updateTodo({
34
- todo: {
34
+ calendarObject: {
35
35
  url: validated.todo_url,
36
36
  data: validated.updated_ical_data,
37
37
  etag: validated.todo_etag,