portveil-mcp 0.4.0 → 0.4.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/dist/index.js +1 -1
- package/dist/portveil.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ server.registerTool("get_device", {
|
|
|
64
64
|
const [devices, servers] = await Promise.all([pv.devices(), pv.servers()]);
|
|
65
65
|
const d = resolveDevice(device, devices);
|
|
66
66
|
const seen = d.last_seen_s_ago == null ? "never" : `${Math.round(d.last_seen_s_ago)}s ago`;
|
|
67
|
-
return `${describeDevice(d, servers)}\nLast report: ${seen}
|
|
67
|
+
return `${describeDevice(d, servers)}\nLast report: ${seen}.${d.status_detail ? `\n${d.status_detail}` : ""}`;
|
|
68
68
|
}));
|
|
69
69
|
server.registerTool("get_account", {
|
|
70
70
|
title: "Get account",
|
package/dist/portveil.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Portveil API client and the logic behind the MCP tools. No MCP types here,
|
|
2
2
|
// so it can be tested against a fake API.
|
|
3
3
|
import { generateKeyPairSync } from "node:crypto";
|
|
4
|
-
export const VERSION = "0.4.
|
|
4
|
+
export const VERSION = "0.4.1";
|
|
5
5
|
/** "↓ 42.3 Mbps ↑ 6.1 Mbps", or "idle" when nothing is moving. */
|
|
6
6
|
export function describeSpeed(speed) {
|
|
7
7
|
if (speed.down_mbps < 0.1 && speed.up_mbps < 0.1)
|
|
@@ -54,6 +54,8 @@ export function describeDevice(d, servers) {
|
|
|
54
54
|
state = "offline";
|
|
55
55
|
else if (d.exit_confirmed && d.quality === "good")
|
|
56
56
|
state = `protected, exiting in ${place}`;
|
|
57
|
+
else if (d.exit_confirmed && d.quality === "fair")
|
|
58
|
+
state = `idle: tunnel to ${place} confirmed but no traffic right now (it resumes on the device's next use)`;
|
|
57
59
|
else
|
|
58
60
|
state = `connected to ${place}, not yet confirmed by the exit`;
|
|
59
61
|
const remote = d.platform === "wireguard-app" ? "view only (WireGuard app)" : d.allow_remote ? "remote control on" : "remote control off";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "portveil-mcp",
|
|
3
3
|
"mcpName": "io.github.roybogs/portveil-mcp",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "MCP server for Portveil: let AI assistants see your devices and move them between VPN locations.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|