@tinycloud/mcp 0.10.0-beta.4 → 0.10.0-beta.6

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/index.js CHANGED
@@ -529,7 +529,7 @@ function outcomeCode(result) {
529
529
  // package.json
530
530
  var package_default = {
531
531
  name: "@tinycloud/mcp",
532
- version: "0.10.0-beta.4",
532
+ version: "0.10.0-beta.6",
533
533
  description: "TinyCloud delegated operations MCP server",
534
534
  keywords: [
535
535
  "tinycloud",
@@ -602,7 +602,7 @@ var package_default = {
602
602
  "@modelcontextprotocol/server": "2.0.0-beta.5",
603
603
  "@tinycloud/node-sdk": "3.12.0-beta.2",
604
604
  "@tinycloud/node-sdk-wasm": "1.7.8",
605
- "@tinycloud/operations": "0.9.0-beta.3",
605
+ "@tinycloud/operations": "0.9.0-beta.4",
606
606
  jose: "6.2.4"
607
607
  },
608
608
  devDependencies: {
@@ -2528,10 +2528,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
2528
2528
  try {
2529
2529
  const destination = await store.approvalRedirect(requiredState(url));
2530
2530
  return Response.redirect(destination, 302);
2531
- } catch {
2531
+ } catch (error) {
2532
+ const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
2533
+ writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
2532
2534
  if (request.headers.get("accept")?.includes("text/html")) {
2533
2535
  return new Response(
2534
- '<!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>',
2536
+ '<!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>',
2535
2537
  {
2536
2538
  status: 400,
2537
2539
  headers: {