@davidwoods/skylight-mcp 1.8.2 → 1.8.5
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/LICENSE +22 -22
- package/README.md +637 -636
- package/THIRD_PARTY_NOTICES.md +38 -38
- package/dist/api/endpoints/chores.d.ts +42 -0
- package/dist/api/endpoints/chores.d.ts.map +1 -1
- package/dist/api/endpoints/chores.js +61 -0
- package/dist/api/endpoints/chores.js.map +1 -1
- package/dist/api/endpoints/meals.d.ts +20 -3
- package/dist/api/endpoints/meals.d.ts.map +1 -1
- package/dist/api/endpoints/meals.js +68 -10
- package/dist/api/endpoints/meals.js.map +1 -1
- package/dist/cli.js +5 -5
- package/dist/config.js +23 -23
- package/dist/tools/calendar.d.ts.map +1 -1
- package/dist/tools/calendar.js +59 -57
- package/dist/tools/calendar.js.map +1 -1
- package/dist/tools/chores.d.ts.map +1 -1
- package/dist/tools/chores.js +181 -62
- package/dist/tools/chores.js.map +1 -1
- package/dist/tools/family.js +17 -17
- package/dist/tools/lists.js +87 -87
- package/dist/tools/meals.d.ts.map +1 -1
- package/dist/tools/meals.js +135 -110
- package/dist/tools/meals.js.map +1 -1
- package/dist/tools/messages.js +32 -32
- package/dist/tools/misc.js +14 -14
- package/dist/tools/photos.js +6 -6
- package/dist/tools/planning.js +18 -18
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +1 -0
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/rewards.d.ts.map +1 -1
- package/dist/tools/rewards.js +75 -74
- package/dist/tools/rewards.js.map +1 -1
- package/dist/tools/tasks.js +13 -13
- package/dist/utils/errors.js +16 -16
- package/dist/utils/redact.d.ts +9 -0
- package/dist/utils/redact.d.ts.map +1 -0
- package/dist/utils/redact.js +24 -0
- package/dist/utils/redact.js.map +1 -0
- package/package.json +78 -78
package/dist/utils/errors.js
CHANGED
|
@@ -64,31 +64,31 @@ export class ParseError extends SkylightError {
|
|
|
64
64
|
*/
|
|
65
65
|
export function formatErrorForMcp(error) {
|
|
66
66
|
if (error instanceof AuthenticationError) {
|
|
67
|
-
return `Authentication Error: ${error.message}
|
|
68
|
-
|
|
69
|
-
Your Skylight token may have expired. To fix this:
|
|
70
|
-
1. If using email/password auth, retry with valid SKYLIGHT_EMAIL and SKYLIGHT_PASSWORD
|
|
71
|
-
2. If using a manual token, capture fresh API traffic using a proxy tool
|
|
72
|
-
3. Update your SKYLIGHT_TOKEN environment variable if you are using manual token auth
|
|
73
|
-
|
|
67
|
+
return `Authentication Error: ${error.message}
|
|
68
|
+
|
|
69
|
+
Your Skylight token may have expired. To fix this:
|
|
70
|
+
1. If using email/password auth, retry with valid SKYLIGHT_EMAIL and SKYLIGHT_PASSWORD
|
|
71
|
+
2. If using a manual token, capture fresh API traffic using a proxy tool
|
|
72
|
+
3. Update your SKYLIGHT_TOKEN environment variable if you are using manual token auth
|
|
73
|
+
|
|
74
74
|
See the auth documentation for detailed steps.`;
|
|
75
75
|
}
|
|
76
76
|
if (error instanceof NotFoundError) {
|
|
77
|
-
return `Not Found: ${error.message}
|
|
78
|
-
|
|
79
|
-
This could mean:
|
|
80
|
-
- The requested item doesn't exist
|
|
81
|
-
- Your frame ID is incorrect
|
|
77
|
+
return `Not Found: ${error.message}
|
|
78
|
+
|
|
79
|
+
This could mean:
|
|
80
|
+
- The requested item doesn't exist
|
|
81
|
+
- Your frame ID is incorrect
|
|
82
82
|
- The item was deleted from Skylight`;
|
|
83
83
|
}
|
|
84
84
|
if (error instanceof RateLimitError) {
|
|
85
|
-
return `Rate Limited: ${error.message}
|
|
86
|
-
|
|
85
|
+
return `Rate Limited: ${error.message}
|
|
86
|
+
|
|
87
87
|
The Skylight API is temporarily limiting requests. Please wait a moment and try again.`;
|
|
88
88
|
}
|
|
89
89
|
if (error instanceof ConfigurationError) {
|
|
90
|
-
return `Configuration Error: ${error.message}
|
|
91
|
-
|
|
90
|
+
return `Configuration Error: ${error.message}
|
|
91
|
+
|
|
92
92
|
Please check your environment variables are set correctly.`;
|
|
93
93
|
}
|
|
94
94
|
if (error instanceof SkylightError) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscription feed addresses (published iCloud calendars, league schedules
|
|
3
|
+
* with a user id in the query) work like passwords: anyone holding the URL can
|
|
4
|
+
* read the calendar. Tool output goes to assistants and logs, so only the scheme
|
|
5
|
+
* and host are kept. Anything that is not an http, https, webcal or webcals URL
|
|
6
|
+
* is returned unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export declare function redactFeedUrl(value: string): string;
|
|
9
|
+
//# sourceMappingURL=redact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../src/utils/redact.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYnD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const FEED_URL = /^(https?|webcals?):\/\//i;
|
|
2
|
+
/**
|
|
3
|
+
* Subscription feed addresses (published iCloud calendars, league schedules
|
|
4
|
+
* with a user id in the query) work like passwords: anyone holding the URL can
|
|
5
|
+
* read the calendar. Tool output goes to assistants and logs, so only the scheme
|
|
6
|
+
* and host are kept. Anything that is not an http, https, webcal or webcals URL
|
|
7
|
+
* is returned unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export function redactFeedUrl(value) {
|
|
10
|
+
const trimmed = value.trim();
|
|
11
|
+
if (!FEED_URL.test(trimmed))
|
|
12
|
+
return value;
|
|
13
|
+
const scheme = /^[a-z]+/i.exec(trimmed)[0].toLowerCase();
|
|
14
|
+
try {
|
|
15
|
+
// URL() does not parse webcal: hosts the same way on every runtime, so
|
|
16
|
+
// parse as https and keep the original scheme for display.
|
|
17
|
+
const host = new URL(trimmed.replace(/^[a-z]+:/i, "https:")).hostname;
|
|
18
|
+
return `${scheme}://${host}/... (feed address hidden)`;
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return "(feed address hidden)";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=redact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact.js","sourceRoot":"","sources":["../../src/utils/redact.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,0BAA0B,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1C,MAAM,MAAM,GAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAqB,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9E,IAAI,CAAC;QACH,uEAAuE;QACvE,2DAA2D;QAC3D,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;QACtE,OAAO,GAAG,MAAM,MAAM,IAAI,4BAA4B,CAAC;IACzD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,uBAAuB,CAAC;IACjC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@davidwoods/skylight-mcp",
|
|
3
|
-
"version": "1.8.
|
|
4
|
-
"description": "Unofficial MCP server for Skylight Calendar: local (stdio) and hosted (Cloudflare Workers), with browser-paste OAuth sign-in and an encrypted credential store",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"skylight-mcp": "dist/index.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"README.md",
|
|
13
|
-
"LICENSE",
|
|
14
|
-
"THIRD_PARTY_NOTICES.md"
|
|
15
|
-
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsc",
|
|
18
|
-
"start": "node dist/index.js",
|
|
19
|
-
"dev": "tsx watch src/index.ts",
|
|
20
|
-
"test": "vitest",
|
|
21
|
-
"test:coverage": "vitest --coverage",
|
|
22
|
-
"lint": "eslint src/",
|
|
23
|
-
"typecheck": "tsc --noEmit",
|
|
24
|
-
"prepare": "npm run build",
|
|
25
|
-
"generate:types": "openapi-typescript ../skylight-api/docs/openapi/openapi.yaml -o src/api/generated-types.ts",
|
|
26
|
-
"typecheck:worker": "tsc -p tsconfig.worker.json",
|
|
27
|
-
"worker:dev": "wrangler dev",
|
|
28
|
-
"worker:deploy": "wrangler deploy",
|
|
29
|
-
"worker:deploy:local": "wrangler deploy -c wrangler.local.jsonc",
|
|
30
|
-
"worker:setup": "node scripts/setup-worker.mjs",
|
|
31
|
-
"prepublishOnly": "npm run typecheck && npm run lint && vitest run && npm run build",
|
|
32
|
-
"test:live": "vitest run --config vitest.live.config.ts"
|
|
33
|
-
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"mcp",
|
|
36
|
-
"skylight",
|
|
37
|
-
"calendar",
|
|
38
|
-
"model-context-protocol",
|
|
39
|
-
"claude",
|
|
40
|
-
"ai",
|
|
41
|
-
"family",
|
|
42
|
-
"chores"
|
|
43
|
-
],
|
|
44
|
-
"author": "David Woods",
|
|
45
|
-
"license": "MIT",
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/dwooods/skylight-mcp.git"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@cloudflare/workers-oauth-provider": "^1.2.4",
|
|
52
|
-
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
53
|
-
"zod": "^4.6.7"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@cloudflare/workers-types": "^5.20261029.1",
|
|
57
|
-
"@types/node": "^22.20.5",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
59
|
-
"@typescript-eslint/parser": "^7.0.0",
|
|
60
|
-
"eslint": "^8.57.0",
|
|
61
|
-
"openapi-typescript": "^7.0.0",
|
|
62
|
-
"tsx": "^4.7.0",
|
|
63
|
-
"typescript": "^5.4.5",
|
|
64
|
-
"vite": "^8.3.5",
|
|
65
|
-
"vitest": "^5.0.5",
|
|
66
|
-
"wrangler": "^4.156.0"
|
|
67
|
-
},
|
|
68
|
-
"publishConfig": {
|
|
69
|
-
"access": "public"
|
|
70
|
-
},
|
|
71
|
-
"engines": {
|
|
72
|
-
"node": ">=20.0.0"
|
|
73
|
-
},
|
|
74
|
-
"homepage": "https://github.com/dwooods/skylight-mcp#readme",
|
|
75
|
-
"bugs": {
|
|
76
|
-
"url": "https://github.com/dwooods/skylight-mcp/issues"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@davidwoods/skylight-mcp",
|
|
3
|
+
"version": "1.8.5",
|
|
4
|
+
"description": "Unofficial MCP server for Skylight Calendar: local (stdio) and hosted (Cloudflare Workers), with browser-paste OAuth sign-in and an encrypted credential store",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"skylight-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"THIRD_PARTY_NOTICES.md"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"start": "node dist/index.js",
|
|
19
|
+
"dev": "tsx watch src/index.ts",
|
|
20
|
+
"test": "vitest",
|
|
21
|
+
"test:coverage": "vitest --coverage",
|
|
22
|
+
"lint": "eslint src/",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"prepare": "npm run build",
|
|
25
|
+
"generate:types": "openapi-typescript ../skylight-api/docs/openapi/openapi.yaml -o src/api/generated-types.ts",
|
|
26
|
+
"typecheck:worker": "tsc -p tsconfig.worker.json",
|
|
27
|
+
"worker:dev": "wrangler dev",
|
|
28
|
+
"worker:deploy": "wrangler deploy",
|
|
29
|
+
"worker:deploy:local": "wrangler deploy -c wrangler.local.jsonc",
|
|
30
|
+
"worker:setup": "node scripts/setup-worker.mjs",
|
|
31
|
+
"prepublishOnly": "npm run typecheck && npm run lint && vitest run && npm run build",
|
|
32
|
+
"test:live": "vitest run --config vitest.live.config.ts"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"mcp",
|
|
36
|
+
"skylight",
|
|
37
|
+
"calendar",
|
|
38
|
+
"model-context-protocol",
|
|
39
|
+
"claude",
|
|
40
|
+
"ai",
|
|
41
|
+
"family",
|
|
42
|
+
"chores"
|
|
43
|
+
],
|
|
44
|
+
"author": "David Woods",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/dwooods/skylight-mcp.git"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@cloudflare/workers-oauth-provider": "^1.2.4",
|
|
52
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
53
|
+
"zod": "^4.6.7"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@cloudflare/workers-types": "^5.20261029.1",
|
|
57
|
+
"@types/node": "^22.20.5",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
59
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
60
|
+
"eslint": "^8.57.0",
|
|
61
|
+
"openapi-typescript": "^7.0.0",
|
|
62
|
+
"tsx": "^4.7.0",
|
|
63
|
+
"typescript": "^5.4.5",
|
|
64
|
+
"vite": "^8.3.5",
|
|
65
|
+
"vitest": "^5.0.5",
|
|
66
|
+
"wrangler": "^4.156.0"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=20.0.0"
|
|
73
|
+
},
|
|
74
|
+
"homepage": "https://github.com/dwooods/skylight-mcp#readme",
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/dwooods/skylight-mcp/issues"
|
|
77
|
+
}
|
|
78
|
+
}
|