@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.js CHANGED
@@ -169,8 +169,7 @@ var TOOL_NAMES = [
169
169
  "tinycloud_apps_context",
170
170
  "tinycloud_apps_read",
171
171
  "tinycloud_apps_write",
172
- "tinycloud_apps_query",
173
- "tinycloud_apps_move"
172
+ "tinycloud_apps_query"
174
173
  ];
175
174
  function invocationTargetForMcp(selection) {
176
175
  return {
@@ -394,7 +393,7 @@ var TOOL_BINDINGS = [
394
393
  operationVersion: 1,
395
394
  readOnlyHint: false,
396
395
  idempotentHint: true,
397
- destructiveHint: true,
396
+ destructiveHint: false,
398
397
  openWorldHint: false,
399
398
  surfaces: ["hosted", "public"]
400
399
  },
@@ -424,19 +423,9 @@ var TOOL_BINDINGS = [
424
423
  operationVersion: 1,
425
424
  readOnlyHint: false,
426
425
  idempotentHint: true,
427
- destructiveHint: true,
428
- openWorldHint: false,
429
- surfaces: ["hosted", "public"]
430
- },
431
- {
432
- name: "tinycloud_apps_move",
433
- operationId: "tinycloud.apps.move",
434
- operationVersion: 1,
435
- readOnlyHint: false,
436
- idempotentHint: true,
437
426
  destructiveHint: false,
438
427
  openWorldHint: false,
439
- surfaces: ["hosted"]
428
+ surfaces: ["hosted", "public"]
440
429
  }
441
430
  ];
442
431
  var definitions = new Map(generatedCatalog.operations.map((operation) => [
@@ -529,7 +518,7 @@ function outcomeCode(result) {
529
518
  // package.json
530
519
  var package_default = {
531
520
  name: "@tinycloud/mcp",
532
- version: "0.10.0-beta.11",
521
+ version: "0.10.0-beta.13",
533
522
  description: "TinyCloud delegated operations MCP server",
534
523
  keywords: [
535
524
  "tinycloud",
@@ -602,7 +591,7 @@ var package_default = {
602
591
  "@modelcontextprotocol/server": "2.0.0-beta.5",
603
592
  "@tinycloud/node-sdk": "3.12.0-beta.5",
604
593
  "@tinycloud/node-sdk-wasm": "1.7.8",
605
- "@tinycloud/operations": "0.9.0-beta.8",
594
+ "@tinycloud/operations": "0.9.0-beta.9",
606
595
  jose: "6.2.4"
607
596
  },
608
597
  devDependencies: {
@@ -2228,6 +2217,7 @@ function samePendingRequest(pending, expected) {
2228
2217
  // src/http.ts
2229
2218
  var REQUIRED_SCOPE = "tinycloud:mcp";
2230
2219
  var MCP_CORS_ALLOWED_HEADERS = "Authorization, Content-Type, Accept, Mcp-Protocol-Version, Mcp-Session-Id, Last-Event-ID, Mcp-Method, Mcp-Name";
2220
+ var MCP_CORS_EXPOSED_HEADERS = "WWW-Authenticate, Mcp-Session-Id, Mcp-Protocol-Version";
2231
2221
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2232
2222
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2233
2223
  function createHostedMcpApp(config) {
@@ -2741,7 +2731,7 @@ function mcpCors(response, request) {
2741
2731
  if (request.headers.has("origin")) {
2742
2732
  headers.set("access-control-allow-origin", "*");
2743
2733
  headers.set("access-control-allow-methods", "GET, POST, DELETE, OPTIONS");
2744
- headers.set("access-control-expose-headers", "WWW-Authenticate");
2734
+ headers.set("access-control-expose-headers", MCP_CORS_EXPOSED_HEADERS);
2745
2735
  if (request.method === "OPTIONS") headers.set("access-control-allow-headers", MCP_CORS_ALLOWED_HEADERS);
2746
2736
  }
2747
2737
  return new Response(response.body, { status: response.status, statusText: response.statusText, headers });