@tinycloud/mcp 0.10.0-beta.12 → 0.10.0-beta.14

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.js CHANGED
@@ -1969,7 +1969,7 @@ function outcomeCode(result) {
1969
1969
  // package.json
1970
1970
  var package_default = {
1971
1971
  name: "@tinycloud/mcp",
1972
- version: "0.10.0-beta.12",
1972
+ version: "0.10.0-beta.14",
1973
1973
  description: "TinyCloud delegated operations MCP server",
1974
1974
  keywords: [
1975
1975
  "tinycloud",
@@ -2040,9 +2040,9 @@ var package_default = {
2040
2040
  dependencies: {
2041
2041
  "@modelcontextprotocol/node": "2.0.0-beta.5",
2042
2042
  "@modelcontextprotocol/server": "2.0.0-beta.5",
2043
- "@tinycloud/node-sdk": "3.12.0-beta.5",
2043
+ "@tinycloud/node-sdk": "3.12.0-beta.7",
2044
2044
  "@tinycloud/node-sdk-wasm": "1.7.8",
2045
- "@tinycloud/operations": "0.9.0-beta.9",
2045
+ "@tinycloud/operations": "0.9.0-beta.10",
2046
2046
  jose: "6.2.4"
2047
2047
  },
2048
2048
  devDependencies: {
@@ -2067,6 +2067,7 @@ var MCP_SERVER_NAME = "tinycloud-mcp";
2067
2067
  // src/http.ts
2068
2068
  var REQUIRED_SCOPE = "tinycloud:mcp";
2069
2069
  var MCP_CORS_ALLOWED_HEADERS = "Authorization, Content-Type, Accept, Mcp-Protocol-Version, Mcp-Session-Id, Last-Event-ID, Mcp-Method, Mcp-Name";
2070
+ var MCP_CORS_EXPOSED_HEADERS = "WWW-Authenticate, Mcp-Session-Id, Mcp-Protocol-Version";
2070
2071
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2071
2072
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2072
2073
  function createHostedMcpApp(config) {
@@ -2580,7 +2581,7 @@ function mcpCors(response, request) {
2580
2581
  if (request.headers.has("origin")) {
2581
2582
  headers.set("access-control-allow-origin", "*");
2582
2583
  headers.set("access-control-allow-methods", "GET, POST, DELETE, OPTIONS");
2583
- headers.set("access-control-expose-headers", "WWW-Authenticate");
2584
+ headers.set("access-control-expose-headers", MCP_CORS_EXPOSED_HEADERS);
2584
2585
  if (request.method === "OPTIONS") headers.set("access-control-allow-headers", MCP_CORS_ALLOWED_HEADERS);
2585
2586
  }
2586
2587
  return new Response(response.body, { status: response.status, statusText: response.statusText, headers });