@tinycloud/mcp 0.9.1-beta.2 → 0.10.0-beta.11
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 +37 -9
- package/dist/cli.cjs +13 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -3
- package/dist/cli.js.map +1 -1
- package/dist/http-cli.cjs +21 -13
- package/dist/http-cli.cjs.map +1 -1
- package/dist/http-cli.js +21 -12
- package/dist/http-cli.js.map +1 -1
- package/dist/http.cjs +21 -13
- package/dist/http.cjs.map +1 -1
- package/dist/http.js +21 -12
- package/dist/http.js.map +1 -1
- package/dist/index.cjs +23 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +13 -3
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +13 -3
- package/dist/server.js.map +1 -1
- package/dist/tools.cjs +12 -1
- package/dist/tools.cjs.map +1 -1
- package/dist/tools.d.cts +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +12 -1
- package/dist/tools.js.map +1 -1
- package/generated/mcp-facts.json +35 -2
- package/package.json +3 -3
- package/skills/tinycloud-delegated-secrets/SKILL.md +5 -2
package/dist/http.js
CHANGED
|
@@ -273,6 +273,7 @@ import {
|
|
|
273
273
|
UnsupportedSessionRestoreError,
|
|
274
274
|
isCapabilitySubset,
|
|
275
275
|
principalDidEquals,
|
|
276
|
+
publicJwk,
|
|
276
277
|
siweRuntimeDelegation,
|
|
277
278
|
signedCompactUcanExpiry
|
|
278
279
|
} from "@tinycloud/node-sdk";
|
|
@@ -780,8 +781,9 @@ var RemoteTenantStore = class {
|
|
|
780
781
|
reason: [
|
|
781
782
|
pending.kind === "bootstrap" ? "Connect this TinyCloud account to the hosted MCP delegate." : tcAppsApprovalReason(pending.permissions) ?? "Approve the exact capabilities requested by the TinyCloud MCP operation.",
|
|
782
783
|
// Owner DIDs come from the verified OpenKey access token of the MCP
|
|
783
|
-
// client that created this link, never from the link itself.
|
|
784
|
-
|
|
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(", ")}.`]
|
|
785
787
|
].join(" ")
|
|
786
788
|
})).toString("base64url"),
|
|
787
789
|
expiry: this.#config.delegationExpiry
|
|
@@ -1389,11 +1391,6 @@ function sessionFromCallback(data, privateJwk) {
|
|
|
1389
1391
|
signature: data.signature
|
|
1390
1392
|
};
|
|
1391
1393
|
}
|
|
1392
|
-
function publicJwk(jwk) {
|
|
1393
|
-
const copy = { ...jwk };
|
|
1394
|
-
for (const field of ["d", "p", "q", "dp", "dq", "qi", "oth", "k"]) delete copy[field];
|
|
1395
|
-
return copy;
|
|
1396
|
-
}
|
|
1397
1394
|
function samePrincipal(left, right) {
|
|
1398
1395
|
if (typeof left !== "string") return false;
|
|
1399
1396
|
try {
|
|
@@ -1880,6 +1877,16 @@ var TOOL_BINDINGS = [
|
|
|
1880
1877
|
destructiveHint: true,
|
|
1881
1878
|
openWorldHint: false,
|
|
1882
1879
|
surfaces: ["hosted", "public"]
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
name: "tinycloud_apps_move",
|
|
1883
|
+
operationId: "tinycloud.apps.move",
|
|
1884
|
+
operationVersion: 1,
|
|
1885
|
+
readOnlyHint: false,
|
|
1886
|
+
idempotentHint: true,
|
|
1887
|
+
destructiveHint: false,
|
|
1888
|
+
openWorldHint: false,
|
|
1889
|
+
surfaces: ["hosted"]
|
|
1883
1890
|
}
|
|
1884
1891
|
];
|
|
1885
1892
|
var definitions = new Map(generatedCatalog.operations.map((operation) => [
|
|
@@ -1972,7 +1979,7 @@ function outcomeCode(result) {
|
|
|
1972
1979
|
// package.json
|
|
1973
1980
|
var package_default = {
|
|
1974
1981
|
name: "@tinycloud/mcp",
|
|
1975
|
-
version: "0.
|
|
1982
|
+
version: "0.10.0-beta.11",
|
|
1976
1983
|
description: "TinyCloud delegated operations MCP server",
|
|
1977
1984
|
keywords: [
|
|
1978
1985
|
"tinycloud",
|
|
@@ -2043,9 +2050,9 @@ var package_default = {
|
|
|
2043
2050
|
dependencies: {
|
|
2044
2051
|
"@modelcontextprotocol/node": "2.0.0-beta.5",
|
|
2045
2052
|
"@modelcontextprotocol/server": "2.0.0-beta.5",
|
|
2046
|
-
"@tinycloud/node-sdk": "3.12.0-beta.
|
|
2053
|
+
"@tinycloud/node-sdk": "3.12.0-beta.5",
|
|
2047
2054
|
"@tinycloud/node-sdk-wasm": "1.7.8",
|
|
2048
|
-
"@tinycloud/operations": "0.
|
|
2055
|
+
"@tinycloud/operations": "0.9.0-beta.8",
|
|
2049
2056
|
jose: "6.2.4"
|
|
2050
2057
|
},
|
|
2051
2058
|
devDependencies: {
|
|
@@ -2367,10 +2374,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
|
|
|
2367
2374
|
try {
|
|
2368
2375
|
const destination = await store.approvalRedirect(requiredState(url));
|
|
2369
2376
|
return Response.redirect(destination, 302);
|
|
2370
|
-
} catch {
|
|
2377
|
+
} catch (error) {
|
|
2378
|
+
const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
|
|
2379
|
+
writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
|
|
2371
2380
|
if (request.headers.get("accept")?.includes("text/html")) {
|
|
2372
2381
|
return new Response(
|
|
2373
|
-
'<!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.
|
|
2382
|
+
'<!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>',
|
|
2374
2383
|
{
|
|
2375
2384
|
status: 400,
|
|
2376
2385
|
headers: {
|