ornold-mcp 1.2.0 → 1.2.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2055,7 +2055,7 @@ function getOptionalString(argNames, envNames) {
2055
2055
  return value === "" ? void 0 : value;
2056
2056
  }
2057
2057
  var TOKEN = getArg("token") || process.env.ORNOLD_TOKEN || "";
2058
- var SERVER_URL = getArg("server") || process.env.ORNOLD_SERVER || "wss://ornold-mcp.fly.dev/bridge";
2058
+ var SERVER_URL = getArg("server") || process.env.ORNOLD_SERVER || "wss://mcp.ornold.com/bridge";
2059
2059
  var LINKEN_PORT = getOptionalPort("linken-port", "LINKEN_PORT");
2060
2060
  var WADEX_PORT = getOptionalPort("wadex-port", "WADEX_PORT");
2061
2061
  var DOLPHIN_PORT = getOptionalPort("dolphin-port", "DOLPHIN_PORT");
@@ -2079,7 +2079,7 @@ function getPackageVersion() {
2079
2079
  var CLIENT_VERSION = getPackageVersion();
2080
2080
  if (!TOKEN) {
2081
2081
  console.error("Usage: npx ornold-mcp --token <your_token>");
2082
- console.error("Get your token at https://ornold-mcp.fly.dev");
2082
+ console.error("Get your token at https://mcp.ornold.com");
2083
2083
  process.exit(1);
2084
2084
  }
2085
2085
  var ws = null;
@@ -2118,7 +2118,7 @@ function connectServer() {
2118
2118
  const msg = JSON.parse(data.toString());
2119
2119
  if (msg.type === "connected") {
2120
2120
  serverReady = true;
2121
- console.error(`[ornold] Authenticated. Plan: ${msg.plan}, Profiles: ${msg.limits?.profiles}, Captchas: ${msg.limits?.captchas}`);
2121
+ console.error(`[ornold] Authenticated. Plan: ${msg.plan}, Seats: ${msg.usage?.seats}/${msg.limits?.seats}, Captchas: ${msg.limits?.captchas}`);
2122
2122
  resolve();
2123
2123
  }
2124
2124
  if (msg.type === "error") {
@@ -2148,7 +2148,11 @@ function connectServer() {
2148
2148
  ws.on("close", (code) => {
2149
2149
  serverReady = false;
2150
2150
  if (code === 4001) {
2151
- console.error("[ornold] Invalid token. Get your token at https://ornold-mcp.fly.dev");
2151
+ console.error("[ornold] Invalid token. Get your token at https://mcp.ornold.com");
2152
+ process.exit(1);
2153
+ }
2154
+ if (code === 4003) {
2155
+ console.error("[ornold] Seat limit reached. Upgrade at https://mcp.ornold.com");
2152
2156
  process.exit(1);
2153
2157
  }
2154
2158
  console.error(`[ornold] Disconnected (${code}). Reconnecting in 3s...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ornold-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "main": "./dist/cli.js",
6
6
  "files": [