@kwonye/mcpx 0.1.79 → 0.1.81

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.
@@ -44,6 +44,9 @@ function getPidPath() {
44
44
  function getLogPath() {
45
45
  return path.join(getLogDir(), "daemon.log");
46
46
  }
47
+ function getGatewayTokenPath(secretName) {
48
+ return path.join(getConfigRoot(), "mcpx", `${secretName}.token`);
49
+ }
47
50
  function getUpdatesDir() {
48
51
  return path.join(getDataRoot(), "mcpx", "updates");
49
52
  }
@@ -102,4 +105,4 @@ function sha256(value) {
102
105
  return crypto.createHash("sha256").update(value).digest("hex");
103
106
  }
104
107
 
105
- export { homeDir, getConfigPath, getSkillsDir, getManagedIndexPath, getSecretNamesPath, getPidPath, getLogPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256 };
108
+ export { homeDir, getConfigPath, getSkillsDir, getManagedIndexPath, getSecretNamesPath, getPidPath, getLogPath, getGatewayTokenPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256 };
@@ -3,7 +3,7 @@ import {
3
3
  getConfigPath,
4
4
  readJsonFile,
5
5
  writeJsonAtomic
6
- } from "./cli-fsf33sgp.js";
6
+ } from "./cli-08mgt3c8.js";
7
7
  import {
8
8
  normalizeServerSpecEnabled
9
9
  } from "./cli-s4gspqdf.js";
@@ -2,12 +2,11 @@ import {
2
2
  loadConfig,
3
3
  loadMergedConfig,
4
4
  saveConfig
5
- } from "./cli-7edpy4nk.js";
5
+ } from "./cli-0ztrmp65.js";
6
6
  import {
7
7
  SecretsManager,
8
- ensureGatewayToken,
9
- getGatewayTokenSecretName
10
- } from "./cli-s4py8ckf.js";
8
+ ensureGatewayToken
9
+ } from "./cli-e6jzjwh5.js";
11
10
  import {
12
11
  ensureDir,
13
12
  ensureParentDir,
@@ -22,7 +21,7 @@ import {
22
21
  readJsonFile,
23
22
  sha256,
24
23
  writeJsonAtomic
25
- } from "./cli-fsf33sgp.js";
24
+ } from "./cli-08mgt3c8.js";
26
25
  import {
27
26
  isServerEnabled
28
27
  } from "./cli-s4gspqdf.js";
@@ -2246,6 +2245,9 @@ function stageUpdate(version, cliPath) {
2246
2245
  };
2247
2246
  fs7.writeFileSync(getStagedVersionPath(), JSON.stringify(stagedInfo, null, 2), "utf8");
2248
2247
  }
