@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/http-cli.js
CHANGED
|
@@ -1999,7 +1999,7 @@ function outcomeCode(result) {
|
|
|
1999
1999
|
// package.json
|
|
2000
2000
|
var package_default = {
|
|
2001
2001
|
name: "@tinycloud/mcp",
|
|
2002
|
-
version: "0.10.0-beta.
|
|
2002
|
+
version: "0.10.0-beta.6",
|
|
2003
2003
|
description: "TinyCloud delegated operations MCP server",
|
|
2004
2004
|
keywords: [
|
|
2005
2005
|
"tinycloud",
|
|
@@ -2072,7 +2072,7 @@ var package_default = {
|
|
|
2072
2072
|
"@modelcontextprotocol/server": "2.0.0-beta.5",
|
|
2073
2073
|
"@tinycloud/node-sdk": "3.12.0-beta.2",
|
|
2074
2074
|
"@tinycloud/node-sdk-wasm": "1.7.8",
|
|
2075
|
-
"@tinycloud/operations": "0.9.0-beta.
|
|
2075
|
+
"@tinycloud/operations": "0.9.0-beta.4",
|
|
2076
2076
|
jose: "6.2.4"
|
|
2077
2077
|
},
|
|
2078
2078
|
devDependencies: {
|
|
@@ -2394,10 +2394,12 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
|
|
|
2394
2394
|
try {
|
|
2395
2395
|
const destination = await store.approvalRedirect(requiredState(url));
|
|
2396
2396
|
return Response.redirect(destination, 302);
|
|
2397
|
-
} catch {
|
|
2397
|
+
} catch (error) {
|
|
2398
|
+
const reason = error instanceof ApprovalRequestError ? error.detail : "unknown";
|
|
2399
|
+
writeDiagnostic(`connect rejected: reason=${reason} path=${connectPath}`);
|
|
2398
2400
|
if (request.headers.get("accept")?.includes("text/html")) {
|
|
2399
2401
|
return new Response(
|
|
2400
|
-
'<!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.
|
|
2402
|
+
'<!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>',
|
|
2401
2403
|
{
|
|
2402
2404
|
status: 400,
|
|
2403
2405
|
headers: {
|