@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.
- package/dist/{marketplace-zem0m4mw.js → chunk-02r7k4ax.js} +20 -17
- package/dist/{plugin-host-5jmyt0td.js → chunk-0xhdyt4z.js} +8 -5
- package/dist/chunk-12vgqm89.js +31 -0
- package/dist/{config-fbgyqmv1.js → chunk-31brdz5s.js} +14 -11
- package/dist/chunk-91vcwk5m.js +21 -0
- package/dist/chunk-941dqsx2.js +10432 -0
- package/dist/{plugin-manager-rw05c2x3.js → chunk-b58zsdp4.js} +23 -20
- package/dist/{cli-s4gspqdf.js → chunk-bjw71y54.js} +3 -4
- package/dist/chunk-bnbz55g6.js +38 -0
- package/dist/chunk-c7zg7ey3.js +17 -0
- package/dist/{cli-6wh8qx2y.js → chunk-cqenqnxk.js} +6 -1
- package/dist/{cli-hh7rthhx.js → chunk-cz8cdmw1.js} +7 -4
- package/dist/chunk-enzmq965.js +40 -0
- package/dist/{cli-aawpvhhe.js → chunk-s9v1epnk.js} +7 -5
- package/dist/chunk-tnhekcpv.js +1487 -0
- package/dist/chunk-wj4tjacg.js +52 -0
- package/dist/{cli-6zq2fd6h.js → chunk-wq4zd3t7.js} +4 -2
- package/dist/chunk-xydajvzg.js +38 -0
- package/dist/{cli-9k3wmag6.js → chunk-z1k63fa3.js} +18 -21
- package/dist/{registry-04kfpjh0.js → chunk-z34m83m4.js} +16 -13
- package/dist/cli.js +34124 -994
- package/dist/compat/claude.d.ts +1 -1
- package/dist/compat/qwen.d.ts +2 -2
- package/dist/core/error-reporting.d.ts +6 -0
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +172 -125
- package/dist/core/mcp-v2.d.ts +11 -0
- package/dist/core/paths.d.ts +1 -0
- package/dist/core/sync.d.ts +1 -0
- package/dist/core/telemetry.d.ts +203 -0
- package/dist/gateway/server.d.ts +9 -3
- package/dist/types.js +6 -3
- package/package.json +9 -3
- package/dist/adapters/claude-desktop.d.ts.map +0 -1
- package/dist/adapters/claude.d.ts.map +0 -1
- package/dist/adapters/cline.d.ts.map +0 -1
- package/dist/adapters/codex.d.ts.map +0 -1
- package/dist/adapters/cursor.d.ts.map +0 -1
- package/dist/adapters/hermes.d.ts.map +0 -1
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/kiro.d.ts.map +0 -1
- package/dist/adapters/openclaw.d.ts.map +0 -1
- package/dist/adapters/opencode.d.ts.map +0 -1
- package/dist/adapters/qwen.d.ts.map +0 -1
- package/dist/adapters/utils/index.d.ts.map +0 -1
- package/dist/adapters/vscode.d.ts.map +0 -1
- package/dist/cli-qzzjkt0q.js +0 -2860
- package/dist/cli.d.ts.map +0 -1
- package/dist/compat/claude.d.ts.map +0 -1
- package/dist/compat/codex.d.ts.map +0 -1
- package/dist/compat/hermes.d.ts.map +0 -1
- package/dist/compat/index.d.ts.map +0 -1
- package/dist/compat/openclaw.d.ts.map +0 -1
- package/dist/compat/qwen.d.ts.map +0 -1
- package/dist/compat/unsupported.d.ts.map +0 -1
- package/dist/compat/vscode.d.ts.map +0 -1
- package/dist/core/add-command.d.ts.map +0 -1
- package/dist/core/auth-probe.d.ts.map +0 -1
- package/dist/core/config-repair.d.ts.map +0 -1
- package/dist/core/config-store.d.ts.map +0 -1
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/daemon.d.ts.map +0 -1
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/identifiers.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/managed-index-lock.d.ts.map +0 -1
- package/dist/core/managed-index.d.ts.map +0 -1
- package/dist/core/marketplace-defaults.d.ts.map +0 -1
- package/dist/core/marketplace-updater.d.ts.map +0 -1
- package/dist/core/marketplace.d.ts.map +0 -1
- package/dist/core/oauth.d.ts.map +0 -1
- package/dist/core/paths.d.ts.map +0 -1
- package/dist/core/plugin-cache.d.ts.map +0 -1
- package/dist/core/plugin-data.d.ts.map +0 -1
- package/dist/core/plugin-host.d.ts.map +0 -1
- package/dist/core/plugin-lifecycle.d.ts.map +0 -1
- package/dist/core/plugin-manager.d.ts.map +0 -1
- package/dist/core/plugin-parse.d.ts.map +0 -1
- package/dist/core/plugin-projections.d.ts.map +0 -1
- package/dist/core/plugin-source.d.ts.map +0 -1
- package/dist/core/proxy.d.ts.map +0 -1
- package/dist/core/registry-client.d.ts.map +0 -1
- package/dist/core/registry.d.ts.map +0 -1
- package/dist/core/secrets.d.ts.map +0 -1
- package/dist/core/server-auth.d.ts.map +0 -1
- package/dist/core/skill-projections.d.ts.map +0 -1
- package/dist/core/skills.d.ts.map +0 -1
- package/dist/core/spawn-env.d.ts.map +0 -1
- package/dist/core/status.d.ts.map +0 -1
- package/dist/core/sync.d.ts.map +0 -1
- package/dist/core/update-manager.d.ts.map +0 -1
- package/dist/core/update.d.ts.map +0 -1
- package/dist/gateway/server.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/util/fs.d.ts.map +0 -1
- 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 "./
|
|
6
|
+
} from "./chunk-cqenqnxk.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeServerSpecEnabled
|
|
9
|
-
} from "./
|
|
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 "./
|
|
6
|
+
} from "./chunk-wq4zd3t7.js";
|
|
7
7
|
import {
|
|
8
8
|
SecretsManager,
|
|
9
9
|
ensureGatewayToken
|
|
10
|
-
} from "./
|
|
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 "./
|
|
23
|
+
} from "./chunk-cqenqnxk.js";
|
|
24
24
|
import {
|
|
25
|
-
__require,
|
|
26
25
|
isServerEnabled
|
|
27
|
-
} from "./
|
|
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", "
|
|
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"
|
|
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.
|
|
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("./
|
|
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 "./
|
|
14
|
-
import"./
|
|
15
|
-
import"./
|
|
13
|
+
} from "./chunk-cz8cdmw1.js";
|
|
14
|
+
import"./chunk-cqenqnxk.js";
|
|
15
|
+
import"./chunk-bjw71y54.js";
|
|
16
|
+
import"./chunk-wj4tjacg.js";
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
updateServer,
|
|
19
|
-
unregisterProject,
|
|
20
|
-
setServerEnabled,
|
|
21
|
-
setProjectServerEnabled,
|
|
22
|
-
rotateGatewayToken,
|
|
23
|
-
removeServer,
|
|
24
|
-
registerProject,
|
|
25
|
-
getGatewayTokenSecretName,
|
|
18
|
+
addServer,
|
|
26
19
|
ensureGatewayToken,
|
|
27
|
-
|
|
20
|
+
getGatewayTokenSecretName,
|
|
21
|
+
registerProject,
|
|
22
|
+
removeServer,
|
|
23
|
+
rotateGatewayToken,
|
|
24
|
+
setProjectServerEnabled,
|
|
25
|
+
setServerEnabled,
|
|
26
|
+
unregisterProject,
|
|
27
|
+
updateServer,
|
|
28
|
+
validateServerName
|
|
28
29
|
};
|
|
30
|
+
|
|
31
|
+
//# debugId=616E9B1E72DFEFBA64756E2164756E21
|