@tinycloud/mcp 0.10.0-beta.30 → 0.10.0-beta.32

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/http.cjs CHANGED
@@ -273,6 +273,7 @@ function logToolCall(tool, code, startedAt, replayedGrants) {
273
273
  }
274
274
 
275
275
  // src/remote-store.ts
276
+ var import_sdk_core = require("@tinycloud/sdk-core");
276
277
  var import_node_crypto3 = require("crypto");
277
278
  var import_promises = require("fs/promises");
278
279
  var import_node_path = require("path");
@@ -352,7 +353,7 @@ var NATIVE_GRANT_IMPORT_REJECTION_CODES = /* @__PURE__ */ new Set([
352
353
  "DELEGATION_HOST_MISMATCH",
353
354
  "DELEGATION_REJECTED"
354
355
  ]);
355
- var LEGACY_DEFAULT_NODE_HOST = "https://node.tinycloud.xyz";
356
+ var PRODUCTION_NODE_HOSTS = /* @__PURE__ */ new Set(["https://node.tinycloud.xyz", "https://tee.node.tinycloud.xyz"]);
356
357
  var BOOTSTRAP_PERMISSIONS = [
357
358
  {
358
359
  service: "tinycloud.kv",
@@ -1082,10 +1083,10 @@ var RemoteTenantStore = class {
1082
1083
  authMethod: "openkey",
1083
1084
  openkeyHost: this.#config.openkeyHost
1084
1085
  });
1085
- } else if (typeof profile.host === "string" && profile.host.replace(/\/+$/, "") === LEGACY_DEFAULT_NODE_HOST && this.#config.nodeHost.replace(/\/+$/, "") !== LEGACY_DEFAULT_NODE_HOST) {
1086
+ } else if (typeof profile.host === "string" && PRODUCTION_NODE_HOSTS.has(profile.host.replace(/\/+$/, "")) && PRODUCTION_NODE_HOSTS.has(this.#config.nodeHost.replace(/\/+$/, "")) && profile.host.replace(/\/+$/, "") !== this.#config.nodeHost.replace(/\/+$/, "")) {
1086
1087
  await secureWrite(profilePath, { ...profile, host: this.#config.nodeHost });
1087
1088
  process.stderr.write(
1088
- `[tinycloud-mcp-http] tenant node host migrated: from=${LEGACY_DEFAULT_NODE_HOST} to=${new URL(this.#config.nodeHost).origin}
1089
+ `[tinycloud-mcp-http] tenant node host migrated: from=${profile.host.replace(/\/+$/, "")} to=${new URL(this.#config.nodeHost).origin}
1089
1090
  `
1090
1091
  );
1091
1092
  }
@@ -1403,6 +1404,7 @@ function normalizeDid(value) {
1403
1404
  return value.split("#", 1)[0];
1404
1405
  }
1405
1406
  function sameNodeHost(left, right) {
1407
+ if (PRODUCTION_NODE_HOSTS.has(left) && (0, import_sdk_core.sameTinyCloudNode)(left, right)) return true;
1406
1408
  try {
1407
1409
  const normalize = (value) => {
1408
1410
  const url = new URL(value);
@@ -1970,7 +1972,7 @@ function outcomeCode(result) {
1970
1972
  // package.json
1971
1973
  var package_default = {
1972
1974
  name: "@tinycloud/mcp",
1973
- version: "0.10.0-beta.30",
1975
+ version: "0.10.0-beta.32",
1974
1976
  description: "TinyCloud delegated operations MCP server",
1975
1977
  keywords: [
1976
1978
  "tinycloud",
@@ -2041,9 +2043,10 @@ var package_default = {
2041
2043
  dependencies: {
2042
2044
  "@modelcontextprotocol/node": "2.0.0-beta.5",
2043
2045
  "@modelcontextprotocol/server": "2.0.0-beta.5",
2044
- "@tinycloud/node-sdk": "3.12.0-beta.22",
2046
+ "@tinycloud/node-sdk": "3.12.0-beta.24",
2047
+ "@tinycloud/sdk-core": "3.12.0-beta.24",
2045
2048
  "@tinycloud/node-sdk-wasm": "1.7.9-beta.0",
2046
- "@tinycloud/operations": "0.9.0-beta.26",
2049
+ "@tinycloud/operations": "0.9.0-beta.28",
2047
2050
  jose: "6.2.4"
2048
2051
  },
2049
2052
  devDependencies: {