@owine/unifi-protect-mcp 3.0.0 → 3.1.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 +4 -10
- package/dist/version.d.ts +4 -2
- package/dist/version.js +4 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ An MCP (Model Context Protocol) server that exposes UniFi Protect's Integration
|
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
7
|
-
- Node.js
|
|
7
|
+
- A Node.js release that `engines.node` in `package.json` accepts (each supported LTS line is tested in CI)
|
|
8
8
|
- A UniFi Protect system with the Integration API enabled
|
|
9
9
|
- An API key generated from your UniFi Protect console (see [Choosing an API key](#choosing-an-api-key))
|
|
10
10
|
|
|
@@ -433,21 +433,15 @@ Git hooks are managed by [lefthook](https://github.com/evilmartians/lefthook)
|
|
|
433
433
|
|
|
434
434
|
### Commit conventions
|
|
435
435
|
|
|
436
|
-
This project uses [conventional commits](https://www.conventionalcommits.org/) and [release-
|
|
436
|
+
This project uses [conventional commits](https://www.conventionalcommits.org/) in pull request titles and [release-drafter](https://github.com/release-drafter/release-drafter) for releases. Pull requests are squash-merged, so the title is the commit subject:
|
|
437
437
|
|
|
438
438
|
- `feat: ...` — new feature (minor version bump)
|
|
439
439
|
- `fix: ...` — bug fix (patch version bump)
|
|
440
440
|
- `deps: ...` — dependency update (patch version bump; Renovate's type for package bumps)
|
|
441
|
-
- `feat!: ...`
|
|
441
|
+
- `feat!: ...` — breaking change (major version bump); the `!` must be in the title, a `BREAKING CHANGE:` footer is not read
|
|
442
442
|
- `chore:`, `docs:`, `ci:`, etc. — no version bump
|
|
443
443
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
To override the version number, add `Release-As: x.x.x` in the commit body:
|
|
447
|
-
|
|
448
|
-
```bash
|
|
449
|
-
git commit --allow-empty -m "chore: release 2.0.0" -m "Release-As: 2.0.0"
|
|
450
|
-
```
|
|
444
|
+
Every push to `main` updates a draft GitHub Release with the next version and its notes. A maintainer publishes the draft, which builds, tests and publishes that tagged commit to npm with provenance. To release a different version, edit the draft's tag and title before publishing. Release notes after 3.0.0 are in [GitHub Releases](https://github.com/owine/unifi-protect-mcp/releases); `CHANGELOG.md` covers 3.0.0 and earlier.
|
|
451
445
|
|
|
452
446
|
## License
|
|
453
447
|
|
package/dist/version.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The published package version, reported to MCP clients during initialize.
|
|
3
|
-
* Read at runtime
|
|
4
|
-
* release
|
|
3
|
+
* Read at runtime from package.json, which reads 0.0.0-development in the
|
|
4
|
+
* repo; the release workflow stamps the tag's version into it before packing,
|
|
5
|
+
* so a published tarball reports its own version. Resolves to the package
|
|
6
|
+
* root from both src/ and dist/.
|
|
5
7
|
*/
|
|
6
8
|
export declare const SERVER_VERSION: string;
|
package/dist/version.js
CHANGED
|
@@ -5,7 +5,9 @@ const node_fs_1 = require("node:fs");
|
|
|
5
5
|
const node_path_1 = require("node:path");
|
|
6
6
|
/**
|
|
7
7
|
* The published package version, reported to MCP clients during initialize.
|
|
8
|
-
* Read at runtime
|
|
9
|
-
* release
|
|
8
|
+
* Read at runtime from package.json, which reads 0.0.0-development in the
|
|
9
|
+
* repo; the release workflow stamps the tag's version into it before packing,
|
|
10
|
+
* so a published tarball reports its own version. Resolves to the package
|
|
11
|
+
* root from both src/ and dist/.
|
|
10
12
|
*/
|
|
11
13
|
exports.SERVER_VERSION = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, "..", "package.json"), "utf8")).version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owine/unifi-protect-mcp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "MCP server for UniFi Protect Integration API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"lint:fix": "eslint . --fix"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": "^22.19.0 || ^24.0.0"
|
|
24
|
+
"node": "^22.19.0 || ^24.0.0 || ^26.0.0"
|
|
25
25
|
},
|
|
26
|
-
"packageManager": "pnpm@12.
|
|
26
|
+
"packageManager": "pnpm@12.16.1",
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
29
|
"url": "git+https://github.com/owine/unifi-protect-mcp.git"
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
"author": "owine",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@modelcontextprotocol/sdk": "1.32.
|
|
42
|
-
"undici": "8.12.
|
|
41
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
42
|
+
"undici": "8.12.3",
|
|
43
43
|
"ws": "8.22.0",
|
|
44
44
|
"zod": "4.6.7"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@eslint/js": "10.0.1",
|
|
48
|
-
"@types/node": "
|
|
48
|
+
"@types/node": "26.6.6",
|
|
49
49
|
"@types/ws": "8.18.2",
|
|
50
50
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
51
51
|
"@vitest/coverage-v8": "5.0.5",
|
|
52
|
-
"eslint": "10.
|
|
52
|
+
"eslint": "10.14.0",
|
|
53
53
|
"lefthook": "2.2.2",
|
|
54
54
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
55
|
-
"typescript-eslint": "8.
|
|
55
|
+
"typescript-eslint": "8.72.1",
|
|
56
56
|
"vitest": "5.0.5"
|
|
57
57
|
}
|
|
58
58
|
}
|