@tinycloud/mcp 0.10.0-beta.11 → 0.10.0-beta.13

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/index.cjs CHANGED
@@ -206,8 +206,7 @@ var TOOL_NAMES = [
206
206
  "tinycloud_apps_context",
207
207
  "tinycloud_apps_read",
208
208
  "tinycloud_apps_write",
209
- "tinycloud_apps_query",
210
- "tinycloud_apps_move"
209
+ "tinycloud_apps_query"
211
210
  ];
212
211
  function invocationTargetForMcp(selection) {
213
212
  return {
@@ -431,7 +430,7 @@ var TOOL_BINDINGS = [
431
430
  operationVersion: 1,
432
431
  readOnlyHint: false,
433
432
  idempotentHint: true,
434
- destructiveHint: true,
433
+ destructiveHint: false,
435
434
  openWorldHint: false,
436
435
  surfaces: ["hosted", "public"]
437
436
  },
@@ -461,19 +460,9 @@ var TOOL_BINDINGS = [
461
460
  operationVersion: 1,
462
461
  readOnlyHint: false,
463
462
  idempotentHint: true,
464
- destructiveHint: true,
465
- openWorldHint: false,
466
- surfaces: ["hosted", "public"]
467
- },
468
- {
469
- name: "tinycloud_apps_move",
470
- operationId: "tinycloud.apps.move",
471
- operationVersion: 1,
472
- readOnlyHint: false,
473
- idempotentHint: true,
474
463
  destructiveHint: false,
475
464
  openWorldHint: false,
476
- surfaces: ["hosted"]
465
+ surfaces: ["hosted", "public"]
477
466
  }
478
467
  ];
479
468
  var definitions = new Map(generatedCatalog.operations.map((operation) => [
@@ -566,7 +555,7 @@ function outcomeCode(result) {
566
555
  // package.json
567
556
  var package_default = {
568
557
  name: "@tinycloud/mcp",
569
- version: "0.10.0-beta.11",
558
+ version: "0.10.0-beta.13",
570
559
  description: "TinyCloud delegated operations MCP server",
571
560
  keywords: [
572
561
  "tinycloud",
@@ -639,7 +628,7 @@ var package_default = {
639
628
  "@modelcontextprotocol/server": "2.0.0-beta.5",
640
629
  "@tinycloud/node-sdk": "3.12.0-beta.5",
641
630
  "@tinycloud/node-sdk-wasm": "1.7.8",
642
- "@tinycloud/operations": "0.9.0-beta.8",
631
+ "@tinycloud/operations": "0.9.0-beta.9",
643
632
  jose: "6.2.4"
644
633
  },
645
634
  devDependencies: {
@@ -2241,6 +2230,7 @@ function samePendingRequest(pending, expected) {
2241
2230
  // src/http.ts
2242
2231
  var REQUIRED_SCOPE = "tinycloud:mcp";
2243
2232
  var MCP_CORS_ALLOWED_HEADERS = "Authorization, Content-Type, Accept, Mcp-Protocol-Version, Mcp-Session-Id, Last-Event-ID, Mcp-Method, Mcp-Name";
2233
+ var MCP_CORS_EXPOSED_HEADERS = "WWW-Authenticate, Mcp-Session-Id, Mcp-Protocol-Version";
2244
2234
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2245
2235
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2246
2236
  function createHostedMcpApp(config) {
@@ -2754,7 +2744,7 @@ function mcpCors(response, request) {
2754
2744
  if (request.headers.has("origin")) {
2755
2745
  headers.set("access-control-allow-origin", "*");
2756
2746
  headers.set("access-control-allow-methods", "GET, POST, DELETE, OPTIONS");
2757
- headers.set("access-control-expose-headers", "WWW-Authenticate");
2747
+ headers.set("access-control-expose-headers", MCP_CORS_EXPOSED_HEADERS);
2758
2748
  if (request.method === "OPTIONS") headers.set("access-control-allow-headers", MCP_CORS_ALLOWED_HEADERS);
2759
2749
  }
2760
2750
  return new Response(response.body, { status: response.status, statusText: response.statusText, headers });