@kwonye/mcpx 0.1.102 → 0.1.104

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 (96) hide show
  1. package/dist/{marketplace-zem0m4mw.js → chunk-02r7k4ax.js} +20 -17
  2. package/dist/{plugin-host-5jmyt0td.js → chunk-0xhdyt4z.js} +8 -5
  3. package/dist/chunk-12vgqm89.js +31 -0
  4. package/dist/{config-fbgyqmv1.js → chunk-31brdz5s.js} +14 -11
  5. package/dist/chunk-91vcwk5m.js +21 -0
  6. package/dist/chunk-941dqsx2.js +10432 -0
  7. package/dist/{plugin-manager-rw05c2x3.js → chunk-b58zsdp4.js} +23 -20
  8. package/dist/{cli-s4gspqdf.js → chunk-bjw71y54.js} +3 -4
  9. package/dist/chunk-bnbz55g6.js +38 -0
  10. package/dist/chunk-c7zg7ey3.js +17 -0
  11. package/dist/{cli-6wh8qx2y.js → chunk-cqenqnxk.js} +6 -1
  12. package/dist/{cli-hh7rthhx.js → chunk-cz8cdmw1.js} +7 -4
  13. package/dist/chunk-enzmq965.js +40 -0
  14. package/dist/{cli-aawpvhhe.js → chunk-s9v1epnk.js} +7 -5
  15. package/dist/chunk-tnhekcpv.js +1487 -0
  16. package/dist/chunk-wj4tjacg.js +52 -0
  17. package/dist/{cli-6zq2fd6h.js → chunk-wq4zd3t7.js} +4 -2
  18. package/dist/chunk-xydajvzg.js +38 -0
  19. package/dist/{cli-9k3wmag6.js → chunk-z1k63fa3.js} +18 -21
  20. package/dist/{registry-04kfpjh0.js → chunk-z34m83m4.js} +16 -13
  21. package/dist/cli.js +34124 -994
  22. package/dist/compat/claude.d.ts +1 -1
  23. package/dist/compat/qwen.d.ts +2 -2
  24. package/dist/core/error-reporting.d.ts +6 -0
  25. package/dist/core/index.d.ts +4 -2
  26. package/dist/core/index.js +172 -125
  27. package/dist/core/mcp-v2.d.ts +11 -0
  28. package/dist/core/paths.d.ts +1 -0
  29. package/dist/core/sync.d.ts +1 -0
  30. package/dist/core/telemetry.d.ts +203 -0
  31. package/dist/gateway/server.d.ts +9 -3
  32. package/dist/types.js +6 -3
  33. package/package.json +9 -3
  34. package/dist/adapters/claude-desktop.d.ts.map +0 -1
  35. package/dist/adapters/claude.d.ts.map +0 -1
  36. package/dist/adapters/cline.d.ts.map +0 -1
  37. package/dist/adapters/codex.d.ts.map +0 -1
  38. package/dist/adapters/cursor.d.ts.map +0 -1
  39. package/dist/adapters/hermes.d.ts.map +0 -1
  40. package/dist/adapters/index.d.ts.map +0 -1
  41. package/dist/adapters/kiro.d.ts.map +0 -1
  42. package/dist/adapters/openclaw.d.ts.map +0 -1
  43. package/dist/adapters/opencode.d.ts.map +0 -1
  44. package/dist/adapters/qwen.d.ts.map +0 -1
  45. package/dist/adapters/utils/index.d.ts.map +0 -1
  46. package/dist/adapters/vscode.d.ts.map +0 -1
  47. package/dist/cli-qzzjkt0q.js +0 -2860
  48. package/dist/cli.d.ts.map +0 -1
  49. package/dist/compat/claude.d.ts.map +0 -1
  50. package/dist/compat/codex.d.ts.map +0 -1
  51. package/dist/compat/hermes.d.ts.map +0 -1
  52. package/dist/compat/index.d.ts.map +0 -1
  53. package/dist/compat/openclaw.d.ts.map +0 -1
  54. package/dist/compat/qwen.d.ts.map +0 -1
  55. package/dist/compat/unsupported.d.ts.map +0 -1
  56. package/dist/compat/vscode.d.ts.map +0 -1
  57. package/dist/core/add-command.d.ts.map +0 -1
  58. package/dist/core/auth-probe.d.ts.map +0 -1
  59. package/dist/core/config-repair.d.ts.map +0 -1
  60. package/dist/core/config-store.d.ts.map +0 -1
  61. package/dist/core/config.d.ts.map +0 -1
  62. package/dist/core/daemon.d.ts.map +0 -1
  63. package/dist/core/errors.d.ts.map +0 -1
  64. package/dist/core/identifiers.d.ts.map +0 -1
  65. package/dist/core/index.d.ts.map +0 -1
  66. package/dist/core/managed-index-lock.d.ts.map +0 -1
  67. package/dist/core/managed-index.d.ts.map +0 -1
  68. package/dist/core/marketplace-defaults.d.ts.map +0 -1
  69. package/dist/core/marketplace-updater.d.ts.map +0 -1
  70. package/dist/core/marketplace.d.ts.map +0 -1
  71. package/dist/core/oauth.d.ts.map +0 -1
  72. package/dist/core/paths.d.ts.map +0 -1
  73. package/dist/core/plugin-cache.d.ts.map +0 -1
  74. package/dist/core/plugin-data.d.ts.map +0 -1
  75. package/dist/core/plugin-host.d.ts.map +0 -1
  76. package/dist/core/plugin-lifecycle.d.ts.map +0 -1
  77. package/dist/core/plugin-manager.d.ts.map +0 -1
  78. package/dist/core/plugin-parse.d.ts.map +0 -1
  79. package/dist/core/plugin-projections.d.ts.map +0 -1
  80. package/dist/core/plugin-source.d.ts.map +0 -1
  81. package/dist/core/proxy.d.ts.map +0 -1
  82. package/dist/core/registry-client.d.ts.map +0 -1
  83. package/dist/core/registry.d.ts.map +0 -1
  84. package/dist/core/secrets.d.ts.map +0 -1
  85. package/dist/core/server-auth.d.ts.map +0 -1
  86. package/dist/core/skill-projections.d.ts.map +0 -1
  87. package/dist/core/skills.d.ts.map +0 -1
  88. package/dist/core/spawn-env.d.ts.map +0 -1
  89. package/dist/core/status.d.ts.map +0 -1
  90. package/dist/core/sync.d.ts.map +0 -1
  91. package/dist/core/update-manager.d.ts.map +0 -1
  92. package/dist/core/update.d.ts.map +0 -1
  93. package/dist/gateway/server.d.ts.map +0 -1
  94. package/dist/types.d.ts.map +0 -1
  95. package/dist/util/fs.d.ts.map +0 -1
  96. package/dist/version.d.ts.map +0 -1
