@wuyax/mcps 0.1.0-beta.1 → 0.1.0-beta.2
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/README.md +339 -115
- package/dist/{chunk-XW2KL6W3.js → chunk-7V5XL4RI.js} +728 -144
- package/dist/cli.cjs +735 -179
- package/dist/cli.js +5 -17
- package/dist/index.cjs +743 -145
- package/dist/index.d.cts +78 -2
- package/dist/index.d.ts +78 -2
- package/dist/index.js +25 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
|
|
1
3
|
type McpAgentType = "amp" | "antigravity" | "antigravity-cli" | "augment" | "cline" | "cline-cli" | "claude-code" | "claude-desktop" | "codex" | "cursor" | "gemini-cli" | "grok" | "goose" | "github-copilot-cli" | "kimi-code-cli" | "kiro" | "opencode" | "pi" | "qoder" | "qwen-code" | "trae" | "vscode" | "zed";
|
|
2
4
|
type McpConfigFormat = "json" | "jsonc" | "yaml" | "toml";
|
|
3
5
|
type McpTransportType = "http" | "sse" | "stdio";
|
|
@@ -272,7 +274,19 @@ interface WizardAddOptions extends McpScopeOptions {
|
|
|
272
274
|
}
|
|
273
275
|
declare const wizardAdd: (initial?: WizardAddOptions) => Promise<boolean>;
|
|
274
276
|
|
|
275
|
-
|
|
277
|
+
interface WizardManageOptions extends McpScopeOptions {
|
|
278
|
+
serverName?: string;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Reusable display function for server details with secret masking.
|
|
282
|
+
*/
|
|
283
|
+
declare const displayServerDetails: ({ serverName, config, agents, isGlobal, titlePrefix, }: {
|
|
284
|
+
serverName: string;
|
|
285
|
+
config: McpServerConfig;
|
|
286
|
+
agents?: McpAgentType[];
|
|
287
|
+
isGlobal?: boolean;
|
|
288
|
+
titlePrefix?: string;
|
|
289
|
+
}) => void;
|
|
276
290
|
declare const wizardManage: (options?: WizardManageOptions) => Promise<void>;
|
|
277
291
|
|
|
278
292
|
interface WizardRemoveOptions extends McpScopeOptions {
|
|
@@ -281,6 +295,39 @@ interface WizardRemoveOptions extends McpScopeOptions {
|
|
|
281
295
|
}
|
|
282
296
|
declare const wizardRemove: (options?: WizardRemoveOptions) => Promise<boolean>;
|
|
283
297
|
|
|
298
|
+
interface PromptEditKeyValueOptions {
|
|
299
|
+
title: string;
|
|
300
|
+
itemNoun: string;
|
|
301
|
+
itemsNoun: string;
|
|
302
|
+
maskValue: (key: string, value: string) => string;
|
|
303
|
+
isSecretKey: (key: string) => boolean;
|
|
304
|
+
formatText: (items: Record<string, string>) => string;
|
|
305
|
+
parseText: (text: string) => Record<string, string>;
|
|
306
|
+
editorPostfix?: string;
|
|
307
|
+
editorMessage: string;
|
|
308
|
+
pasteMessage: string;
|
|
309
|
+
keyPromptMessage: string;
|
|
310
|
+
valuePromptMessage: string;
|
|
311
|
+
separator: "=" | ":";
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Generic reusable interactive key-value editing loop supporting:
|
|
315
|
+
* - Editor launch with pre-filled content ($EDITOR)
|
|
316
|
+
* - Single item upsert (with secret detection & password masking)
|
|
317
|
+
* - Single item deletion
|
|
318
|
+
* - Multiline paste (with merge or replace choices)
|
|
319
|
+
* - Clear all items
|
|
320
|
+
*/
|
|
321
|
+
declare const promptEditKeyValueConfig: (currentItems: Record<string, string> | undefined, options: PromptEditKeyValueOptions) => Promise<Record<string, string>>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Masks sensitive values for secure CLI display.
|
|
325
|
+
*/
|
|
326
|
+
declare const maskSecretValue: (key: string, value: string) => string;
|
|
327
|
+
/**
|
|
328
|
+
* Formats a key-value env record into .env formatted multiline string.
|
|
329
|
+
*/
|
|
330
|
+
declare const formatEnvText: (env: Record<string, string>) => string;
|
|
284
331
|
/**
|
|
285
332
|
* Parses multiline .env formatted text into a key-value record.
|
|
286
333
|
* Supports:
|
|
@@ -298,7 +345,20 @@ declare const parseEnvText: (rawText: string) => Record<string, string>;
|
|
|
298
345
|
* 3. Add key-value one by one (with secret mask detection)
|
|
299
346
|
*/
|
|
300
347
|
declare const promptEnvConfig: (initialEnv?: Record<string, string>) => Promise<Record<string, string>>;
|
|
348
|
+
/**
|
|
349
|
+
* Dedicated prompt loop for inspecting, modifying, adding, and removing
|
|
350
|
+
* environment variables of an existing MCP server configuration.
|
|
351
|
+
*/
|
|
352
|
+
declare const promptEditEnvConfig: (currentEnv?: Record<string, string>) => Promise<Record<string, string>>;
|
|
301
353
|
|
|
354
|
+
/**
|
|
355
|
+
* Masks sensitive HTTP header values for secure CLI display.
|
|
356
|
+
*/
|
|
357
|
+
declare const maskSecretHeader: (key: string, value: string) => string;
|
|
358
|
+
/**
|
|
359
|
+
* Formats a key-value headers record into multiline Key: Value text.
|
|
360
|
+
*/
|
|
361
|
+
declare const formatHeadersText: (headers: Record<string, string>) => string;
|
|
302
362
|
/**
|
|
303
363
|
* Parses multiline HTTP headers text (Key: Value or Key=Value) into a Record<string, string>.
|
|
304
364
|
*/
|
|
@@ -307,6 +367,11 @@ declare const parseHeadersText: (rawText: string) => Record<string, string>;
|
|
|
307
367
|
* Interactively prompts user for HTTP headers.
|
|
308
368
|
*/
|
|
309
369
|
declare const promptHeadersConfig: (initialHeaders?: Record<string, string>) => Promise<Record<string, string>>;
|
|
370
|
+
/**
|
|
371
|
+
* Dedicated prompt loop for inspecting, modifying, adding, and removing
|
|
372
|
+
* HTTP headers of an existing MCP server configuration.
|
|
373
|
+
*/
|
|
374
|
+
declare const promptEditHeadersConfig: (currentHeaders?: Record<string, string>) => Promise<Record<string, string>>;
|
|
310
375
|
|
|
311
376
|
/**
|
|
312
377
|
* Parses a command-line argument string into an array of arguments,
|
|
@@ -317,6 +382,15 @@ declare const parseArgsString: (rawText: string) => string[];
|
|
|
317
382
|
* Prompts the user for additional command-line arguments.
|
|
318
383
|
*/
|
|
319
384
|
declare const promptArgsConfig: (initialArgs?: string[]) => Promise<string[]>;
|
|
385
|
+
/**
|
|
386
|
+
* Formats an array of argument strings into a space-separated CLI string,
|
|
387
|
+
* quoting arguments containing spaces or quotes.
|
|
388
|
+
*/
|
|
389
|
+
declare const formatArgsString: (args: string[]) => string;
|
|
390
|
+
/**
|
|
391
|
+
* Dedicated prompt for editing command arguments with current arguments pre-filled.
|
|
392
|
+
*/
|
|
393
|
+
declare const promptEditArgs: (currentArgs?: string[]) => Promise<string[]>;
|
|
320
394
|
|
|
321
395
|
interface PromptScopeAndAgentsOptions extends McpScopeOptions {
|
|
322
396
|
defaultGlobal?: boolean;
|
|
@@ -342,6 +416,8 @@ interface PromptScopeOptions extends McpScopeOptions {
|
|
|
342
416
|
*/
|
|
343
417
|
declare const promptScope: (options?: PromptScopeOptions) => Promise<boolean>;
|
|
344
418
|
|
|
419
|
+
declare const mcpManageCommand: Command;
|
|
420
|
+
|
|
345
421
|
interface GroupedInstalledServer {
|
|
346
422
|
serverName: string;
|
|
347
423
|
agents: McpAgentType[];
|
|
@@ -375,4 +451,4 @@ declare const transformServerConfigForAgent: (agent: McpAgentConfig, serverName:
|
|
|
375
451
|
global: boolean;
|
|
376
452
|
}) => unknown;
|
|
377
453
|
|
|
378
|
-
export { AgentConfigStore, type AgentConfigStoreListResult, type AgentConfigStoreRemoveResult, type AgentConfigStoreWriteResult, type ConfigStoreAdapter, type ConfigTargetDescriptor, DEFAULT_REMOTE_TRANSPORT, type GroupedInstalledServer, type IncompatibleAgent, type InstallMcpServerOptions, type InstallMcpServerResult, type ListedMcpServer, type McpAgentConfig, type McpAgentType, type McpConfigFormat, type McpInstallResultForAgent, type McpRemoteServerConfig, type McpRemoteTransport, type McpScopeOptions, type McpServerConfig, type McpSourceType, type McpStdioServerConfig, type McpTransportType, NPX_COMMAND, NPX_DASH_Y, type ParsedMcpSource, type RemoveMcpServerOptions, type RemoveMcpServerResult, type ServerConfigDialect, type ServerConfigDialectName, type ServerConfigDialectOptions, type TargetResolutionQuery, type TargetResolutionResult, installMcpServer as add, agentConfigStore, buildMcpServerConfig, createAgentTransform, detectGloballyInstalledMcpAgents, detectProjectInstalledMcpAgents, extractPackageName, getMcpAgentConfig, getMcpAgentTypes, getMcpAgentsSupportingProjectScope, groupInstalledServersByName, installMcpServer as install, installMcpServer, installMcpServerForAgent, installMcpServerForAgents, isMcpAgentType, isMcpTransportSupported, isRemoteMcpSource, isRemoteServerConfig, isStdioServerConfig, listInstalledMcpServers as list, listInstalledMcpServers, listServersInConfigFile, mainMenu, mcpAgentAliases, mcpAgents, normalizeServerConfig, parseArgsString, parseEnvText, parseHeadersText, parseMcpSource, parseServerConfig, parseMcpSource as parseSource, promptArgsConfig, promptEnvConfig, promptHeadersConfig, promptScope, promptScopeAndAgents, readConfigFile, removeMcpServer as remove, removeMcpServer, removeMcpServerFromAgent, removeServerFromConfigFile, resolveMcpAgentAlias, resolveMcpConfigTarget, resolveTargetAgents, transformServerConfig, transformServerConfigForAgent, wizardAdd, wizardManage, wizardRemove, writeServerToConfigFile };
|
|
454
|
+
export { AgentConfigStore, type AgentConfigStoreListResult, type AgentConfigStoreRemoveResult, type AgentConfigStoreWriteResult, type ConfigStoreAdapter, type ConfigTargetDescriptor, DEFAULT_REMOTE_TRANSPORT, type GroupedInstalledServer, type IncompatibleAgent, type InstallMcpServerOptions, type InstallMcpServerResult, type ListedMcpServer, type McpAgentConfig, type McpAgentType, type McpConfigFormat, type McpInstallResultForAgent, type McpRemoteServerConfig, type McpRemoteTransport, type McpScopeOptions, type McpServerConfig, type McpSourceType, type McpStdioServerConfig, type McpTransportType, NPX_COMMAND, NPX_DASH_Y, type ParsedMcpSource, type PromptEditKeyValueOptions, type RemoveMcpServerOptions, type RemoveMcpServerResult, type ServerConfigDialect, type ServerConfigDialectName, type ServerConfigDialectOptions, type TargetResolutionQuery, type TargetResolutionResult, type WizardManageOptions, installMcpServer as add, agentConfigStore, buildMcpServerConfig, createAgentTransform, detectGloballyInstalledMcpAgents, detectProjectInstalledMcpAgents, displayServerDetails, extractPackageName, formatArgsString, formatEnvText, formatHeadersText, getMcpAgentConfig, getMcpAgentTypes, getMcpAgentsSupportingProjectScope, groupInstalledServersByName, installMcpServer as install, installMcpServer, installMcpServerForAgent, installMcpServerForAgents, isMcpAgentType, isMcpTransportSupported, isRemoteMcpSource, isRemoteServerConfig, isStdioServerConfig, listInstalledMcpServers as list, listInstalledMcpServers, listServersInConfigFile, mainMenu, maskSecretHeader, maskSecretValue, mcpAgentAliases, mcpAgents, mcpManageCommand, normalizeServerConfig, parseArgsString, parseEnvText, parseHeadersText, parseMcpSource, parseServerConfig, parseMcpSource as parseSource, promptArgsConfig, promptEditArgs, promptEditEnvConfig, promptEditHeadersConfig, promptEditKeyValueConfig, promptEnvConfig, promptHeadersConfig, promptScope, promptScopeAndAgents, readConfigFile, removeMcpServer as remove, removeMcpServer, removeMcpServerFromAgent, removeServerFromConfigFile, resolveMcpAgentAlias, resolveMcpConfigTarget, resolveTargetAgents, transformServerConfig, transformServerConfigForAgent, installMcpServerForAgent as updateMcpServerForAgent, installMcpServerForAgents as updateMcpServerForAgents, wizardAdd, wizardManage, wizardRemove, writeServerToConfigFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
|
|
1
3
|
type McpAgentType = "amp" | "antigravity" | "antigravity-cli" | "augment" | "cline" | "cline-cli" | "claude-code" | "claude-desktop" | "codex" | "cursor" | "gemini-cli" | "grok" | "goose" | "github-copilot-cli" | "kimi-code-cli" | "kiro" | "opencode" | "pi" | "qoder" | "qwen-code" | "trae" | "vscode" | "zed";
|
|
2
4
|
type McpConfigFormat = "json" | "jsonc" | "yaml" | "toml";
|
|
3
5
|
type McpTransportType = "http" | "sse" | "stdio";
|
|
@@ -272,7 +274,19 @@ interface WizardAddOptions extends McpScopeOptions {
|
|
|
272
274
|
}
|
|
273
275
|
declare const wizardAdd: (initial?: WizardAddOptions) => Promise<boolean>;
|
|
274
276
|
|
|
275
|
-
|
|
277
|
+
interface WizardManageOptions extends McpScopeOptions {
|
|
278
|
+
serverName?: string;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Reusable display function for server details with secret masking.
|
|
282
|
+
*/
|
|
283
|
+
declare const displayServerDetails: ({ serverName, config, agents, isGlobal, titlePrefix, }: {
|
|
284
|
+
serverName: string;
|
|
285
|
+
config: McpServerConfig;
|
|
286
|
+
agents?: McpAgentType[];
|
|
287
|
+
isGlobal?: boolean;
|
|
288
|
+
titlePrefix?: string;
|
|
289
|
+
}) => void;
|
|
276
290
|
declare const wizardManage: (options?: WizardManageOptions) => Promise<void>;
|
|
277
291
|
|
|
278
292
|
interface WizardRemoveOptions extends McpScopeOptions {
|
|
@@ -281,6 +295,39 @@ interface WizardRemoveOptions extends McpScopeOptions {
|
|
|
281
295
|
}
|
|
282
296
|
declare const wizardRemove: (options?: WizardRemoveOptions) => Promise<boolean>;
|
|
283
297
|
|
|
298
|
+
interface PromptEditKeyValueOptions {
|
|
299
|
+
title: string;
|
|
300
|
+
itemNoun: string;
|
|
301
|
+
itemsNoun: string;
|
|
302
|
+
maskValue: (key: string, value: string) => string;
|
|
303
|
+
isSecretKey: (key: string) => boolean;
|
|
304
|
+
formatText: (items: Record<string, string>) => string;
|
|
305
|
+
parseText: (text: string) => Record<string, string>;
|
|
306
|
+
editorPostfix?: string;
|
|
307
|
+
editorMessage: string;
|
|
308
|
+
pasteMessage: string;
|
|
309
|
+
keyPromptMessage: string;
|
|
310
|
+
valuePromptMessage: string;
|
|
311
|
+
separator: "=" | ":";
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Generic reusable interactive key-value editing loop supporting:
|
|
315
|
+
* - Editor launch with pre-filled content ($EDITOR)
|
|
316
|
+
* - Single item upsert (with secret detection & password masking)
|
|
317
|
+
* - Single item deletion
|
|
318
|
+
* - Multiline paste (with merge or replace choices)
|
|
319
|
+
* - Clear all items
|
|
320
|
+
*/
|
|
321
|
+
declare const promptEditKeyValueConfig: (currentItems: Record<string, string> | undefined, options: PromptEditKeyValueOptions) => Promise<Record<string, string>>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Masks sensitive values for secure CLI display.
|
|
325
|
+
*/
|
|
326
|
+
declare const maskSecretValue: (key: string, value: string) => string;
|
|
327
|
+
/**
|
|
328
|
+
* Formats a key-value env record into .env formatted multiline string.
|
|
329
|
+
*/
|
|
330
|
+
declare const formatEnvText: (env: Record<string, string>) => string;
|
|
284
331
|
/**
|
|
285
332
|
* Parses multiline .env formatted text into a key-value record.
|
|
286
333
|
* Supports:
|
|
@@ -298,7 +345,20 @@ declare const parseEnvText: (rawText: string) => Record<string, string>;
|
|
|
298
345
|
* 3. Add key-value one by one (with secret mask detection)
|
|
299
346
|
*/
|
|
300
347
|
declare const promptEnvConfig: (initialEnv?: Record<string, string>) => Promise<Record<string, string>>;
|
|
348
|
+
/**
|
|
349
|
+
* Dedicated prompt loop for inspecting, modifying, adding, and removing
|
|
350
|
+
* environment variables of an existing MCP server configuration.
|
|
351
|
+
*/
|
|
352
|
+
declare const promptEditEnvConfig: (currentEnv?: Record<string, string>) => Promise<Record<string, string>>;
|
|
301
353
|
|
|
354
|
+
/**
|
|
355
|
+
* Masks sensitive HTTP header values for secure CLI display.
|
|
356
|
+
*/
|
|
357
|
+
declare const maskSecretHeader: (key: string, value: string) => string;
|
|
358
|
+
/**
|
|
359
|
+
* Formats a key-value headers record into multiline Key: Value text.
|
|
360
|
+
*/
|
|
361
|
+
declare const formatHeadersText: (headers: Record<string, string>) => string;
|
|
302
362
|
/**
|
|
303
363
|
* Parses multiline HTTP headers text (Key: Value or Key=Value) into a Record<string, string>.
|
|
304
364
|
*/
|
|
@@ -307,6 +367,11 @@ declare const parseHeadersText: (rawText: string) => Record<string, string>;
|
|
|
307
367
|
* Interactively prompts user for HTTP headers.
|
|
308
368
|
*/
|
|
309
369
|
declare const promptHeadersConfig: (initialHeaders?: Record<string, string>) => Promise<Record<string, string>>;
|
|
370
|
+
/**
|
|
371
|
+
* Dedicated prompt loop for inspecting, modifying, adding, and removing
|
|
372
|
+
* HTTP headers of an existing MCP server configuration.
|
|
373
|
+
*/
|
|
374
|
+
declare const promptEditHeadersConfig: (currentHeaders?: Record<string, string>) => Promise<Record<string, string>>;
|
|
310
375
|
|
|
311
376
|
/**
|
|
312
377
|
* Parses a command-line argument string into an array of arguments,
|
|
@@ -317,6 +382,15 @@ declare const parseArgsString: (rawText: string) => string[];
|
|
|
317
382
|
* Prompts the user for additional command-line arguments.
|
|
318
383
|
*/
|
|
319
384
|
declare const promptArgsConfig: (initialArgs?: string[]) => Promise<string[]>;
|
|
385
|
+
/**
|
|
386
|
+
* Formats an array of argument strings into a space-separated CLI string,
|
|
387
|
+
* quoting arguments containing spaces or quotes.
|
|
388
|
+
*/
|
|
389
|
+
declare const formatArgsString: (args: string[]) => string;
|
|
390
|
+
/**
|
|
391
|
+
* Dedicated prompt for editing command arguments with current arguments pre-filled.
|
|
392
|
+
*/
|
|
393
|
+
declare const promptEditArgs: (currentArgs?: string[]) => Promise<string[]>;
|
|
320
394
|
|
|
321
395
|
interface PromptScopeAndAgentsOptions extends McpScopeOptions {
|
|
322
396
|
defaultGlobal?: boolean;
|
|
@@ -342,6 +416,8 @@ interface PromptScopeOptions extends McpScopeOptions {
|
|
|
342
416
|
*/
|
|
343
417
|
declare const promptScope: (options?: PromptScopeOptions) => Promise<boolean>;
|
|
344
418
|
|
|
419
|
+
declare const mcpManageCommand: Command;
|
|
420
|
+
|
|
345
421
|
interface GroupedInstalledServer {
|
|
346
422
|
serverName: string;
|
|
347
423
|
agents: McpAgentType[];
|
|
@@ -375,4 +451,4 @@ declare const transformServerConfigForAgent: (agent: McpAgentConfig, serverName:
|
|
|
375
451
|
global: boolean;
|
|
376
452
|
}) => unknown;
|
|
377
453
|
|
|
378
|
-
export { AgentConfigStore, type AgentConfigStoreListResult, type AgentConfigStoreRemoveResult, type AgentConfigStoreWriteResult, type ConfigStoreAdapter, type ConfigTargetDescriptor, DEFAULT_REMOTE_TRANSPORT, type GroupedInstalledServer, type IncompatibleAgent, type InstallMcpServerOptions, type InstallMcpServerResult, type ListedMcpServer, type McpAgentConfig, type McpAgentType, type McpConfigFormat, type McpInstallResultForAgent, type McpRemoteServerConfig, type McpRemoteTransport, type McpScopeOptions, type McpServerConfig, type McpSourceType, type McpStdioServerConfig, type McpTransportType, NPX_COMMAND, NPX_DASH_Y, type ParsedMcpSource, type RemoveMcpServerOptions, type RemoveMcpServerResult, type ServerConfigDialect, type ServerConfigDialectName, type ServerConfigDialectOptions, type TargetResolutionQuery, type TargetResolutionResult, installMcpServer as add, agentConfigStore, buildMcpServerConfig, createAgentTransform, detectGloballyInstalledMcpAgents, detectProjectInstalledMcpAgents, extractPackageName, getMcpAgentConfig, getMcpAgentTypes, getMcpAgentsSupportingProjectScope, groupInstalledServersByName, installMcpServer as install, installMcpServer, installMcpServerForAgent, installMcpServerForAgents, isMcpAgentType, isMcpTransportSupported, isRemoteMcpSource, isRemoteServerConfig, isStdioServerConfig, listInstalledMcpServers as list, listInstalledMcpServers, listServersInConfigFile, mainMenu, mcpAgentAliases, mcpAgents, normalizeServerConfig, parseArgsString, parseEnvText, parseHeadersText, parseMcpSource, parseServerConfig, parseMcpSource as parseSource, promptArgsConfig, promptEnvConfig, promptHeadersConfig, promptScope, promptScopeAndAgents, readConfigFile, removeMcpServer as remove, removeMcpServer, removeMcpServerFromAgent, removeServerFromConfigFile, resolveMcpAgentAlias, resolveMcpConfigTarget, resolveTargetAgents, transformServerConfig, transformServerConfigForAgent, wizardAdd, wizardManage, wizardRemove, writeServerToConfigFile };
|
|
454
|
+
export { AgentConfigStore, type AgentConfigStoreListResult, type AgentConfigStoreRemoveResult, type AgentConfigStoreWriteResult, type ConfigStoreAdapter, type ConfigTargetDescriptor, DEFAULT_REMOTE_TRANSPORT, type GroupedInstalledServer, type IncompatibleAgent, type InstallMcpServerOptions, type InstallMcpServerResult, type ListedMcpServer, type McpAgentConfig, type McpAgentType, type McpConfigFormat, type McpInstallResultForAgent, type McpRemoteServerConfig, type McpRemoteTransport, type McpScopeOptions, type McpServerConfig, type McpSourceType, type McpStdioServerConfig, type McpTransportType, NPX_COMMAND, NPX_DASH_Y, type ParsedMcpSource, type PromptEditKeyValueOptions, type RemoveMcpServerOptions, type RemoveMcpServerResult, type ServerConfigDialect, type ServerConfigDialectName, type ServerConfigDialectOptions, type TargetResolutionQuery, type TargetResolutionResult, type WizardManageOptions, installMcpServer as add, agentConfigStore, buildMcpServerConfig, createAgentTransform, detectGloballyInstalledMcpAgents, detectProjectInstalledMcpAgents, displayServerDetails, extractPackageName, formatArgsString, formatEnvText, formatHeadersText, getMcpAgentConfig, getMcpAgentTypes, getMcpAgentsSupportingProjectScope, groupInstalledServersByName, installMcpServer as install, installMcpServer, installMcpServerForAgent, installMcpServerForAgents, isMcpAgentType, isMcpTransportSupported, isRemoteMcpSource, isRemoteServerConfig, isStdioServerConfig, listInstalledMcpServers as list, listInstalledMcpServers, listServersInConfigFile, mainMenu, maskSecretHeader, maskSecretValue, mcpAgentAliases, mcpAgents, mcpManageCommand, normalizeServerConfig, parseArgsString, parseEnvText, parseHeadersText, parseMcpSource, parseServerConfig, parseMcpSource as parseSource, promptArgsConfig, promptEditArgs, promptEditEnvConfig, promptEditHeadersConfig, promptEditKeyValueConfig, promptEnvConfig, promptHeadersConfig, promptScope, promptScopeAndAgents, readConfigFile, removeMcpServer as remove, removeMcpServer, removeMcpServerFromAgent, removeServerFromConfigFile, resolveMcpAgentAlias, resolveMcpConfigTarget, resolveTargetAgents, transformServerConfig, transformServerConfigForAgent, installMcpServerForAgent as updateMcpServerForAgent, installMcpServerForAgents as updateMcpServerForAgents, wizardAdd, wizardManage, wizardRemove, writeServerToConfigFile };
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,11 @@ import {
|
|
|
8
8
|
createAgentTransform,
|
|
9
9
|
detectGloballyInstalledMcpAgents,
|
|
10
10
|
detectProjectInstalledMcpAgents,
|
|
11
|
+
displayServerDetails,
|
|
11
12
|
extractPackageName,
|
|
13
|
+
formatArgsString,
|
|
14
|
+
formatEnvText,
|
|
15
|
+
formatHeadersText,
|
|
12
16
|
getMcpAgentConfig,
|
|
13
17
|
getMcpAgentTypes,
|
|
14
18
|
getMcpAgentsSupportingProjectScope,
|
|
@@ -24,8 +28,11 @@ import {
|
|
|
24
28
|
listInstalledMcpServers,
|
|
25
29
|
listServersInConfigFile,
|
|
26
30
|
mainMenu,
|
|
31
|
+
maskSecretHeader,
|
|
32
|
+
maskSecretValue,
|
|
27
33
|
mcpAgentAliases,
|
|
28
34
|
mcpAgents,
|
|
35
|
+
mcpManageCommand,
|
|
29
36
|
normalizeServerConfig,
|
|
30
37
|
parseArgsString,
|
|
31
38
|
parseEnvText,
|
|
@@ -33,6 +40,10 @@ import {
|
|
|
33
40
|
parseMcpSource,
|
|
34
41
|
parseServerConfig,
|
|
35
42
|
promptArgsConfig,
|
|
43
|
+
promptEditArgs,
|
|
44
|
+
promptEditEnvConfig,
|
|
45
|
+
promptEditHeadersConfig,
|
|
46
|
+
promptEditKeyValueConfig,
|
|
36
47
|
promptEnvConfig,
|
|
37
48
|
promptHeadersConfig,
|
|
38
49
|
promptScope,
|
|
@@ -50,7 +61,7 @@ import {
|
|
|
50
61
|
wizardManage,
|
|
51
62
|
wizardRemove,
|
|
52
63
|
writeServerToConfigFile
|
|
53
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-7V5XL4RI.js";
|
|
54
65
|
export {
|
|
55
66
|
AgentConfigStore,
|
|
56
67
|
DEFAULT_REMOTE_TRANSPORT,
|
|
@@ -62,7 +73,11 @@ export {
|
|
|
62
73
|
createAgentTransform,
|
|
63
74
|
detectGloballyInstalledMcpAgents,
|
|
64
75
|
detectProjectInstalledMcpAgents,
|
|
76
|
+
displayServerDetails,
|
|
65
77
|
extractPackageName,
|
|
78
|
+
formatArgsString,
|
|
79
|
+
formatEnvText,
|
|
80
|
+
formatHeadersText,
|
|
66
81
|
getMcpAgentConfig,
|
|
67
82
|
getMcpAgentTypes,
|
|
68
83
|
getMcpAgentsSupportingProjectScope,
|
|
@@ -80,8 +95,11 @@ export {
|
|
|
80
95
|
listInstalledMcpServers,
|
|
81
96
|
listServersInConfigFile,
|
|
82
97
|
mainMenu,
|
|
98
|
+
maskSecretHeader,
|
|
99
|
+
maskSecretValue,
|
|
83
100
|
mcpAgentAliases,
|
|
84
101
|
mcpAgents,
|
|
102
|
+
mcpManageCommand,
|
|
85
103
|
normalizeServerConfig,
|
|
86
104
|
parseArgsString,
|
|
87
105
|
parseEnvText,
|
|
@@ -90,6 +108,10 @@ export {
|
|
|
90
108
|
parseServerConfig,
|
|
91
109
|
parseMcpSource as parseSource,
|
|
92
110
|
promptArgsConfig,
|
|
111
|
+
promptEditArgs,
|
|
112
|
+
promptEditEnvConfig,
|
|
113
|
+
promptEditHeadersConfig,
|
|
114
|
+
promptEditKeyValueConfig,
|
|
93
115
|
promptEnvConfig,
|
|
94
116
|
promptHeadersConfig,
|
|
95
117
|
promptScope,
|
|
@@ -104,6 +126,8 @@ export {
|
|
|
104
126
|
resolveTargetAgents,
|
|
105
127
|
transformServerConfig,
|
|
106
128
|
transformServerConfigForAgent,
|
|
129
|
+
installMcpServerForAgent as updateMcpServerForAgent,
|
|
130
|
+
installMcpServerForAgents as updateMcpServerForAgents,
|
|
107
131
|
wizardAdd,
|
|
108
132
|
wizardManage,
|
|
109
133
|
wizardRemove,
|
package/package.json
CHANGED