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