2248
+ function shouldUseStagedCli(stagedVersion, currentVersion) {
2249
+ return compareVersions(stagedVersion, currentVersion) > 0;
2250
+ }
2249
2251
  function clearStagedUpdate() {
2250
2252
  const stagedPath = getStagedVersionPath();
2251
2253
  if (fs7.existsSync(stagedPath)) {
@@ -3660,12 +3662,7 @@ function readDaemonLogs(maxLines = 200) {
3660
3662
  }
3661
3663
  function runDaemonForeground(config, port, secrets) {
3662
3664
  return new Promise((resolve, reject) => {
3663
- const tokenName = getGatewayTokenSecretName(config);
3664
- const token = secrets.getSecret(tokenName);
3665
- if (!token) {
3666
- reject(new Error(`Local gateway token not found: ${tokenName}`));
3667
- return;
3668
- }
3665
+ const token = ensureGatewayToken(config, secrets);
3669
3666
  const server = createGatewayServer({
3670
3667
  port,
3671
3668
  expectedToken: token,
@@ -3793,4 +3790,4 @@ async function buildStatusReport(config, managedIndex, daemon = getDaemonStatus(
3793
3790
  };
3794
3791
  }
3795
3792
 
3796
- export { listSkills, getSkill, saveSkill, deleteSkill, probeHttpAuthRequirement, fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec, getAdapters, loadManagedIndex, getGatewayUrl, syncAllClients, toSecretRef, secretRefName, defaultAuthSecretName, resolveAuthTarget, applyAuthReference, removeAuthReference, listAuthBindings, maybePrefixBearer, buildEnrichedPath, isOAuthReference, oauthReferenceServerName, runOAuthLogin, getOAuthAccessToken, APP_VERSION, compareVersions, checkForUpdates, getStagedUpdate, clearStagedUpdate, getStagedCliPath, startBackgroundUpdateCheck, runBackgroundUpdate, performUpdate, performRollback, getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs, runDaemonForeground, STATUS_CLIENTS, buildStatusReport };
3793
+ export { listSkills, getSkill, saveSkill, deleteSkill, probeHttpAuthRequirement, fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec, getAdapters, loadManagedIndex, getGatewayUrl, syncAllClients, toSecretRef, secretRefName, defaultAuthSecretName, resolveAuthTarget, applyAuthReference, removeAuthReference, listAuthBindings, maybePrefixBearer, buildEnrichedPath, isOAuthReference, oauthReferenceServerName, runOAuthLogin, getOAuthAccessToken, APP_VERSION, compareVersions, checkForUpdates, getStagedUpdate, shouldUseStagedCli, clearStagedUpdate, getStagedCliPath, startBackgroundUpdateCheck, runBackgroundUpdate, performUpdate, performRollback, getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs, runDaemonForeground, STATUS_CLIENTS, buildStatusReport };
@@ -2,12 +2,11 @@ import {
2
2
  loadConfig,
3
3
  loadMergedConfig,
4
4
  saveConfig
5
- } from "./cli-7edpy4nk.js";
5
+ } from "./cli-0ztrmp65.js";
6
6
  import {
7
7
  SecretsManager,
8
- ensureGatewayToken,
9
- getGatewayTokenSecretName
10
- } from "./cli-s4py8ckf.js";
8
+ ensureGatewayToken
9
+ } from "./cli-e6jzjwh5.js";
11
10
  import {
12
11
  ensureDir,
13
12
  ensureParentDir,
@@ -22,7 +21,7 @@ import {
22
21
  readJsonFile,
23
22
  sha256,
24
23
  writeJsonAtomic
25
- } from "./cli-fsf33sgp.js";
24
+ } from "./cli-08mgt3c8.js";
26
25
  import {
27
26
  isServerEnabled
28
27
  } from "./cli-s4gspqdf.js";
@@ -2172,7 +2171,7 @@ async function getOAuthAccessToken(serverName, spec, secrets, options = {}) {
2172
2171
  }
2173
2172
 
2174
2173
  // src/version.ts
2175
- var APP_VERSION = "0.1.79";
2174
+ var APP_VERSION = "0.1.81";
2176
2175
 
2177
2176
  // src/core/update.ts
2178
2177
  import fs7 from "node:fs";
@@ -2246,6 +2245,9 @@ function stageUpdate(version, cliPath) {
2246
2245
  };
2247
2246
  fs7.writeFileSync(getStagedVersionPath(), JSON.stringify(stagedInfo, null, 2), "utf8");
2248
2247
  }
2248
+ function shouldUseStagedCli(stagedVersion, currentVersion) {
2249
+ return compareVersions(stagedVersion, currentVersion) > 0;
2250
+ }
2249
2251
  function clearStagedUpdate() {
2250
2252
  const stagedPath = getStagedVersionPath();
2251
2253
  if (fs7.existsSync(stagedPath)) {
@@ -3660,12 +3662,7 @@ function readDaemonLogs(maxLines = 200) {
3660
3662
  }
3661
3663
  function runDaemonForeground(config, port, secrets) {
3662
3664
  return new Promise((resolve, reject) => {
3663
- const tokenName = getGatewayTokenSecretName(config);
3664
- const token = secrets.getSecret(tokenName);
3665
- if (!token) {
3666
- reject(new Error(`Local gateway token not found: ${tokenName}`));
3667
- return;
3668
- }
3665
+ const token = ensureGatewayToken(config, secrets);
3669
3666
  const server = createGatewayServer({
3670
3667
  port,
3671
3668
  expectedToken: token,
@@ -3793,4 +3790,4 @@ async function buildStatusReport(config, managedIndex, daemon = getDaemonStatus(
3793
3790
  };
3794
3791
  }
3795
3792
 
3796
- export { listSkills, getSkill, saveSkill, deleteSkill, probeHttpAuthRequirement, fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec, getAdapters, loadManagedIndex, getGatewayUrl, syncAllClients, toSecretRef, secretRefName, defaultAuthSecretName, resolveAuthTarget, applyAuthReference, removeAuthReference, listAuthBindings, maybePrefixBearer, buildEnrichedPath, isOAuthReference, oauthReferenceServerName, runOAuthLogin, getOAuthAccessToken, APP_VERSION, compareVersions, checkForUpdates, getStagedUpdate, clearStagedUpdate, getStagedCliPath, startBackgroundUpdateCheck, runBackgroundUpdate, performUpdate, performRollback, getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs, runDaemonForeground, STATUS_CLIENTS, buildStatusReport };
3793
+ export { listSkills, getSkill, saveSkill, deleteSkill, probeHttpAuthRequirement, fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec, getAdapters, loadManagedIndex, getGatewayUrl, syncAllClients, toSecretRef, secretRefName, defaultAuthSecretName, resolveAuthTarget, applyAuthReference, removeAuthReference, listAuthBindings, maybePrefixBearer, buildEnrichedPath, isOAuthReference, oauthReferenceServerName, runOAuthLogin, getOAuthAccessToken, APP_VERSION, compareVersions, checkForUpdates, getStagedUpdate, shouldUseStagedCli, clearStagedUpdate, getStagedCliPath, startBackgroundUpdateCheck, runBackgroundUpdate, performUpdate, performRollback, getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs, runDaemonForeground, STATUS_CLIENTS, buildStatusReport };
@@ -1,14 +1,17 @@
1
1
  import {
2
+ ensureParentDir,
3
+ getGatewayTokenPath,
2
4
  getSecretNamesPath,
3
5
  readJsonFile,
4
6
  writeJsonAtomic
5
- } from "./cli-fsf33sgp.js";
7
+ } from "./cli-08mgt3c8.js";
6
8
  import {
7
- __require,
8
9
  normalizeServerSpecEnabled
9
10
  } from "./cli-s4gspqdf.js";
10
11
 
11
12
  // src/core/registry.ts
13
+ import crypto from "node:crypto";
14
+ import fs from "node:fs";
12
15
  import path from "node:path";
13
16
  function validateServerName(name) {
14
17
  if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$/.test(name)) {
@@ -53,11 +56,38 @@ function getGatewayTokenSecretName(config) {
53
56
  }
54
57
  function ensureGatewayToken(config, secrets) {
55
58
  const secretName = getGatewayTokenSecretName(config);
56
- const existing = secrets.getSecret(secretName);
57
- if (existing) {
58
- return existing;
59
- }
60
- return secrets.rotateLocalToken(secretName);
59
+ const tokenPath = getGatewayTokenPath(secretName);
60
+ const envValue = process.env[`MCPX_SECRET_${secretName}`];
61
+ if (envValue && envValue.length > 0) {
62
+ return envValue;
63
+ }
64
+ try {
65
+ const fileValue = fs.readFileSync(tokenPath, "utf8").trim();
66
+ if (fileValue) {
67
+ return fileValue;
68
+ }
69
+ } catch {}
70
+ const keychainValue = secrets.getSecret(secretName);
71
+ if (keychainValue) {
72
+ ensureParentDir(tokenPath);
73
+ fs.writeFileSync(tokenPath, keychainValue, { mode: 384 });
74
+ return keychainValue;
75
+ }
76
+ const token = crypto.randomBytes(32).toString("base64url");
77
+ ensureParentDir(tokenPath);
78
+ fs.writeFileSync(tokenPath, token, { mode: 384 });
79
+ return token;
80
+ }
81
+ function rotateGatewayToken(config, secrets) {
82
+ const secretName = getGatewayTokenSecretName(config);
83
+ const token = crypto.randomBytes(32).toString("base64url");
84
+ const tokenPath = getGatewayTokenPath(secretName);
85
+ ensureParentDir(tokenPath);
86
+ fs.writeFileSync(tokenPath, token, { mode: 384 });
87
+ try {
88
+ secrets.setSecret(secretName, token);
89
+ } catch {}
90
+ return token;
61
91
  }
62
92
  function registerProject(globalConfig, projectPath, name) {
63
93
  if (!globalConfig.projects) {
@@ -76,11 +106,13 @@ function unregisterProject(globalConfig, projectPath) {
76
106
  }
77
107
 
78
108
  // src/core/secrets.ts
79
- import crypto from "node:crypto";
80
- import fs from "node:fs";
109
+ import crypto2 from "node:crypto";
110
+ import fs2 from "node:fs";
111
+ import { createRequire } from "node:module";
81
112
  var keytarSync = null;
82
113
  try {
83
- const keytar = (()=>{throw new Error("Cannot require module "+"../node_modules/keytar/lib/keytar.js");})();
114
+ const _require = createRequire(import.meta.url);
115
+ const keytar = _require("keytar");
84
116
  keytarSync = keytar;
85
117
  } catch {
86
118
  keytarSync = null;
@@ -168,7 +200,7 @@ class SecretsManager {
168
200
  return secret;
169
201
  }
170
202
  rotateLocalToken(secretName = "local_gateway_token") {
171
- const token = crypto.randomBytes(32).toString("base64url");
203
+ const token = crypto2.randomBytes(32).toString("base64url");
172
204
  this.setSecret(secretName, token);
173
205
  return token;
174
206
  }
@@ -177,11 +209,11 @@ function readSecretValueFromStdin() {
177
209
  if (process.stdin.isTTY) {
178
210
  throw new Error("No value provided. Use --value or pipe a value via stdin.");
179
211
  }
180
- const content = fs.readFileSync(process.stdin.fd, "utf8").trim();
212
+ const content = fs2.readFileSync(process.stdin.fd, "utf8").trim();
181
213
  if (content.length === 0) {
182
214
  throw new Error("Empty secret value provided.");
183
215
  }
184
216
  return content;
185
217
  }
186
218
 
187
- export { SecretsManager, readSecretValueFromStdin, validateServerName, addServer, removeServer, updateServer, setServerEnabled, getGatewayTokenSecretName, ensureGatewayToken, registerProject, unregisterProject };
219
+ export { SecretsManager, readSecretValueFromStdin, validateServerName, addServer, removeServer, updateServer, setServerEnabled, getGatewayTokenSecretName, ensureGatewayToken, rotateGatewayToken, registerProject, unregisterProject };
package/dist/cli.js CHANGED
@@ -33,11 +33,12 @@ import {
33
33
  saveSkill,
34
34
  secretRefName,
35
35
  selectBestPackage,
36
+ shouldUseStagedCli,
36
37
  startDaemon,
37
38
  stopDaemon,
38
39
  syncAllClients,
39
40
  toSecretRef
40
- } from "./cli-ydr75jw4.js";
41
+ } from "./cli-7bax8twd.js";
41
42
  import {
42
43
  loadConfig,
43
44
  loadMergedConfig,
@@ -45,7 +46,7 @@ import {
45
46
  resolveActiveConfig,
46
47
  saveConfig,
47
48
  saveProjectConfig
48
- } from "./cli-7edpy4nk.js";
49
+ } from "./cli-0ztrmp65.js";
49
50
  import {
50
51
  SecretsManager,
51
52
  addServer,
@@ -53,12 +54,13 @@ import {
53
54
  readSecretValueFromStdin,
54
55
  registerProject,
55
56
  removeServer,
57
+ rotateGatewayToken,
56
58
  setServerEnabled
57
- } from "./cli-s4py8ckf.js";
59
+ } from "./cli-e6jzjwh5.js";
58
60
  import {
59
61
  getConfigPath,
60
62
  getManagedIndexPath
61
- } from "./cli-fsf33sgp.js";
63
+ } from "./cli-08mgt3c8.js";
62
64
  import {
63
65
  __require,
64
66
  isServerEnabled
@@ -2186,9 +2188,9 @@ function registerAuthCommands(program) {
2186
2188
  }
2187
2189
  });
2188
2190
  auth.command("rotate-local-token").description("Rotate bearer token used for local client->mcpx auth").action(async () => {
2189
- const secrets = new SecretsManager;
2190
- secrets.rotateLocalToken("local_gateway_token");
2191
2191
  const config = loadConfig();
2192
+ const secrets = new SecretsManager;
2193
+ rotateGatewayToken(config, secrets);
2192
2194
  await restartDaemon(config, process.argv[1] ?? "", secrets);
2193
2195
  process.stdout.write(`Rotated local gateway token and restarted daemon.
2194
2196
  `);
@@ -2321,11 +2323,11 @@ function registerProjectCommands(program, cliPath) {
2321
2323
  name: projectName,
2322
2324
  servers: {}
2323
2325
  };
2324
- const { saveProjectConfig: saveProjectConfig2 } = await import("./config-79j3jpra.js");
2326
+ const { saveProjectConfig: saveProjectConfig2 } = await import("./config-p8tjffpa.js");
2325
2327
  saveProjectConfig2(localConfig, targetPath);
2326
2328
  process.stdout.write(`Initialized project configuration at: ${targetPath}
2327
2329
  `);
2328
- const { registerProject: registerProject2 } = await import("./registry-1s14wd58.js");
2330
+ const { registerProject: registerProject2 } = await import("./registry-7rxwynsy.js");
2329
2331
  const globalConfig = loadConfig();
2330
2332
  registerProject2(globalConfig, process.cwd(), projectName);
2331
2333
  saveConfig(globalConfig);
@@ -2356,7 +2358,7 @@ function registerProjectCommands(program, cliPath) {
2356
2358
  process.exit(1);
2357
2359
  }
2358
2360
  const entry = globalConfig.projects[resolvedPath];
2359
- const { unregisterProject: unregisterProject2 } = await import("./registry-1s14wd58.js");
2361
+ const { unregisterProject: unregisterProject2 } = await import("./registry-7rxwynsy.js");
2360
2362
  unregisterProject2(globalConfig, resolvedPath);
2361
2363
  saveConfig(globalConfig);
2362
2364
  process.stdout.write(`Unregistered project "${entry.name}" (${resolvedPath}) from the global configuration.
@@ -2390,7 +2392,7 @@ async function runCli(argv = process.argv) {
2390
2392
  if (!isUpdateCommand) {
2391
2393
  const stagedCliPath = getStagedCliPath();
2392
2394
  const stagedInfo = getStagedUpdate();
2393
- if (stagedCliPath && stagedInfo && stagedCliPath !== argv[1]) {
2395
+ if (stagedCliPath && stagedInfo && stagedCliPath !== argv[1] && shouldUseStagedCli(stagedInfo.version, APP_VERSION)) {
2394
2396
  execFileSync(process.execPath, [stagedCliPath, ...rawArgs], {
2395
2397
  stdio: "inherit",
2396
2398
  env: {
@@ -6,8 +6,8 @@ import {
6
6
  resolveActiveConfig,
7
7
  saveConfig,
8
8
  saveProjectConfig
9
- } from "./cli-7edpy4nk.js";
10
- import"./cli-fsf33sgp.js";
9
+ } from "./cli-0ztrmp65.js";
10
+ import"./cli-08mgt3c8.js";
11
11
  import"./cli-s4gspqdf.js";
12
12
  export {
13
13
  saveProjectConfig,
@@ -1 +1 @@
1
- {"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../src/core/daemon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA6CD,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB5E;AA6BD,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,YAAY,CAmBhE;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA+C1H;AAED,wBAAgB,UAAU,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA2Bl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AED,wBAAsB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAG5H;AAED,wBAAgB,cAAc,CAAC,QAAQ,SAAM,GAAG,MAAM,CAQrD;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB5G"}
@@ -6,7 +6,7 @@ export { getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs
6
6
  export type { DaemonStatus, DaemonStartResult } from "./daemon.js";
7
7
  export { syncAllClients, getGatewayUrl } from "./sync.js";
8
8
  export type { SyncSummary } from "./sync.js";
9
- export { addServer, removeServer, updateServer, setServerEnabled, registerProject, unregisterProject } from "./registry.js";
9
+ export { addServer, removeServer, updateServer, setServerEnabled, registerProject, unregisterProject, ensureGatewayToken, rotateGatewayToken } from "./registry.js";
10
10
  export { listSkills, getSkill, saveSkill, deleteSkill } from "./skills.js";
11
11
  export { SecretsManager } from "./secrets.js";
12
12
  export { applyAuthReference, removeAuthReference, listAuthBindings, resolveAuthTarget, defaultAuthSecretName, maybePrefixBearer, secretRefName, toSecretRef } from "./server-auth.js";
@@ -16,7 +16,7 @@ export { probeHttpAuthRequirement } from "./auth-probe.js";
16
16
  export type { HttpAuthProbeResult } from "./auth-probe.js";
17
17
  export { loadManagedIndex } from "./managed-index.js";
18
18
  export { getConfigPath, getManagedIndexPath } from "./paths.js";
19
- export { checkForUpdates, getStagedUpdate, getStagedCliPath, clearStagedUpdate, compareVersions } from "./update.js";
19
+ export { checkForUpdates, getStagedUpdate, getStagedCliPath, clearStagedUpdate, compareVersions, shouldUseStagedCli } from "./update.js";
20
20
  export type { UpdateStatus, StagedUpdateInfo } from "./update.js";
21
21
  export { startBackgroundUpdateCheck, performUpdate, performRollback } from "./update-manager.js";
22
22
  export { fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec } from "./registry-client.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5H,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAG5G,OAAO,EACL,eAAe,EACf,WAAW,EACX,UAAU,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACpB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGnE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAG5H,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG3E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAChE,YAAY,EAAE,Y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MAAM,YAAY,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACzI,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGjG,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,YAAY,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACpB,MAAM,aAAa,CAAC"}
@@ -35,12 +35,13 @@ import {
35
35
  saveSkill,
36
36
  secretRefName,
37
37
  selectBestPackage,
38
+ shouldUseStagedCli,
38
39
  startBackgroundUpdateCheck,
39
40
  startDaemon,
40
41
  stopDaemon,
41
42
  syncAllClients,
42
43
  toSecretRef
43
- } from "../cli-ydr75jw4.js";
44
+ } from "../cli-7bax8twd.js";
44
45
  import {
45
46
  defaultConfig,
46
47
  loadConfig,
@@ -50,20 +51,22 @@ import {
50
51
  saveConfig,
51
52
  saveProjectConfig,
52
53
  tokenizeCommandLine
53
- } from "../cli-7edpy4nk.js";
54
+ } from "../cli-0ztrmp65.js";
54
55
  import {
55
56
  SecretsManager,
56
57
  addServer,
58
+ ensureGatewayToken,
57
59
  registerProject,
58
60
  removeServer,
61
+ rotateGatewayToken,
59
62
  setServerEnabled,
60
63
  unregisterProject,
61
64
  updateServer
62
- } from "../cli-s4py8ckf.js";
65
+ } from "../cli-e6jzjwh5.js";
63
66
  import {
64
67
  getConfigPath,
65
68
  getManagedIndexPath
66
- } from "../cli-fsf33sgp.js";
69
+ } from "../cli-08mgt3c8.js";
67
70
  import"../cli-s4gspqdf.js";
68
71
  export {
69
72
  updateServer,
@@ -74,6 +77,7 @@ export {
74
77
  stopDaemon,
75
78
  startDaemon,
76
79
  startBackgroundUpdateCheck,
80
+ shouldUseStagedCli,
77
81
  setServerEnabled,
78
82
  selectBestPackage,
79
83
  secretRefName,
@@ -82,6 +86,7 @@ export {
82
86
  saveConfig,
83
87
  runOAuthLogin,
84
88
  runDaemonForeground,
89
+ rotateGatewayToken,
85
90
  restartDaemon,
86
91
  resolveAuthTarget,
87
92
  removeServer,
@@ -112,6 +117,7 @@ export {
112
117
  getConfigPath,
113
118
  fetchRegistryServerDetail,
114
119
  extractRequiredInputs,
120
+ ensureGatewayToken,
115
121
  deleteSkill,
116
122
  defaultConfig,
117
123
  defaultAuthSecretName,
@@ -10,6 +10,7 @@ export declare function getRuntimeDir(): string;
10
10
  export declare function getLogDir(): string;
11
11
  export declare function getPidPath(): string;
12
12
  export declare function getLogPath(): string;
13
+ export declare function getGatewayTokenPath(secretName: string): string;
13
14
  export declare function getUpdatesDir(): string;
14
15
  export declare function getStagedVersionPath(): string;
15
16
  export declare function getUpdateLockPath(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/core/paths.ts"],"names":[],"mappings":"AAaA,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED,wBAAgB,mBAAmB,IAAI,M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AEtC;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,SAAgB,GAAG,MAAM,GAAG,IAAI,CAc7E;AAED,wBAAgB,eAAe,CAAC,QAAQ,SAAgB,GAAG,MAAM,GAAG,IAAI,CAGvE"}
@@ -7,6 +7,7 @@ export declare function updateServer(config: McpxConfig, name: string, spec: Ups
7
7
  export declare function setServerEnabled(config: McpxConfig, name: string, enabled: boolean): void;
8
8
  export declare function getGatewayTokenSecretName(config: McpxConfig): string;
9
9
  export declare function ensureGatewayToken(config: McpxConfig, secrets: SecretsManager): string;
10
+ export declare function rotateGatewayToken(config: McpxConfig, secrets: SecretsManager): string;
10
11
  export declare function registerProject(globalConfig: McpxConfig, projectPath: string, name?: string): void;
11
12
  export declare function unregisterProject(globalConfig: McpxConfig, projectPath: string): void;
12
13
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIrD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,UAAQ,GAAG,IAAI,CAQzG;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG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AI,MAAM,CAWjD"}
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/core/secrets.ts"],"names":[],"mappings":"AAyCA,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;gBAE3B,OAAO,SAAS,EAAE,aAAa,SAAuB;IAKlE,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,iBAAiB;IAMzB,eAAe,IAAI,MAAM,EAAE;IAI3B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAa5C,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAYhC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAqBtC,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAczC,gBAAgB,CAAC,UAAU,SAAwB,GAAG,MAAM;CAK7D;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAWjD"}
@@ -13,6 +13,7 @@ export declare function compareVersions(a: string, b: string): number;
13
13
  export declare function checkForUpdates(): Promise<UpdateStatus>;
14
14
  export declare function getStagedUpdate(): StagedUpdateInfo | null;
15
15
  export declare function stageUpdate(version: string, cliPath: string): void;
16
+ export declare function shouldUseStagedCli(stagedVersion: string, currentVersion: string): boolean;
16
17
  export declare function clearStagedUpdate(): void;
17
18
  export declare function getStagedCliPath(): string | null;
18
19
  export declare function removeOldVersions(keepCount?: number): void;
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/core/update.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,CAA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,CAWlE;AAED,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAEzF;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAKxC;AAED,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAGhD;AAED,wBAAgB,iBAAiB,CAAC,SAAS,SAAI,GAAG,IAAI,CAwBrD"}
@@ -4,18 +4,20 @@ import {
4
4
  getGatewayTokenSecretName,
5
5
  registerProject,
6
6
  removeServer,
7
+ rotateGatewayToken,
7
8
  setServerEnabled,
8
9
  unregisterProject,
9
10
  updateServer,
10
11
  validateServerName
11
- } from "./cli-s4py8ckf.js";
12
- import"./cli-fsf33sgp.js";
12
+ } from "./cli-e6jzjwh5.js";
13
+ import"./cli-08mgt3c8.js";
13
14
  import"./cli-s4gspqdf.js";
14
15
  export {
15
16
  validateServerName,
16
17
  updateServer,
17
18
  unregisterProject,
18
19
  setServerEnabled,
20
+ rotateGatewayToken,
19
21
  removeServer,
20
22
  registerProject,
21
23
  getGatewayTokenSecretName,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const APP_VERSION = "0.1.79";
1
+ export declare const APP_VERSION = "0.1.81";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwonye/mcpx",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "description": "HTTP-first MCP gateway and cross-client installer",
5
5
  "keywords": [
6
6
  "mcp",
@@ -45,7 +45,7 @@
45
45
  "dev": "bun run src/cli.ts --",
46
46
  "sync-version": "bun scripts/sync-version.mjs",
47
47
  "prebuild": "bun run sync-version",
48
- "build": "bun build src/cli.ts src/core/index.ts src/types.ts --outdir dist --target node --format esm --splitting --external commander --external hono --external zod --external \"@modelcontextprotocol/sdk\" --external \"@iarna/toml\" && tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationMap",
48
+ "build": "bun build src/cli.ts src/core/index.ts src/types.ts --outdir dist --target node --format esm --splitting --external commander --external hono --external zod --external \"@modelcontextprotocol/sdk\" --external \"@iarna/toml\" --external keytar && tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationMap",
49
49
  "prepublishOnly": "bun run build",
50
50
  "test": "bun test",
51
51
  "test:watch": "bun test --watch"