@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/http.js CHANGED
@@ -1982,7 +1982,7 @@ function outcomeCode(result) {
1982
1982
  // package.json
1983
1983
  var package_default = {
1984
1984
  name: "@tinycloud/mcp",
1985
- version: "0.10.0-beta.4",
1985
+ version: "0.10.0-beta.6",
1986
1986
  description: "TinyCloud delegated operations MCP server",
1987
1987
  keywords: [
1988
1988
  "tinycloud",
@@ -2055,7 +2055,7 @@ var package_default = {
2055
2055
  "@modelcontextprotocol/server": "2.0.0-beta.5",
2056
2056
  "@tinycloud/node-sdk": "3.12.0-beta.2",
2057
2057
  "@tinycloud/node-sdk-wasm": "1.7.8",
2058
- "@tinycloud/operations": "0.9.0-beta.3",
2058
+ "@tinycloud/operations": "0.9.0-beta.4",
2059
2059
  jose: "6.2.4"
2060
2060
  },
2061
2061
  devDependencies: {
@@ -2377,10 +2377,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
2377
2377
  try {
2378
2378
  const destination = await store.approvalRedirect(requiredState(url));
2379
2379
  return Response.redirect(destination, 302);
2380
- } catch {
2380
+ } catch (error) {
2381
+ const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
2382
+ writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
2381
2383
  if (request.headers.get("accept")?.includes("text/html")) {
2382
2384
  return new Response(
2383
- '<!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>',
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. 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>',
2384
2386
  {
2385
2387
  status: 400,
2386
2388
  headers: {