@tinycloud/mcp 0.10.0-beta.5 → 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/http.cjs CHANGED
@@ -1984,7 +1984,7 @@ function outcomeCode(result) {
1984
1984
  // package.json
1985
1985
  var package_default = {
1986
1986
  name: "@tinycloud/mcp",
1987
- version: "0.10.0-beta.5",
1987
+ version: "0.10.0-beta.6",
1988
1988
  description: "TinyCloud delegated operations MCP server",
1989
1989
  keywords: [
1990
1990
  "tinycloud",
@@ -2379,10 +2379,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
2379
2379
  try {
2380
2380
  const destination = await store.approvalRedirect(requiredState(url));
2381
2381
  return Response.redirect(destination, 302);
2382
- } catch {
2382
+ } catch (error) {
2383
+ const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
2384
+ writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
2383
2385
  if (request.headers.get("accept")?.includes("text/html")) {
2384
2386
  return new Response(
2385
- '<!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>',
2387
+ '<!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>',
2386
2388
  {
2387
2389
  status: 400,
2388
2390
  headers: {