@tinycloud/mcp 0.10.0-beta.5 → 0.10.0-beta.7

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/http-cli.js CHANGED
@@ -797,8 +797,9 @@ var RemoteTenantStore = class {
797
797
  reason: [
798
798
  pending.kind === "bootstrap" ? "Connect this TinyCloud account to the hosted MCP delegate." : tcAppsApprovalReason(pending.permissions) ?? "Approve the exact capabilities requested by the TinyCloud MCP operation.",
799
799
  // Owner DIDs come from the verified OpenKey access token of the MCP
800
- // client that created this link, never from the link itself.
801
- ...pending.ownerDids.length === 0 ? [] : [`Requested by TinyCloud account ${pending.ownerDids.join(", ")}; approve only if that is you.`]
800
+ // client that created this link, never from the link itself. The
801
+ // callback refuses a signer outside them, so the approver isn't asked to check.
802
+ ...pending.ownerDids.length === 0 ? [] : [`Requested by TinyCloud account ${pending.ownerDids.join(", ")}.`]
802
803
  ].join(" ")
803
804
  })).toString("base64url"),
804
805
  expiry: this.#config.delegationExpiry
@@ -1999,7 +2000,7 @@ function outcomeCode(result) {
1999
2000
  // package.json
2000
2001
  var package_default = {
2001
2002
  name: "@tinycloud/mcp",
2002
- version: "0.10.0-beta.5",
2003
+ version: "0.10.0-beta.7",
2003
2004
  description: "TinyCloud delegated operations MCP server",
2004
2005
  keywords: [
2005
2006
  "tinycloud",
@@ -2394,10 +2395,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
2394
2395
  try {
2395
2396
  const destination = await store.approvalRedirect(requiredState(url));
2396
2397
  return Response.redirect(destination, 302);
2397
- } catch {
2398
+ } catch (error) {
2399
+ const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
2400
+ writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
2398
2401
  if (request.headers.get("accept")?.includes("text/html")) {
2399
2402
  return new Response(
2400
- '<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>TinyCloud approval unavailable</title><main><h1>This approval link is unavailable</h1><p>It may have expired or already been used. No new approval was accepted through this link.</p><p>Return to the conversation that requested access. In ChatGPT, select @TinyCloud and ask it to continue your original request. If access is still needed, it can provide a fresh approval link.</p><p>If you declined access, no further approval is required. Never paste passwords, codes or approval links into support messages.</p></main></html>',
2403
+ '<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>TinyCloud approval unavailable</title><main><h1>This approval link is unavailable</h1><p>It may have expired or already been used. Go back to the assistant that sent it and ask it to connect TinyCloud again.</p><p>If you declined access, no further approval is required. Never paste passwords, codes or approval links into support messages.</p></main></html>',
2401
2404
  {
2402
2405
  status: 400,
2403
2406
  headers: {