@@ -0,0 +1,52 @@
1
+ import { createRequire } from "node:module";
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
12
+ var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
20
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
21
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
30
+ if (canCache)
31
+ cache.set(mod, to);
32
+ return to;
33
+ };
34
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
35
+ var __returnValue = (v) => v;
36
+ function __exportSetter(name, newValue) {
37
+ this[name] = __returnValue.bind(null, newValue);
38
+ }
39
+ var __export = (target, all) => {
40
+ for (var name in all)
41
+ __defProp(target, name, {
42
+ get: all[name],
43
+ enumerable: true,
44
+ configurable: true,
45
+ set: __exportSetter.bind(all, name)
46
+ });
47
+ };
48
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
49
+
50
+ export { __toESM, __commonJS, __export, __require };
51
+
52
+ //# debugId=F7811CF2E2FC82CF64756E2164756E21
@@ -3,10 +3,10 @@ import {
3
3
  getConfigPath,
4
4
  readJsonFile,
5
5
  writeJsonAtomic
6
- } from "./cli-6wh8qx2y.js";
6
+ } from "./chunk-cqenqnxk.js";
7
7
  import {
8
8
  normalizeServerSpecEnabled
9
- } from "./cli-s4gspqdf.js";
9
+ } from "./chunk-bjw71y54.js";
10
10
 
11
11
  // src/core/config.ts
12
12
  import { z } from "zod";
@@ -734,3 +734,5 @@ function resolveActiveConfig(options = {}) {
734
734
  }
735
735
 
736
736
  export { tokenizeCommandLine, parseCliAddCommand, ConfigLoadError, defaultConfig, loadConfig, saveConfig, loadProjectConfig, saveProjectConfig, loadMergedConfig, migrateProjectServers, resolveActiveConfig };
