@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
@@ -6,7 +6,7 @@
6
6
  * - stdio add: claude mcp add <name> --env KEY=VALUE -- <command> [args...]
7
7
  *
8
8
  * Rejects:
9
- * - --transport sse
9
+ * - --transport sse (legacy SSE is not supported)
10
10
  * - --scope
11
11
  * - JSON import
12
12
  * - Desktop import
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Supports:
5
5
  * - stdio add: qwen mcp add <name> <command> [args...] [--env KEY=VALUE]...
6
- * - HTTP add: qwen mcp add --transport http <name> <url> [--header "Name: Value"]...
7
- * - SSE add: qwen mcp add --transport sse <name> <url>
6
+ * - MCP v2 streamable HTTP add: qwen mcp add --transport http <name> <url> [--header "Name: Value"]...
8
7
  *
9
8
  * Rejects:
10
9
  * - --scope (user/project scope not supported in mcpx)
11
10
  * - --trust (trust bypass not supported)
12
11
  * - --include-tools / --exclude-tools (tool filtering not supported)
12
+ * - --transport sse (legacy SSE is not supported)
13
13
  * - --timeout (timeout config not supported in mcpx add)
14
14
  */
15
15
  interface QwenParseResult {
@@ -0,0 +1,6 @@
1
+ import { type TelemetryRuntime } from "./telemetry.js";
2
+ export declare function initializeNodeErrorReporting(runtime: TelemetryRuntime, release: string): boolean;
3
+ export declare function flushNodeErrorReporting(timeoutMs?: number): Promise<void>;
4
+ export declare function shutdownNodeErrorReporting(_timeoutMs?: number): Promise<void>;
5
+ export declare function sanitizeRendererError(error: unknown): Error;
6
+ //# sourceMappingURL=error-reporting.d.ts.map
@@ -1,5 +1,7 @@
1
1
  export { loadConfig, saveConfig, defaultConfig, loadMergedConfig, loadProjectConfig, saveProjectConfig, ConfigLoadError, migrateProjectServers } from "./config.js";
2
2
  export { mutateConfig, mutateProjectConfig, mutateActiveConfig } from "./config-store.js";
3
+ export { TELEMETRY_NOTICE_VERSION, acknowledgeTelemetryNotice, architecture, captureTelemetryEvent, countBucket, defaultTelemetryPreferences, durationBucket, getTelemetryStatus, initializeTelemetry, isTelemetryEnvironmentDisabled, loadTelemetryPreferences, markTelemetryMilestone, platformFamily, resetTelemetryInstallationId, reportTelemetryError, setTelemetryErrorReporter, shutdownTelemetry, updateTelemetryPreferences, flushTelemetry, uptimeBucket } from "./telemetry.js";
4
+ export type { TelemetryErrorContext, TelemetryErrorReporter, TelemetryEvent, TelemetryPreferences, TelemetryRuntime, TelemetryRuntimeMetadata, TelemetryStatus } from "./telemetry.js";
3
5
  export { UpstreamError, SecretNotFoundError, classifyUpstreamError } from "./errors.js";
4
6
  export type { UpstreamErrorCode } from "./errors.js";
5
7
  export { parseCliAddCommand, tokenizeCommandLine } from "./add-command.js";
@@ -8,7 +10,7 @@ export { runOAuthLogin, getOAuthAccessToken, isOAuthReference, oauthReferenceSer
8
10
  export type { OAuthCodeReceiver, OAuthSupport, OAuthSupportProbe, OAuthSecretNames, OAuthCredentialStatus, OAuthProgressEvent, RunOAuthLoginOptions } from "./oauth.js";
9
11
  export { getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs, runDaemonForeground } from "./daemon.js";
10
12
  export type { DaemonStatus, DaemonStartResult } from "./daemon.js";
11
- export { syncAllClients, getGatewayUrl, persistSyncState } from "./sync.js";
13
+ export { syncAllClients, getGatewayUrl, getGatewayInternalUrl, persistSyncState } from "./sync.js";
12
14
  export type { SyncSummary } from "./sync.js";
13
15
  export { addServer, removeServer, updateServer, setServerEnabled, setProjectServerEnabled, registerProject, unregisterProject, ensureGatewayToken, rotateGatewayToken } from "./registry.js";
14
16
  export { listSkills, getSkill, saveSkill, deleteSkill } from "./skills.js";
@@ -29,7 +31,7 @@ export { readManifest, discoverComponents, hasManifest } from "./plugin-parse.js
29
31
  export { addMarketplace, removeMarketplace, refreshMarketplace, refreshMarketplaceWithPlugins, setMarketplaceAutoUpdate, listMarketplaces, listMarketplacePlugins, inspectMarketplacePlugin, installMarketplacePlugin, updateMarketplaceInstalledPlugin, } from "./marketplace.js";
30
32
  export { startMarketplaceAutoUpdater, runMarketplaceAutoUpdate } from "./marketplace-updater.js";
31
33
  export { inspectPlugin, installPlugin, preparePlugin, updatePlugin, uninstallPlugin, enablePlugin, disablePlugin, setPluginProjectOverride, resetPluginProjectOverride, approvePluginComponent, getPluginStatus, listPlugins, pluginConfigSet, pluginSync, resolvePluginId } from "./plugin-manager.js";
32
- export { getConfigPath, getManagedIndexPath } from "./paths.js";
34
+ export { getConfigPath, getManagedIndexPath, getTelemetryPath } from "./paths.js";
33
35
  export { checkForUpdates, getStagedUpdate, getStagedCliPath, clearStagedUpdate, compareVersions, shouldUseStagedCli } from "./update.js";
34
36
  export type { UpdateStatus, StagedUpdateInfo } from "./update.js";
35
37
  export { startBackgroundUpdateCheck, performUpdate, performRollback } from "./update-manager.js";
@@ -3,34 +3,50 @@ import {
3
3
  OAuthCancelledError,
4
4
  OAuthLoginInProgressError,
5
5
  STATUS_CLIENTS,
6
+ TELEMETRY_NOTICE_VERSION,
6
7
  __resetOAuthSupportCache,
8
+ acknowledgeTelemetryNotice,
7
9
  applyAuthReference,
10
+ architecture,
8
11
  buildEnrichedPath,
9
12
  buildStatusReport,
13
+ captureTelemetryEvent,
10
14
  checkForUpdates,
11
15
  clearOAuthCredentials,
12
16
  clearStagedUpdate,
13
17
  compareVersions,
18
+ countBucket,
14
19
  defaultAuthSecretName,
20
+ defaultTelemetryPreferences,
21
+ durationBucket,
15
22
  extractRequiredInputs,
16
23
  fetchRegistryServerDetail,
24
+ flushTelemetry,
17
25
  getDaemonStatus,
18
26
  getOAuthAccessToken,
19
27
  getOAuthCredentialStatus,
20
28
  getStagedCliPath,
21
29
  getStagedUpdate,
30
+ getTelemetryStatus,
31
+ initializeTelemetry,
22
32
  isOAuthReference,
33
+ isTelemetryEnvironmentDisabled,
23
34
  listAuthBindings,
35
+ loadTelemetryPreferences,
24
36
  mapRegistryToSpec,
37
+ markTelemetryMilestone,
25
38
  maybePrefixBearer,
26
39
  oauthReferenceServerName,
27
40
  oauthSecretNames,
28
41
  performRollback,
29
42
  performUpdate,
43
+ platformFamily,
30
44
  probeHttpAuthRequirement,
31
45
  probeOAuthSupport,
32
46
  readDaemonLogs,
33
47
  removeAuthReference,
48
+ reportTelemetryError,
49
+ resetTelemetryInstallationId,
34
50
  resolveAuthTarget,
35
51
  restartDaemon,
36
52
  runDaemonForeground,
@@ -38,13 +54,17 @@ import {
38
54
  runOAuthLogin,
39
55
  secretRefName,
40
56
  selectBestPackage,
57
+ setTelemetryErrorReporter,
41
58
  shouldUseStagedCli,
59
+ shutdownTelemetry,
42
60
  startBackgroundUpdateCheck,
43
61
  startDaemon,
44
62
  startMarketplaceAutoUpdater,
45
63
  stopDaemon,
46
- toSecretRef
47
- } from "../cli-qzzjkt0q.js";
64
+ toSecretRef,
65
+ updateTelemetryPreferences,
66
+ uptimeBucket
67
+ } from "../chunk-941dqsx2.js";
48
68
  import {
49
69
  addMarketplace,
50
70
  inspectMarketplacePlugin,
@@ -56,7 +76,7 @@ import {
56
76
  removeMarketplace,
57
77
  setMarketplaceAutoUpdate,
58
78
  updateMarketplaceInstalledPlugin
59
- } from "../cli-aawpvhhe.js";
79
+ } from "../chunk-s9v1epnk.js";
60
80
  import {
61
81
  PluginCache,
62
82
  PluginDataManager,
@@ -67,6 +87,7 @@ import {
67
87
  disablePlugin,
68
88
  discoverComponents,
69
89
  enablePlugin,
90
+ getGatewayInternalUrl,
70
91
  getGatewayUrl,
71
92
  getPluginStatus,
72
93
  getSkill,
@@ -95,7 +116,7 @@ import {
95
116
  syncPluginsToClient,
96
117
  uninstallPlugin,
97
118
  updatePlugin
98
- } from "../cli-9k3wmag6.js";
119
+ } from "../chunk-z1k63fa3.js";
99
120
  import {
100
121
  ConfigLoadError,
101
122
  defaultConfig,
@@ -107,7 +128,7 @@ import {
107
128
  saveConfig,
108
129
  saveProjectConfig,
109
130
  tokenizeCommandLine
110
- } from "../cli-6zq2fd6h.js";
131
+ } from "../chunk-wq4zd3t7.js";
111
132
  import {
112
133
  SecretNotFoundError,
113
134
  SecretsManager,
@@ -122,128 +143,154 @@ import {
122
143
  setServerEnabled,
123
144
  unregisterProject,
124
145
  updateServer
125
- } from "../cli-hh7rthhx.js";
146
+ } from "../chunk-cz8cdmw1.js";
126
147
  import {
127
148
  getConfigPath,
128
- getManagedIndexPath
129
- } from "../cli-6wh8qx2y.js";
130
- import"../cli-s4gspqdf.js";
131
- export {
132
- updateServer,
133
- updatePlugin,
134
- updateMarketplaceInstalledPlugin,
135
- unregisterProject,
136
- uninstallPlugin,
137
- tokenizeCommandLine,
138
- toSecretRef,
139
- syncPluginsToClient,
140
- syncAllClients,
141
- stopDaemon,
142
- startMarketplaceAutoUpdater,
143
- startDaemon,
144
- startBackgroundUpdateCheck,
145
- shouldUseStagedCli,
146
- setServerEnabled,
147
- setProjectServerEnabled,
148
- setPluginProjectOverride,
149
- setMarketplaceAutoUpdate,
150
- selectBestPackage,
151
- secretRefName,
152
- saveSkill,
153
- saveProjectConfig,
154
- saveConfig,
155
- runOAuthLogin,
156
- runMarketplaceAutoUpdate,
157
- runDaemonForeground,
158
- rotateGatewayToken,
159
- restartDaemon,
160
- resolvePluginId,
161
- resolveAuthTarget,
162
- resetPluginProjectOverride,
163
- removeServer,
164
- removeMarketplace,
165
- removeAuthReference,
166
- registerProject,
167
- refreshMarketplaceWithPlugins,
168
- refreshMarketplace,
169
- readManifest,
170
- readDaemonLogs,
171
- prunePluginProjections,
172
- pruneAllPluginProjections,
173
- probeOAuthSupport,
174
- probeHttpAuthRequirement,
175
- preparePlugin,
176
- pluginSync,
177
- pluginConfigSet,
178
- persistSyncState,
179
- performUpdate,
180
- performRollback,
181
- parseSource,
182
- parseCliAddCommand,
183
- oauthSecretNames,
184
- oauthReferenceServerName,
185
- mutateProjectConfig,
186
- mutateConfig,
187
- mutateActiveConfig,
188
- migrateProjectServers,
189
- maybePrefixBearer,
190
- mapRegistryToSpec,
191
- loadProjectConfig,
192
- loadMergedConfig,
193
- loadManagedIndex,
194
- loadConfig,
195
- listSkills,
196
- listPlugins,
197
- listMarketplaces,
198
- listMarketplacePlugins,
199
- listAuthBindings,
200
- isOAuthReference,
201
- installPlugin,
202
- installMarketplacePlugin,
203
- inspectPlugin,
204
- inspectMarketplacePlugin,
205
- hasManifest,
206
- getStagedUpdate,
207
- getStagedCliPath,
208
- getSkill,
209
- getPluginStatus,
210
- getOAuthCredentialStatus,
211
- getOAuthAccessToken,
212
149
  getManagedIndexPath,
213
- getGatewayUrl,
214
- getDaemonStatus,
215
- getConfigPath,
216
- fetchRegistryServerDetail,
217
- extractRequiredInputs,
218
- ensureGatewayToken,
219
- enablePlugin,
220
- discoverComponents,
221
- disablePlugin,
222
- deleteSkill,
223
- defaultConfig,
224
- defaultAuthSecretName,
225
- compareVersions,
226
- clearStagedUpdate,
227
- clearOAuthCredentials,
228
- classifyUpstreamError,
229
- checkForUpdates,
230
- buildStatusReport,
231
- buildEnrichedPath,
232
- approvePluginComponent,
233
- applyAuthReference,
234
- addServer,
235
- addMarketplace,
236
- __resetOAuthSupportCache,
237
- UpstreamError,
238
- SecretsManager,
239
- SecretNotFoundError,
240
- STATUS_CLIENTS,
241
- PluginManager,
242
- PluginLifecycle,
243
- PluginDataManager,
244
- PluginCache,
245
- OAuthLoginInProgressError,
246
- OAuthCancelledError,
150
+ getTelemetryPath
151
+ } from "../chunk-cqenqnxk.js";
152
+ import"../chunk-bjw71y54.js";
153
+ import"../chunk-wj4tjacg.js";
154
+ export {
155
+ ConfigLoadError,
247
156
  OAUTH_LOGIN_TIMEOUT_MS,
248
- ConfigLoadError
157
+ OAuthCancelledError,
158
+ OAuthLoginInProgressError,
159
+ PluginCache,
160
+ PluginDataManager,
161
+ PluginLifecycle,
162
+ PluginManager,
163
+ STATUS_CLIENTS,
164
+ SecretNotFoundError,
165
+ SecretsManager,
166
+ TELEMETRY_NOTICE_VERSION,
167
+ UpstreamError,
168
+ __resetOAuthSupportCache,
169
+ acknowledgeTelemetryNotice,
170
+ addMarketplace,
171
+ addServer,
172
+ applyAuthReference,
173
+ approvePluginComponent,
174
+ architecture,
175
+ buildEnrichedPath,
176
+ buildStatusReport,
177
+ captureTelemetryEvent,
178
+ checkForUpdates,
179
+ classifyUpstreamError,
180
+ clearOAuthCredentials,
181
+ clearStagedUpdate,
182
+ compareVersions,
183
+ countBucket,
184
+ defaultAuthSecretName,
185
+ defaultConfig,
186
+ defaultTelemetryPreferences,
187
+ deleteSkill,
188
+ disablePlugin,
189
+ discoverComponents,
190
+ durationBucket,
191
+ enablePlugin,
192
+ ensureGatewayToken,
193
+ extractRequiredInputs,
194
+ fetchRegistryServerDetail,
195
+ flushTelemetry,
196
+ getConfigPath,
197
+ getDaemonStatus,
198
+ getGatewayInternalUrl,
199
+ getGatewayUrl,
200
+ getManagedIndexPath,
201
+ getOAuthAccessToken,
202
+ getOAuthCredentialStatus,
203
+ getPluginStatus,
204
+ getSkill,
205
+ getStagedCliPath,
206
+ getStagedUpdate,
207
+ getTelemetryPath,
208
+ getTelemetryStatus,
209
+ hasManifest,
210
+ initializeTelemetry,
211
+ inspectMarketplacePlugin,
212
+ inspectPlugin,
213
+ installMarketplacePlugin,
214
+ installPlugin,
215
+ isOAuthReference,
216
+ isTelemetryEnvironmentDisabled,
217
+ listAuthBindings,
218
+ listMarketplacePlugins,
219
+ listMarketplaces,
220
+ listPlugins,
221
+ listSkills,
222
+ loadConfig,
223
+ loadManagedIndex,
224
+ loadMergedConfig,
225
+ loadProjectConfig,
226
+ loadTelemetryPreferences,
227
+ mapRegistryToSpec,
228
+ markTelemetryMilestone,
229
+ maybePrefixBearer,
230
+ migrateProjectServers,
231
+ mutateActiveConfig,
232
+ mutateConfig,
233
+ mutateProjectConfig,
234
+ oauthReferenceServerName,
235
+ oauthSecretNames,
236
+ parseCliAddCommand,
237
+ parseSource,
238
+ performRollback,
239
+ performUpdate,
240
+ persistSyncState,
241
+ platformFamily,
242
+ pluginConfigSet,
243
+ pluginSync,
244
+ preparePlugin,
245
+ probeHttpAuthRequirement,
246
+ probeOAuthSupport,
247
+ pruneAllPluginProjections,
248
+ prunePluginProjections,
249
+ readDaemonLogs,
250
+ readManifest,
251
+ refreshMarketplace,
252
+ refreshMarketplaceWithPlugins,
253
+ registerProject,
254
+ removeAuthReference,
255
+ removeMarketplace,
256
+ removeServer,
257
+ reportTelemetryError,
258
+ resetPluginProjectOverride,
259
+ resetTelemetryInstallationId,
260
+ resolveAuthTarget,
261
+ resolvePluginId,
262
+ restartDaemon,
263
+ rotateGatewayToken,
264
+ runDaemonForeground,
265
+ runMarketplaceAutoUpdate,
266
+ runOAuthLogin,
267
+ saveConfig,
268
+ saveProjectConfig,
269
+ saveSkill,
270
+ secretRefName,
271
+ selectBestPackage,
272
+ setMarketplaceAutoUpdate,
273
+ setPluginProjectOverride,
274
+ setProjectServerEnabled,
275
+ setServerEnabled,
276
+ setTelemetryErrorReporter,
277
+ shouldUseStagedCli,
278
+ shutdownTelemetry,
279
+ startBackgroundUpdateCheck,
280
+ startDaemon,
281
+ startMarketplaceAutoUpdater,
282
+ stopDaemon,
283
+ syncAllClients,
284
+ syncPluginsToClient,
285
+ toSecretRef,
286
+ tokenizeCommandLine,
287
+ uninstallPlugin,
288
+ unregisterProject,
289
+ updateMarketplaceInstalledPlugin,
290
+ updatePlugin,
291
+ updateServer,
292
+ updateTelemetryPreferences,
293
+ uptimeBucket
249
294
  };
295
+
296
+ //# debugId=8B71543D4FA7999164756E2164756E21
@@ -0,0 +1,11 @@
1
+ export declare const MCP_V2_PROTOCOL_VERSION = "2026-07-28";
2
+ export declare const MCPX_MCP_CLIENT_INFO: {
3
+ readonly name: "mcpx";
4
+ readonly version: "2.0.0";
5
+ };
6
+ export declare function mcpV2Meta(clientInfo?: {
7
+ name: string;
8
+ version: string;
9
+ }): Record<string, unknown>;
10
+ export declare function mcpV2Headers(method: string, headers?: Record<string, string>): Record<string, string>;
11
+ //# sourceMappingURL=mcp-v2.d.ts.map
@@ -3,6 +3,7 @@ export declare function getConfigRoot(): string;
3
3
  export declare function getDataRoot(): string;
4
4
  export declare function getStateRoot(): string;
5
5
  export declare function getConfigPath(): string;
6
+ export declare function getTelemetryPath(): string;
6
7
  export declare function getSkillsDir(): string;
7
8
  export declare function getManagedIndexPath(): string;
8
9
  export declare function getSecretsStorePath(): string;
@@ -23,6 +23,7 @@ export interface SyncSummary {
23
23
  pluginResults?: PluginSyncResult[];
24
24
  }
25
25
  export declare function getGatewayUrl(config: McpxConfig): string;
26
+ export declare function getGatewayInternalUrl(config: McpxConfig, pathname: string): string;
26
27
  export declare function syncAllClients(config: McpxConfig, secrets: SecretsManager, options?: SyncOptions | ClientId[]): SyncSummary;
27
28
  export declare function persistSyncState(summary: SyncSummary, config: McpxConfig): void;
28
29
  //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1,203 @@
1
+ import { z } from "zod";
2
+ export declare const TELEMETRY_NOTICE_VERSION = 1;
3
+ declare const runtimeSchema: z.ZodEnum<{
4
+ desktop: "desktop";
5
+ cli: "cli";
6
+ daemon: "daemon";
7
+ }>;
8
+ declare const osFamilySchema: z.ZodEnum<{
9
+ linux: "linux";
10
+ macos: "macos";
11
+ windows: "windows";
12
+ other: "other";
13
+ }>;
14
+ declare const launchModeSchema: z.ZodEnum<{
15
+ mcp: "mcp";
16
+ add: "add";
17
+ status: "status";
18
+ clients: "clients";
19
+ project: "project";
20
+ proxy: "proxy";
21
+ auth: "auth";
22
+ plugin: "plugin";
23
+ desktop: "desktop";
24
+ daemon: "daemon";
25
+ other: "other";
26
+ remove: "remove";
27
+ enable: "enable";
28
+ disable: "disable";
29
+ list: "list";
30
+ sync: "sync";
31
+ doctor: "doctor";
32
+ secret: "secret";
33
+ skill: "skill";
34
+ "plugin-host": "plugin-host";
35
+ update: "update";
36
+ telemetry: "telemetry";
37
+ }>;
38
+ declare const outcomeSchema: z.ZodEnum<{
39
+ success: "success";
40
+ failure: "failure";
41
+ }>;
42
+ declare const durationBucketSchema: z.ZodEnum<{
43
+ lt_100ms: "lt_100ms";
44
+ lt_1s: "lt_1s";
45
+ lt_10s: "lt_10s";
46
+ gte_10s: "gte_10s";
47
+ }>;
48
+ declare const methodFamilySchema: z.ZodEnum<{
49
+ other: "other";
50
+ tools_call: "tools_call";
51
+ resources_read: "resources_read";
52
+ prompts_get: "prompts_get";
53
+ }>;
54
+ declare const bucketSchema: z.ZodEnum<{
55
+ 0: "0";
56
+ 1: "1";
57
+ "2_5": "2_5";
58
+ "6_20": "6_20";
59
+ "21_plus": "21_plus";
60
+ }>;
61
+ declare const uptimeBucketSchema: z.ZodEnum<{
62
+ lt_1h: "lt_1h";
63
+ "1_6h": "1_6h";
64
+ "6_24h": "6_24h";
65
+ gte_24h: "gte_24h";
66
+ }>;
67
+ declare const operationSchema: z.ZodEnum<{
68
+ server_add: "server_add";
69
+ server_update: "server_update";
70
+ server_remove: "server_remove";
71
+ server_toggle: "server_toggle";
72
+ client_sync: "client_sync";
73
+ auth_login: "auth_login";
74
+ auth_logout: "auth_logout";
75
+ daemon_start: "daemon_start";
76
+ daemon_stop: "daemon_stop";
77
+ daemon_restart: "daemon_restart";
78
+ update_check: "update_check";
79
+ update_install: "update_install";
80
+ update_rollback: "update_rollback";
81
+ project_init: "project_init";
82
+ project_remove: "project_remove";
83
+ skill_add: "skill_add";
84
+ skill_remove: "skill_remove";
85
+ plugin_install: "plugin_install";
86
+ plugin_update: "plugin_update";
87
+ plugin_uninstall: "plugin_uninstall";
88
+ plugin_toggle: "plugin_toggle";
89
+ marketplace_add: "marketplace_add";
90
+ marketplace_refresh: "marketplace_refresh";
91
+ marketplace_remove: "marketplace_remove";
92
+ }>;
93
+ declare const tabSchema: z.ZodEnum<{
94
+ plugins: "plugins";
95
+ servers: "servers";
96
+ projects: "projects";
97
+ settings: "settings";
98
+ }>;
99
+ declare const milestoneSchema: z.ZodEnum<{
100
+ first_server_added: "first_server_added";
101
+ first_sync_succeeded: "first_sync_succeeded";
102
+ first_gateway_request_succeeded: "first_gateway_request_succeeded";
103
+ }>;
104
+ declare const telemetryFileSchema: z.ZodObject<{
105
+ schemaVersion: z.ZodLiteral<1>;
106
+ usageAnalyticsEnabled: z.ZodBoolean;
107
+ errorReportingEnabled: z.ZodBoolean;
108
+ noticeAcknowledgedVersion: z.ZodNumber;
109
+ installationId: z.ZodNullable<z.ZodString>;
110
+ milestones: z.ZodObject<{
111
+ first_server_added: z.ZodBoolean;
112
+ first_sync_succeeded: z.ZodBoolean;
113
+ first_gateway_request_succeeded: z.ZodBoolean;
114
+ }, z.core.$strict>;
115
+ }, z.core.$strict>;
116
+ export type TelemetryPreferences = z.infer<typeof telemetryFileSchema>;
117
+ export type TelemetryEvent = {
118
+ name: "runtime_started";
119
+ properties: {
120
+ runtime: z.infer<typeof runtimeSchema>;
121
+ version: string;
122
+ osFamily: z.infer<typeof osFamilySchema>;
123
+ architecture: string;
124
+ launchMode: z.infer<typeof launchModeSchema>;
125
+ };
126
+ } | {
127
+ name: "activation_milestone";
128
+ properties: {
129
+ milestone: z.infer<typeof milestoneSchema>;
130
+ };
131
+ } | {
132
+ name: "operation_completed";
133
+ properties: {
134
+ operation: z.infer<typeof operationSchema>;
135
+ outcome: z.infer<typeof outcomeSchema>;
136
+ errorCode?: string;
137
+ durationBucket?: z.infer<typeof durationBucketSchema>;
138
+ };
139
+ } | {
140
+ name: "gateway_health_summary";
141
+ properties: {
142
+ methodFamily: z.infer<typeof methodFamilySchema>;
143
+ callCount: z.infer<typeof bucketSchema>;
144
+ successCount: z.infer<typeof bucketSchema>;
145
+ errorCount: z.infer<typeof bucketSchema>;
146
+ configuredServerCount: z.infer<typeof bucketSchema>;
147
+ configuredClientCount: z.infer<typeof bucketSchema>;
148
+ configuredPluginCount: z.infer<typeof bucketSchema>;
149
+ uptime: z.infer<typeof uptimeBucketSchema>;
150
+ };
151
+ } | {
152
+ name: "desktop_tab_viewed";
153
+ properties: {
154
+ tab: z.infer<typeof tabSchema>;
155
+ };
156
+ } | {
157
+ name: "update_completed";
158
+ properties: {
159
+ action: "check" | "install" | "rollback";
160
+ outcome: z.infer<typeof outcomeSchema>;
161
+ fromVersion?: string;
162
+ toVersion?: string;
163
+ };
164
+ };
165
+ export interface TelemetryStatus extends TelemetryPreferences {
166
+ usageActive: boolean;
167
+ errorsActive: boolean;
168
+ blockedReason?: "notice_required" | "environment" | "missing_provider";
169
+ }
170
+ export type TelemetryRuntime = z.infer<typeof runtimeSchema>;
171
+ export interface TelemetryRuntimeMetadata {
172
+ release: string;
173
+ platform?: string;
174
+ architecture?: string;
175
+ }
176
+ export interface TelemetryErrorContext {
177
+ runtime: TelemetryRuntime;
178
+ operation?: string;
179
+ code?: string;
180
+ }
181
+ export type TelemetryErrorReporter = (error: unknown, context: TelemetryErrorContext) => void;
182
+ export declare function isTelemetryEnvironmentDisabled(): boolean;
183
+ export declare function defaultTelemetryPreferences(): TelemetryPreferences;
184
+ export declare function loadTelemetryPreferences(): TelemetryPreferences;
185
+ export declare function getTelemetryStatus(): TelemetryStatus;
186
+ export declare function acknowledgeTelemetryNotice(): TelemetryPreferences;
187
+ export declare function updateTelemetryPreferences(patch: Partial<Pick<TelemetryPreferences, "usageAnalyticsEnabled" | "errorReportingEnabled">>): TelemetryPreferences;
188
+ export declare function resetTelemetryInstallationId(): TelemetryPreferences;
189
+ export declare function markTelemetryMilestone(milestone: z.infer<typeof milestoneSchema>): boolean;
190
+ export declare function initializeTelemetry(runtime: TelemetryRuntime, metadata: TelemetryRuntimeMetadata): TelemetryStatus;
191
+ export declare function setTelemetryErrorReporter(reporter: TelemetryErrorReporter | null): void;
192
+ export declare function reportTelemetryError(error: unknown, context: TelemetryErrorContext): void;
193
+ export declare function validateTelemetryEvent(event: unknown): TelemetryEvent | null;
194
+ export declare function captureTelemetryEvent(event: TelemetryEvent): void;
195
+ export declare function flushTelemetry(timeoutMs?: number): Promise<void>;
196
+ export declare function shutdownTelemetry(): Promise<void>;
197
+ export declare function durationBucket(durationMs: number): z.infer<typeof durationBucketSchema>;
198
+ export declare function countBucket(value: number): z.infer<typeof bucketSchema>;
199
+ export declare function uptimeBucket(uptimeMs: number): z.infer<typeof uptimeBucketSchema>;
200
+ export declare function platformFamily(): "macos" | "windows" | "linux" | "other";
201
+ export declare function architecture(): string;
202
+ export {};
203
+ //# sourceMappingURL=telemetry.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import http from "node:http";
2
- import { Client } from "@modelcontextprotocol/sdk/client/index.js";
3
- import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
4
- import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
2
+ import { Client } from "@modelcontextprotocol/client";
3
+ import { StdioClientTransport } from "@modelcontextprotocol/client/stdio";
4
+ import { StreamableHTTPClientTransport } from "@modelcontextprotocol/client";
5
5
  import { SecretsManager } from "../core/secrets.js";
6
6
  import type { McpxConfig, UpstreamTokenCount } from "../types.js";
7
7
  interface GatewayServerOptions {
@@ -29,6 +29,12 @@ interface GatewayRuntimeState {
29
29
  message: string;
30
30
  }>;
31
31
  lastWwwAuthenticate?: Map<string, string>;
32
+ health: Record<"tools_call" | "resources_read" | "prompts_get" | "other", {
33
+ calls: number;
34
+ successes: number;
35
+ errors: number;
36
+ }>;
37
+ healthWindowStartedAt: number;
32
38
  }
33
39
  export declare function getUpstreamTokenCounts(config: McpxConfig, secrets: SecretsManager, runtime: GatewayRuntimeState): Promise<Record<string, UpstreamTokenCount>>;
34
40
  export declare function createGatewayServer(options: GatewayServerOptions): http.Server;