mcp-grocy 2.2.0 → 2.5.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/CHANGELOG.md +31 -0
- package/README.md +112 -32
- package/build/api/client.js +11 -13
- package/build/config/index.js +74 -20
- package/build/resources/CHANGELOG.md +31 -0
- package/build/resources/DOCS.md +8 -3
- package/build/resources/README.md +112 -32
- package/build/resources/api-reference.md +88 -88
- package/build/resources/config.md +30 -17
- package/build/resources/examples.md +120 -221
- package/build/resources/installation.md +9 -14
- package/build/resources/response-format.md +18 -13
- package/build/server/http-server.js +154 -42
- package/build/server/mcp-server.js +143 -96
- package/build/server/resources.js +37 -24
- package/build/server/tool-input-zod.js +86 -0
- package/build/tools/base.js +19 -15
- package/build/tools/household/definitions.js +47 -43
- package/build/tools/household/handlers.js +2 -2
- package/build/tools/household/index.js +2 -2
- package/build/tools/inventory/definitions.js +150 -113
- package/build/tools/inventory/handlers.js +55 -42
- package/build/tools/inventory/index.js +2 -2
- package/build/tools/module-loader.js +15 -12
- package/build/tools/recipes/definitions.js +103 -86
- package/build/tools/recipes/handlers.js +44 -38
- package/build/tools/recipes/index.js +3 -3
- package/build/tools/recipes/validations.js +8 -2
- package/build/tools/shopping/definitions.js +22 -20
- package/build/tools/shopping/handlers.js +1 -1
- package/build/tools/shopping/index.js +2 -2
- package/build/tools/system/definitions.js +25 -22
- package/build/tools/system/handlers.js +74 -12
- package/build/tools/system/index.js +2 -2
- package/build/tools/validation-helpers.js +10 -7
- package/build/types/index.js +12 -10
- package/build/utils/errors.js +10 -5
- package/build/utils/logger.js +16 -15
- package/build/version.js +2 -2
- package/package.json +38 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-grocy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for Grocy integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,16 +14,28 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"build",
|
|
16
16
|
"README.md",
|
|
17
|
+
"CHANGELOG.md",
|
|
17
18
|
"LICENSE"
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
21
|
"prebuild": "node scripts/build.js",
|
|
21
22
|
"build": "tsc",
|
|
22
23
|
"prepare": "npm run build",
|
|
24
|
+
"start": "node build/main.js",
|
|
25
|
+
"dev": "npm run build && node build/main.js",
|
|
23
26
|
"watch": "tsc --watch",
|
|
24
27
|
"inspector": "npx @modelcontextprotocol/inspector build/main.js",
|
|
25
28
|
"test": "vitest run",
|
|
29
|
+
"test:mcp-validator": "bash scripts/run-mcp-validator.sh",
|
|
30
|
+
"dev:mcp-tef": "bash scripts/run-mcp-tef.sh",
|
|
31
|
+
"report:mcp-tef": "bash scripts/mcp-tef-report.sh",
|
|
32
|
+
"start:mcp-http-test": "bash scripts/start-mcp-http-for-tests.sh",
|
|
33
|
+
"stop:mcp-http-test": "bash scripts/stop-mcp-http-for-tests.sh",
|
|
26
34
|
"test:watch": "vitest",
|
|
35
|
+
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
36
|
+
"lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
|
|
37
|
+
"format": "prettier --write .",
|
|
38
|
+
"format:check": "prettier --check .",
|
|
27
39
|
"check-tools": "node scripts/check-tools.js",
|
|
28
40
|
"validate-release": "node scripts/check-tools.js --validate-release",
|
|
29
41
|
"update-api-docs": "node scripts/fetch-grocy-api.js",
|
|
@@ -35,33 +47,36 @@
|
|
|
35
47
|
"prepare-dev-release:dryrun": "node scripts/prepare-dev-release.js --dry-run"
|
|
36
48
|
},
|
|
37
49
|
"dependencies": {
|
|
38
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
39
|
-
"axios": "^1.6
|
|
40
|
-
"cors": "^2.8.
|
|
41
|
-
"dotenv": "^
|
|
42
|
-
"express": "^5.1
|
|
43
|
-
"fuse.js": "^7.
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"zod": "^3.22.0"
|
|
50
|
+
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
51
|
+
"axios": "^1.13.6",
|
|
52
|
+
"cors": "^2.8.6",
|
|
53
|
+
"dotenv": "^17.3.1",
|
|
54
|
+
"express": "^5.2.1",
|
|
55
|
+
"fuse.js": "^7.1.0",
|
|
56
|
+
"yaml": "^2.8.3",
|
|
57
|
+
"zod": "^4.3.6"
|
|
47
58
|
},
|
|
48
59
|
"devDependencies": {
|
|
49
|
-
"@commitlint/cli": "^
|
|
50
|
-
"@commitlint/config-conventional": "^
|
|
51
|
-
"@commitlint/types": "^
|
|
60
|
+
"@commitlint/cli": "^20.5.0",
|
|
61
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
62
|
+
"@commitlint/types": "^20.5.0",
|
|
63
|
+
"@eslint/js": "^9.39.4",
|
|
52
64
|
"@semantic-release/changelog": "^6.0.3",
|
|
53
|
-
"@semantic-release/exec": "^
|
|
65
|
+
"@semantic-release/exec": "^7.1.0",
|
|
54
66
|
"@semantic-release/git": "^10.0.1",
|
|
55
|
-
"@types/cors": "^2.8.
|
|
56
|
-
"@types/express": "^5.0.
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"@types/uuid": "^10.0.0",
|
|
67
|
+
"@types/cors": "^2.8.19",
|
|
68
|
+
"@types/express": "^5.0.6",
|
|
69
|
+
"@types/node": "^22.15.0",
|
|
59
70
|
"@types/yaml": "^1.9.6",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
71
|
+
"eslint": "^9.39.4",
|
|
72
|
+
"eslint-config-prettier": "^10.1.8",
|
|
73
|
+
"fs-extra": "^11.3.4",
|
|
74
|
+
"prettier": "^3.8.1",
|
|
75
|
+
"semantic-release": "^25.0.3",
|
|
62
76
|
"ts-node": "^10.9.1",
|
|
63
|
-
"typescript": "^5.
|
|
64
|
-
"
|
|
77
|
+
"typescript": "^5.9.3",
|
|
78
|
+
"typescript-eslint": "^8.57.2",
|
|
79
|
+
"vitest": "^4.1.2"
|
|
65
80
|
},
|
|
66
81
|
"keywords": [
|
|
67
82
|
"grocy",
|
|
@@ -84,7 +99,7 @@
|
|
|
84
99
|
},
|
|
85
100
|
"homepage": "https://github.com/miguelangel-nubla/mcp-grocy#readme",
|
|
86
101
|
"engines": {
|
|
87
|
-
"node": ">=
|
|
102
|
+
"node": ">=22.0.0"
|
|
88
103
|
},
|
|
89
104
|
"config": {
|
|
90
105
|
"supportedGrocyVersion": "4.5.0"
|