@thinremote/thinr-cli 1.1.0-alpha.1 → 1.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/CHANGELOG.md +8 -0
- package/bin/thinr.js +1 -1
- package/lib/mcp/server.js +6 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -70,6 +70,11 @@ consistent error taxonomy across both interfaces.
|
|
|
70
70
|
- Bad `-i key=value` values surface as a clean Commander
|
|
71
71
|
`InvalidArgumentError` instead of a stack trace.
|
|
72
72
|
- Node.js engine requirement bumped to **`>=18`**; `.nvmrc` pinned to 20.
|
|
73
|
+
- The MCP server's `initialize` response now reports the CLI's
|
|
74
|
+
`package.json` version in `serverInfo.version` (was hardcoded).
|
|
75
|
+
- Runtime dependencies refreshed, including majors: `@inquirer/prompts`
|
|
76
|
+
7 → 8, `conf` 14 → 15, `open` 10 → 11, `ora` 8 → 9. All npm audit
|
|
77
|
+
advisories cleared (0 vulnerabilities on install).
|
|
73
78
|
|
|
74
79
|
### Removed
|
|
75
80
|
|
|
@@ -88,6 +93,9 @@ consistent error taxonomy across both interfaces.
|
|
|
88
93
|
`npm run typecheck`.
|
|
89
94
|
- Unit tests with `node --test` (zero deps): MCP registry invariants +
|
|
90
95
|
error helpers. Script: `npm test`.
|
|
96
|
+
- Publish pipeline migrated from a long-lived `NPM_TOKEN` secret to npm
|
|
97
|
+
Trusted Publishing (OIDC), with `--provenance` attestations on every
|
|
98
|
+
publish. GitHub Actions bumped to `checkout@v5` / `setup-node@v5`.
|
|
91
99
|
|
|
92
100
|
## [1.0.2] - 2025-07-21
|
|
93
101
|
|
package/bin/thinr.js
CHANGED
|
@@ -68,7 +68,7 @@ program
|
|
|
68
68
|
.description('Start the MCP server (stdio) for AI tool integration')
|
|
69
69
|
.action(async () => {
|
|
70
70
|
try {
|
|
71
|
-
await startMCPServer();
|
|
71
|
+
await startMCPServer({ version: pkg.version });
|
|
72
72
|
} catch (error) {
|
|
73
73
|
console.error(`Error: ${error.message}`);
|
|
74
74
|
process.exit(1);
|
package/lib/mcp/server.js
CHANGED
|
@@ -11,8 +11,12 @@ import { withProfile } from './helpers.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* Start a generic MCP server for ThinRemote.
|
|
13
13
|
* All tools accept device (when relevant) plus optional user/profile parameters.
|
|
14
|
+
*
|
|
15
|
+
* @param {{ version?: string }} [opts] `version` is echoed back in the
|
|
16
|
+
* MCP `initialize` response's `serverInfo.version`. Caller is expected
|
|
17
|
+
* to pass the CLI's `package.json#version` so the two never drift.
|
|
14
18
|
*/
|
|
15
|
-
export async function startMCPServer() {
|
|
19
|
+
export async function startMCPServer({ version = 'unknown' } = {}) {
|
|
16
20
|
const config = readConfig();
|
|
17
21
|
if (config.server) {
|
|
18
22
|
setBaseURL(`https://${config.server}`);
|
|
@@ -21,7 +25,7 @@ export async function startMCPServer() {
|
|
|
21
25
|
const server = new Server(
|
|
22
26
|
{
|
|
23
27
|
name: 'thinr',
|
|
24
|
-
version
|
|
28
|
+
version,
|
|
25
29
|
},
|
|
26
30
|
{
|
|
27
31
|
capabilities: { tools: {} },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinremote/thinr-cli",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "CLI for ThinRemote — remote management for IoT devices, with an MCP server for AI clients",
|
|
5
5
|
"main": "bin/thinr.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"author": "ThinRemote",
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@inquirer/prompts": "^
|
|
45
|
+
"@inquirer/prompts": "^8.4.1",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
47
|
"axios": "^1.10.0",
|
|
48
48
|
"chalk": "^5.4.1",
|
|
49
49
|
"commander": "^14.0.0",
|
|
50
|
-
"conf": "^
|
|
50
|
+
"conf": "^15.1.0",
|
|
51
51
|
"figlet": "^1.8.1",
|
|
52
52
|
"jsonwebtoken": "^9.0.2",
|
|
53
|
-
"open": "^
|
|
54
|
-
"ora": "^
|
|
53
|
+
"open": "^11.0.0",
|
|
54
|
+
"ora": "^9.3.0",
|
|
55
55
|
"ws": "^8.18.2"
|
|
56
56
|
},
|
|
57
57
|
"type": "module",
|