@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/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/http-cli.cjs +5 -3
- package/dist/http-cli.cjs.map +1 -1
- package/dist/http-cli.js +5 -3
- package/dist/http-cli.js.map +1 -1
- package/dist/http.cjs +5 -3
- package/dist/http.cjs.map +1 -1
- package/dist/http.js +5 -3
- package/dist/http.js.map +1 -1
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -566,7 +566,7 @@ function outcomeCode(result) {
|
|
|
566
566
|
// package.json
|
|
567
567
|
var package_default = {
|
|
568
568
|
name: "@tinycloud/mcp",
|
|
569
|
-
version: "0.10.0-beta.
|
|
569
|
+
version: "0.10.0-beta.6",
|
|
570
570
|
description: "TinyCloud delegated operations MCP server",
|
|
571
571
|
keywords: [
|
|
572
572
|
"tinycloud",
|
|
@@ -2542,10 +2542,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
|
|
|
2542
2542
|
try {
|
|
2543
2543
|
const destination = await store.approvalRedirect(requiredState(url));
|
|
2544
2544
|
return Response.redirect(destination, 302);
|
|
2545
|
-
} catch {
|
|
2545
|
+
} catch (error) {
|
|
2546
|
+
const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
|
|
2547
|
+
writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
|
|
2546
2548
|
if (request.headers.get("accept")?.includes("text/html")) {
|
|
2547
2549
|
return new Response(
|
|
2548
|
-
'<!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.
|
|
2550
|
+
'<!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>',
|
|
2549
2551
|
{
|
|
2550
2552
|
status: 400,
|
|
2551
2553
|
headers: {
|