@tinycloud/mcp 0.10.0-beta.5 → 0.10.0-beta.7
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 +8 -5
- package/dist/http-cli.cjs.map +1 -1
- package/dist/http-cli.js +8 -5
- package/dist/http-cli.js.map +1 -1
- package/dist/http.cjs +8 -5
- package/dist/http.cjs.map +1 -1
- package/dist/http.js +8 -5
- package/dist/http.js.map +1 -1
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- 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/http.cjs
CHANGED
|
@@ -781,8 +781,9 @@ var RemoteTenantStore = class {
|
|
|
781
781
|
reason: [
|
|
782
782
|
pending.kind === "bootstrap" ? "Connect this TinyCloud account to the hosted MCP delegate." : (0, import_tc_apps.tcAppsApprovalReason)(pending.permissions) ?? "Approve the exact capabilities requested by the TinyCloud MCP operation.",
|
|
783
783
|
// Owner DIDs come from the verified OpenKey access token of the MCP
|
|
784
|
-
// client that created this link, never from the link itself.
|
|
785
|
-
|
|
784
|
+
// client that created this link, never from the link itself. The
|
|
785
|
+
// callback refuses a signer outside them, so the approver isn't asked to check.
|
|
786
|
+
...pending.ownerDids.length === 0 ? [] : [`Requested by TinyCloud account ${pending.ownerDids.join(", ")}.`]
|
|
786
787
|
].join(" ")
|
|
787
788
|
})).toString("base64url"),
|
|
788
789
|
expiry: this.#config.delegationExpiry
|
|
@@ -1984,7 +1985,7 @@ function outcomeCode(result) {
|
|
|
1984
1985
|
// package.json
|
|
1985
1986
|
var package_default = {
|
|
1986
1987
|
name: "@tinycloud/mcp",
|
|
1987
|
-
version: "0.10.0-beta.
|
|
1988
|
+
version: "0.10.0-beta.7",
|
|
1988
1989
|
description: "TinyCloud delegated operations MCP server",
|
|
1989
1990
|
keywords: [
|
|
1990
1991
|
"tinycloud",
|
|
@@ -2379,10 +2380,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
|
|
|
2379
2380
|
try {
|
|
2380
2381
|
const destination = await store.approvalRedirect(requiredState(url));
|
|
2381
2382
|
return Response.redirect(destination, 302);
|
|
2382
|
-
} catch {
|
|
2383
|
+
} catch (error) {
|
|
2384
|
+
const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
|
|
2385
|
+
writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
|
|
2383
2386
|
if (request.headers.get("accept")?.includes("text/html")) {
|
|
2384
2387
|
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.
|
|
2388
|
+
'<!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
2389
|
{
|
|
2387
2390
|
status: 400,
|
|
2388
2391
|
headers: {
|