@mcpcloud/cli 0.28.0 → 0.29.0-next-20261003200058
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 +1 -1
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -571,7 +571,7 @@ _Generated from the live command tree by `bun run docs:readme` — do not edit b
|
|
|
571
571
|
| `mcp servers test-suites run <server>` | Run the server’s test scenarios and report the suite result |
|
|
572
572
|
| `mcp servers traces <server>` | Show recent tool-call traces from the edge — what a caller sent and what came back. Pass --request to open one call in full. |
|
|
573
573
|
| `mcp servers transfer <server>` | Move a server into another organization you administer, keeping its id, slug, deployment, custom domain, end-user keys and git link. Shows the plan; add --yes to execute. |
|
|
574
|
-
| `mcp servers update <server>` | Update a server (name, description, tool surface, upstream key mode, runtime token TTL, client identity forwarding, spec source URL) |
|
|
574
|
+
| `mcp servers update <server>` | Update a server (name, description, tool surface, upstream key mode, runtime token TTL, client identity forwarding, connections hub offer, spec source URL) |
|
|
575
575
|
| `mcp servers variables` | Inspect and set the sandbox variables that scenario arguments reference |
|
|
576
576
|
| `mcp servers variables list <server>` | List a server’s sandbox variables and which ones still need a value |
|
|
577
577
|
| `mcp servers variables set <server>` | Set or clear sandbox variables (repeat --set; an empty value clears) |
|
package/dist/index.js
CHANGED
|
@@ -7971,6 +7971,7 @@ function registerServerGetCommand(servers) {
|
|
|
7971
7971
|
"tool surface": describeToolSurface(s),
|
|
7972
7972
|
"upstream keys": s.upstreamApiKeyMode ?? "shared",
|
|
7973
7973
|
"client identity": s.forwardClientIdentity ? "forwarded" : "off",
|
|
7974
|
+
"connections hub offer": s.offerConnectionsHub === false ? "off" : "shown",
|
|
7974
7975
|
upstream: "mcp deployments get latest --server <server>",
|
|
7975
7976
|
"end-user access": s.endUserAccess ?? "disabled",
|
|
7976
7977
|
...s.endUserAccess === "enabled" && s.connectPageUrl ? { "connect page": s.connectPageUrl } : {},
|
|
@@ -9125,7 +9126,7 @@ function driftLine(change) {
|
|
|
9125
9126
|
|
|
9126
9127
|
// src/commands/servers-update.ts
|
|
9127
9128
|
function registerServerUpdateCommand(servers) {
|
|
9128
|
-
servers.command("update <server>").description("Update a server (name, description, tool surface, upstream key mode, runtime token TTL, client identity forwarding, spec source URL)").option("--org <organizationId>", "Organization ID").option("--name <name>", "New display name").option("--description <text>", "New description").option("--discovery-mode <all|wrapper>", 'Tool surface: "all" registers every operation; "wrapper" registers searchTools/getToolDefinition/useTool INSTEAD (operations are called through useTool).').option("--code-mode <off|opt-in|default>", "Code Mode: expose codemode_execute so an agent can script several calls in one sandboxed run. Served by the edge, so it takes effect on the next deploy.").option("--upstream-api-key-mode <shared|perMember>", "Whose upstream credential the server uses: one shared key, or each member their own (Pro and above). perMember needs a protected access mode (privateOrg or unlisted) — refused while the active deployment is public.").option("--runtime-token-ttl <seconds|default>", 'Runtime token lifetime in seconds (60-86400; the default AND cap for minted tokens). Pass "default" to restore the 300s platform default.').option("--forward-client-identity <on|off>", 'Tell your upstream API which agent is calling: "on" adds X-MCP-Client-Name (e.g. "Claude Code") and the MCP client info headers to every upstream request, so your app can show the agent by name. The values are the client’s own claims — for display, never for authentication. Takes effect on the next deploy.').option("--source-url <url>", "Read this server’s spec from a different URL from now on. The URL is fetched and parsed as the server’s source type first, and the report shows what a regenerate from it would change. Tools are not touched until you regenerate.").option("--dry-run", "With --source-url: fetch, parse and report without storing anything").addHelpText("after", [
|
|
9129
|
+
servers.command("update <server>").description("Update a server (name, description, tool surface, upstream key mode, runtime token TTL, client identity forwarding, connections hub offer, spec source URL)").option("--org <organizationId>", "Organization ID").option("--name <name>", "New display name").option("--description <text>", "New description").option("--discovery-mode <all|wrapper>", 'Tool surface: "all" registers every operation; "wrapper" registers searchTools/getToolDefinition/useTool INSTEAD (operations are called through useTool).').option("--code-mode <off|opt-in|default>", "Code Mode: expose codemode_execute so an agent can script several calls in one sandboxed run. Served by the edge, so it takes effect on the next deploy.").option("--upstream-api-key-mode <shared|perMember>", "Whose upstream credential the server uses: one shared key, or each member their own (Pro and above). perMember needs a protected access mode (privateOrg or unlisted) — refused while the active deployment is public.").option("--runtime-token-ttl <seconds|default>", 'Runtime token lifetime in seconds (60-86400; the default AND cap for minted tokens). Pass "default" to restore the 300s platform default.').option("--forward-client-identity <on|off>", 'Tell your upstream API which agent is calling: "on" adds X-MCP-Client-Name (e.g. "Claude Code") and the MCP client info headers to every upstream request, so your app can show the agent by name. The values are the client’s own claims — for display, never for authentication. Takes effect on the next deploy.').option("--connections-hub-offer <on|off>", "Whether your connect page shows one quiet line after a successful connect, pointing customers who use several MCPCloud apps to the connections hub (see and disconnect them all with a verified email). On by default; applies right away, no redeploy. It never asks customers to create an account.").option("--source-url <url>", "Read this server’s spec from a different URL from now on. The URL is fetched and parsed as the server’s source type first, and the report shows what a regenerate from it would change. Tools are not touched until you regenerate.").option("--dry-run", "With --source-url: fetch, parse and report without storing anything").addHelpText("after", [
|
|
9129
9130
|
"",
|
|
9130
9131
|
"Notes:",
|
|
9131
9132
|
" The OAuth provider is `mcp servers oauth set`; how customers sign in is",
|
|
@@ -9160,7 +9161,7 @@ async function runUpdate(serverRef, opts) {
|
|
|
9160
9161
|
throw new Error("--dry-run only previews --source-url. Run the other changes without --dry-run.");
|
|
9161
9162
|
}
|
|
9162
9163
|
if (!hasSettings && opts.sourceUrl === undefined) {
|
|
9163
|
-
throw new Error("Provide at least one of --name, --description, --discovery-mode, --code-mode, --upstream-api-key-mode, --runtime-token-ttl, --forward-client-identity, or --source-url.");
|
|
9164
|
+
throw new Error("Provide at least one of --name, --description, --discovery-mode, --code-mode, --upstream-api-key-mode, --runtime-token-ttl, --forward-client-identity, --connections-hub-offer, or --source-url.");
|
|
9164
9165
|
}
|
|
9165
9166
|
const orgId = await resolveOrgId(opts.org);
|
|
9166
9167
|
const serverId = await resolveServerId(serverRef, orgId);
|
|
@@ -9239,6 +9240,12 @@ function buildSettingsPatch(opts) {
|
|
|
9239
9240
|
body["runtimeTokenTtlSeconds"] = ttl;
|
|
9240
9241
|
}
|
|
9241
9242
|
}
|
|
9243
|
+
if (opts.connectionsHubOffer !== undefined) {
|
|
9244
|
+
body["offerConnectionsHub"] = validateChoice("connections-hub-offer", opts.connectionsHubOffer, [
|
|
9245
|
+
"on",
|
|
9246
|
+
"off"
|
|
9247
|
+
]) === "on";
|
|
9248
|
+
}
|
|
9242
9249
|
if (opts.forwardClientIdentity !== undefined) {
|
|
9243
9250
|
body["forwardClientIdentity"] = validateChoice("forward-client-identity", opts.forwardClientIdentity, [
|
|
9244
9251
|
"on",
|
package/package.json
CHANGED