@wuyax/mcps 0.1.0-beta.2 → 0.1.0-beta.3

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/cli.js CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  getMcpAgentTypes,
3
3
  installMcpServer,
4
4
  listInstalledMcpServers,
5
+ logCoHostedNotice,
5
6
  logger,
6
7
  mainMenu,
7
8
  mcpManageCommand,
@@ -10,10 +11,11 @@ import {
10
11
  parseMcpSource,
11
12
  removeMcpServer,
12
13
  resolveTargetAgents,
14
+ resolveTransport,
13
15
  toErrorMessage,
14
16
  wizardAdd,
15
17
  wizardRemove
16
- } from "./chunk-7V5XL4RI.js";
18
+ } from "./chunk-BUKA3NPJ.js";
17
19
 
18
20
  // src/cli.ts
19
21
  import { Command as Command4 } from "commander";
@@ -26,11 +28,6 @@ import pc from "picocolors";
26
28
  var formatAgentList = (agentList, emptyLabel = "(none)") => agentList.length === 0 ? emptyLabel : agentList.join(", ");
27
29
 
28
30
  // src/cli/add.ts
29
- var resolveTransport = (input) => {
30
- if (!input) return void 0;
31
- if (input === "http" || input === "sse") return input;
32
- throw new Error(`Unsupported transport "${input}" (expected: http, sse)`);
33
- };
34
31
  var mcpAddCommand = new Command("add").description("Add an MCP server to coding agents").argument("[source]", "Remote URL, npm package, or command line").option("-a, --agent <agents...>", "Target specific agents (use '*' for all)").option("-g, --global", "Install to user-level config instead of project").option("-t, --transport <type>", "Transport type for remote servers (http or sse)").option("--header <header...>", "HTTP header (Key: Value), repeatable").option("--env <env...>", "Env var for stdio servers (KEY=VALUE), repeatable").option("--args <args...>", "CLI arguments for stdio/package servers").option("-n, --name <name>", "Server name override").option("-y, --yes", "Skip all prompts").option("--all", "Install to all supported agents").action(async (source, options) => {
35
32
  try {
36
33
  const isInteractive = Boolean(process.stdin.isTTY && !options.yes);
@@ -99,6 +96,7 @@ var mcpAddCommand = new Command("add").description("Add an MCP server to coding
99
96
  for (const record of result.results) {
100
97
  if (record.success) {
101
98
  logger.success(`${pc.cyan(record.agent)} ${pc.dim(record.path)}`);
99
+ logCoHostedNotice("configured", record.coConfiguredAgents);
102
100
  } else {
103
101
  logger.error(`${pc.cyan(record.agent)}: ${record.error}`);
104
102
  }
@@ -180,6 +178,7 @@ var mcpRemoveCommand = new Command3("remove").alias("rm").description("Remove an
180
178
  logger.success(
181
179
  `${pc3.cyan(record.agent)} removed ${pc3.bold(name)} ${pc3.dim(record.path)}`
182
180
  );
181
+ logCoHostedNotice("affected", record.coAffectedAgents);
183
182
  } else {
184
183
  logger.error(`${pc3.cyan(record.agent)}: ${record.error ?? "not found"}`);
185
184
  }
@@ -191,7 +190,7 @@ var mcpRemoveCommand = new Command3("remove").alias("rm").description("Remove an
191
190
  });
192
191
 
193
192
  // src/cli.ts
194
- var VERSION = "0.1.0-beta.2";
193
+ var VERSION = "0.1.0-beta.3";
195
194
  process.on("SIGINT", () => process.exit(0));
196
195
  process.on("SIGTERM", () => process.exit(0));
197
196
  var program = new Command4().name("mcps").description("Install, list, and remove MCP servers across AI coding agents").version(VERSION, "-v, --version", "display the version number");