737
+
738
+ //# debugId=83D38E071988634664756E2164756E21
@@ -0,0 +1,38 @@
1
+ import {
2
+ require_execAsync
3
+ } from "./chunk-c7zg7ey3.js";
4
+ import {
5
+ require_src
6
+ } from "./chunk-tnhekcpv.js";
7
+ import {
8
+ __commonJS
9
+ } from "./chunk-wj4tjacg.js";
10
+
11
+ // node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
12
+ var require_getMachineId_darwin = __commonJS(function(exports) {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getMachineId = undefined;
15
+ var execAsync_1 = require_execAsync();
16
+ var api_1 = require_src();
17
+ async function getMachineId() {
18
+ try {
19
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
20
+ const idLine = result.stdout.split(`
21
+ `).find((line) => line.includes("IOPlatformUUID"));
22
+ if (!idLine) {
23
+ return;
24
+ }
25
+ const parts = idLine.split('" = "');
26
+ if (parts.length === 2) {
27
+ return parts[1].slice(0, -1);
28
+ }
29
+ } catch (e) {
30
+ api_1.diag.debug(`error reading machine id: ${e}`);
31
+ }
32
+ return;
33
+ }
34
+ exports.getMachineId = getMachineId;
35
+ });
36
+ export default require_getMachineId_darwin();
37
+
38
+ //# debugId=7EE3E71A6B4B104864756E2164756E21
@@ -3,11 +3,11 @@ import {
3
3
  loadProjectConfig,
4
4
  saveConfig,
5
5
  saveProjectConfig
6
- } from "./cli-6zq2fd6h.js";
6
+ } from "./chunk-wq4zd3t7.js";
7
7
  import {
8
8
  SecretsManager,
9
9
  ensureGatewayToken
10
- } from "./cli-hh7rthhx.js";
10
+ } from "./chunk-cz8cdmw1.js";
11
11
  import {
12
12
  ensureDir,
13
13
  findProjectConfigPath,
@@ -20,11 +20,13 @@ import {
20
20
  readJsonFile,
21
21
  sha256,
22
22
  writeJsonAtomic
23
- } from "./cli-6wh8qx2y.js";
23
+ } from "./chunk-cqenqnxk.js";
24
24
  import {
25
- __require,
26
25
  isServerEnabled
27
- } from "./cli-s4gspqdf.js";
26
+ } from "./chunk-bjw71y54.js";
27
+ import {
28
+ __require
29
+ } from "./chunk-wj4tjacg.js";
28
30
 
29
31
  // src/core/plugin-manager.ts
30
32
  import fs15 from "node:fs";
