@inupedia/ugreen-nas-mcp 0.5.0 → 0.5.1
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/docs/sdk-backend.md +1 -1
- package/package.json +2 -2
- package/src/sdk-backend.js +1 -4
package/docs/sdk-backend.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inupedia/ugreen-nas-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Policy-controlled MCP server for UGREEN NAS. The SDK is the default backend; official unc is an explicit fallback.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"rollback:unc": "node scripts/install-unc.js --rollback"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@inupedia/ugreen-nas-sdk": "^0.2.
|
|
34
|
+
"@inupedia/ugreen-nas-sdk": "^0.2.3",
|
|
35
35
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
36
36
|
"proper-lockfile": "4.1.2",
|
|
37
37
|
"zod": "4.6.7"
|
package/src/sdk-backend.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import
|
|
4
|
+
import { OpenCLIError, SDK_VERSION, UgreenNasClient, withRpcSignal } from '@inupedia/ugreen-nas-sdk';
|
|
5
5
|
import { hash, Problem, deviceHome } from './settings.js';
|
|
6
6
|
import { redact } from './unc.js';
|
|
7
7
|
|
|
8
|
-
const { OpenCLIError, SDK_VERSION, UgreenNasClient } = sdk;
|
|
9
|
-
const withRpcSignal = sdk.withRpcSignal ?? ((_signal, run) => run());
|
|
10
|
-
|
|
11
8
|
const credentialName = 'sdk-credentials.json';
|
|
12
9
|
const confirmed = { confirm: true };
|
|
13
10
|
|