@tinycloud/mcp 0.10.0-beta.12 → 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
@@ -555,7 +555,7 @@ function outcomeCode(result) {
555
555
  // package.json
556
556
  var package_default = {
557
557
  name: "@tinycloud/mcp",
558
- version: "0.10.0-beta.12",
558
+ version: "0.10.0-beta.13",
559
559
  description: "TinyCloud delegated operations MCP server",
560
560
  keywords: [
561
561
  "tinycloud",
@@ -2230,6 +2230,7 @@ function samePendingRequest(pending, expected) {
2230
2230
  // src/http.ts
2231
2231
  var REQUIRED_SCOPE = "tinycloud:mcp";
2232
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";
2233
2234
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2234
2235
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2235
2236
  function createHostedMcpApp(config) {
@@ -2743,7 +2744,7 @@ function mcpCors(response, request) {
2743
2744
  if (request.headers.has("origin")) {
2744
2745
  headers.set("access-control-allow-origin", "*");
2745
2746
  headers.set("access-control-allow-methods", "GET, POST, DELETE, OPTIONS");
2746
- headers.set("access-control-expose-headers", "WWW-Authenticate");
2747
+ headers.set("access-control-expose-headers", MCP_CORS_EXPOSED_HEADERS);
2747
2748
  if (request.method === "OPTIONS") headers.set("access-control-allow-headers", MCP_CORS_ALLOWED_HEADERS);
2748
2749
  }
2749
2750
  return new Response(response.body, { status: response.status, statusText: response.statusText, headers });