@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/http.cjs CHANGED
@@ -1845,7 +1845,7 @@ var TOOL_BINDINGS = [
1845
1845
  operationVersion: 1,
1846
1846
  readOnlyHint: false,
1847
1847
  idempotentHint: true,
1848
- destructiveHint: true,
1848
+ destructiveHint: false,
1849
1849
  openWorldHint: false,
1850
1850
  surfaces: ["hosted", "public"]
1851
1851
  },
@@ -1875,19 +1875,9 @@ var TOOL_BINDINGS = [
1875
1875
  operationVersion: 1,
1876
1876
  readOnlyHint: false,
1877
1877
  idempotentHint: true,
1878
- destructiveHint: true,
1879
- openWorldHint: false,
1880
- surfaces: ["hosted", "public"]
1881
- },
1882
- {
1883
- name: "tinycloud_apps_move",
1884
- operationId: "tinycloud.apps.move",
1885
- operationVersion: 1,
1886
- readOnlyHint: false,
1887
- idempotentHint: true,
1888
1878
  destructiveHint: false,
1889
1879
  openWorldHint: false,
1890
- surfaces: ["hosted"]
1880
+ surfaces: ["hosted", "public"]
1891
1881
  }
1892
1882
  ];
1893
1883
  var definitions = new Map(generatedCatalog.operations.map((operation) => [
@@ -1980,7 +1970,7 @@ function outcomeCode(result) {
1980
1970
  // package.json
1981
1971
  var package_default = {
1982
1972
  name: "@tinycloud/mcp",
1983
- version: "0.10.0-beta.11",
1973
+ version: "0.10.0-beta.13",
1984
1974
  description: "TinyCloud delegated operations MCP server",
1985
1975
  keywords: [
1986
1976
  "tinycloud",
@@ -2053,7 +2043,7 @@ var package_default = {
2053
2043
  "@modelcontextprotocol/server": "2.0.0-beta.5",
2054
2044
  "@tinycloud/node-sdk": "3.12.0-beta.5",
2055
2045
  "@tinycloud/node-sdk-wasm": "1.7.8",
2056
- "@tinycloud/operations": "0.9.0-beta.8",
2046
+ "@tinycloud/operations": "0.9.0-beta.9",
2057
2047
  jose: "6.2.4"
2058
2048
  },
2059
2049
  devDependencies: {
@@ -2078,6 +2068,7 @@ var MCP_SERVER_NAME = "tinycloud-mcp";
2078
2068
  // src/http.ts
2079
2069
  var REQUIRED_SCOPE = "tinycloud:mcp";
2080
2070
  var MCP_CORS_ALLOWED_HEADERS = "Authorization, Content-Type, Accept, Mcp-Protocol-Version, Mcp-Session-Id, Last-Event-ID, Mcp-Method, Mcp-Name";
2071
+ var MCP_CORS_EXPOSED_HEADERS = "WWW-Authenticate, Mcp-Session-Id, Mcp-Protocol-Version";
2081
2072
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2082
2073
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2083
2074
  function createHostedMcpApp(config) {
@@ -2591,7 +2582,7 @@ function mcpCors(response, request) {
2591
2582
  if (request.headers.has("origin")) {
2592
2583
  headers.set("access-control-allow-origin", "*");
2593
2584
  headers.set("access-control-allow-methods", "GET, POST, DELETE, OPTIONS");
2594
- headers.set("access-control-expose-headers", "WWW-Authenticate");
2585
+ headers.set("access-control-expose-headers", MCP_CORS_EXPOSED_HEADERS);
2595
2586
  if (request.method === "OPTIONS") headers.set("access-control-allow-headers", MCP_CORS_ALLOWED_HEADERS);
2596
2587
  }
2597
2588
  return new Response(response.body, { status: response.status, statusText: response.statusText, headers });