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.
|
|
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.
|
|
63
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
64
64
|
"cors": "^2.8.5",
|
|
65
|
-
"dotenv": "^
|
|
66
|
-
"express": "^
|
|
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 (
|
|
67
|
+
if (!isProduction) {
|
|
65
68
|
// Development: colored output with readable format
|
|
66
69
|
const colorMap = {
|
|
67
70
|
error: '\x1b[31m', // Red
|
|
@@ -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
|
-
|
|
102
|
+
calendarObject: {
|
|
103
103
|
url: validated.todo_url,
|
|
104
104
|
data: updatedData,
|
|
105
105
|
etag: validated.todo_etag
|