@@ -1959,7 +1961,7 @@ class CursorAdapter {
1959
1961
  import path12 from "node:path";
1960
1962
  import fs10 from "node:fs";
1961
1963
  import { z as z8 } from "zod";
1962
- var HTTP_TRANSPORT_TYPES = new Set(["http", "sse", "streamableHttp"]);
1964
+ var HTTP_TRANSPORT_TYPES = new Set(["http", "streamableHttp"]);
1963
1965
  var stringMapSchema5 = z8.record(z8.string(), z8.string());
1964
1966
  var clineEntrySchema = z8.object({
1965
1967
  type: z8.string().optional(),
@@ -2163,7 +2165,7 @@ class KiroAdapter {
2163
2165
  continue;
2164
2166
  }
2165
2167
  const entry = parsed.data;
2166
- if ((entry.type === undefined || entry.type === "http" || entry.type === "streamable-http" || entry.type === "sse") && entry.url && !entry.command) {
2168
+ if ((entry.type === undefined || entry.type === "http" || entry.type === "streamable-http") && entry.url && !entry.command) {
2167
2169
  result.candidates.push({
2168
2170
  clientId: this.id,
2169
2171
  configPath,
@@ -2579,18 +2581,7 @@ class QwenAdapter {
2579
2581
  continue;
2580
2582
  }
2581
2583
  if (entry.url && !entry.httpUrl && !entry.command) {
2582
- result.candidates.push({
2583
- clientId: this.id,
2584
- configPath,
2585
- sourceEntryName: name,
2586
- serverName: name,
2587
- spec: {
2588
- transport: "http",
2589
- url: entry.url,
2590
- headers: entry.headers,
2591
- enabled: !(entry.disabled === true || excludedSet.has(name))
2592
- }
2593
- });
2584
+ result.skipped.push(buildImportSkip(this.id, name, "Legacy SSE transport is not supported; use Qwen's httpUrl field for MCP v2 streamable HTTP.", configPath));
2594
2585
  continue;
2595
2586
  }
2596
2587
  if (entry.command && !entry.httpUrl) {
@@ -3068,6 +3059,10 @@ function withManagedIndexLock(lockPath, fn) {
3068
3059
  function getGatewayUrl(config) {
3069
3060
  return `http://127.0.0.1:${config.gateway.port}/mcp`;
3070
3061
  }
3062
+ function getGatewayInternalUrl(config, pathname) {
3063
+ const normalizedPath = pathname.startsWith("/") ? pathname : `/${pathname}`;
3064
+ return `http://127.0.0.1:${config.gateway.port}${normalizedPath}`;
3065
+ }
3071
3066
  function buildProjectScopes(config) {
3072
3067
  const globallyEnabled = new Set(Object.entries(config.servers).filter(([, spec]) => isServerEnabled(spec)).map(([name]) => name));
3073
3068
  const pluginDisabledByProject = new Map;
@@ -3620,7 +3615,7 @@ async function updatePlugin(nameOrId) {
3620
3615
  const config = loadConfig(manager["configPath"]);
3621
3616
  const id = resolvePluginId(config, nameOrId);
3622
3617
  if (config.plugins?.[id]?.marketplace) {
3623
- const { updateMarketplaceInstalledPlugin } = await import("./marketplace-zem0m4mw.js");
3618
+ const { updateMarketplaceInstalledPlugin } = await import("./chunk-02r7k4ax.js");
3624
3619
  return updateMarketplaceInstalledPlugin(id);
3625
3620
  }
3626
3621
  return manager.updatePlugin(id);
@@ -3760,4 +3755,6 @@ async function preparePlugin(name) {
3760
3755
  await manager.preparePlugin(name);
3761
3756
  }
3762
3757
 
3763
- export { mutateConfig, mutateProjectConfig, mutateActiveConfig, listSkills, getSkill, saveSkill, deleteSkill, prunePluginProjections, pruneAllPluginProjections, syncPluginsToClient, APP_VERSION, getAdapters, loadManagedIndex, getGatewayUrl, syncAllClients, persistSyncState, PluginCache, readManifest, discoverComponents, hasManifest, resolvePluginVars, PluginDataManager, PluginLifecycle, parseSource, PluginManager, inspectPlugin, installPlugin, updatePlugin, uninstallPlugin, enablePlugin, disablePlugin, setPluginProjectOverride, resetPluginProjectOverride, approvePluginComponent, getPluginStatus, listPlugins, resolvePluginId, pluginConfigSet, pluginSync, preparePlugin };
3758
+ export { mutateConfig, mutateProjectConfig, mutateActiveConfig, listSkills, getSkill, saveSkill, deleteSkill, prunePluginProjections, pruneAllPluginProjections, syncPluginsToClient, APP_VERSION, getAdapters, loadManagedIndex, getGatewayUrl, getGatewayInternalUrl, syncAllClients, persistSyncState, PluginCache, readManifest, discoverComponents, hasManifest, resolvePluginVars, PluginDataManager, PluginLifecycle, parseSource, PluginManager, inspectPlugin, installPlugin, updatePlugin, uninstallPlugin, enablePlugin, disablePlugin, setPluginProjectOverride, resetPluginProjectOverride, approvePluginComponent, getPluginStatus, listPlugins, resolvePluginId, pluginConfigSet, pluginSync, preparePlugin };
3759
+
3760
+ //# debugId=3872A3A17F73C93764756E2164756E21
@@ -10,19 +10,22 @@ import {
10
10
  unregisterProject,
11
11
  updateServer,
12
12
  validateServerName
13
- } from "./cli-hh7rthhx.js";
14
- import"./cli-6wh8qx2y.js";
15
- import"./cli-s4gspqdf.js";
13
+ } from "./chunk-cz8cdmw1.js";
14
+ import"./chunk-cqenqnxk.js";
15
+ import"./chunk-bjw71y54.js";
16
+ import"./chunk-wj4tjacg.js";
16
17
  export {
17
- validateServerName,
18
- updateServer,
19
- unregisterProject,
20
- setServerEnabled,
21
- setProjectServerEnabled,
22
- rotateGatewayToken,
23
- removeServer,
24
- registerProject,
25
- getGatewayTokenSecretName,
18
+ addServer,
26
19
  ensureGatewayToken,
27
- addServer
20
+ getGatewayTokenSecretName,
21
+ registerProject,
22
+ removeServer,
23
+ rotateGatewayToken,
24
+ setProjectServerEnabled,
25
+ setServerEnabled,
26
+ unregisterProject,
27
+ updateServer,
28
+ validateServerName
28
29
  };
30
+
31
+ //# debugId=616E9B1E72DFEFBA64756E2164756E21