@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/README.md +8 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/http-cli.cjs +6 -4
- package/dist/http-cli.cjs.map +1 -1
- package/dist/http-cli.js +6 -4
- package/dist/http-cli.js.map +1 -1
- package/dist/http.cjs +6 -4
- package/dist/http.cjs.map +1 -1
- package/dist/http.js +6 -4
- package/dist/http.js.map +1 -1
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +2 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/package.json +2 -2
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.
|
|
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.
|
|
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.
|
|
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: {
|