@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/index.js CHANGED
@@ -518,7 +518,7 @@ function outcomeCode(result) {
518
518
  // package.json
519
519
  var package_default = {
520
520
  name: "@tinycloud/mcp",
521
- version: "0.10.0-beta.12",
521
+ version: "0.10.0-beta.14",
522
522
  description: "TinyCloud delegated operations MCP server",
523
523
  keywords: [
524
524
  "tinycloud",
@@ -589,9 +589,9 @@ var package_default = {
589
589
  dependencies: {
590
590
  "@modelcontextprotocol/node": "2.0.0-beta.5",
591
591
  "@modelcontextprotocol/server": "2.0.0-beta.5",
592
- "@tinycloud/node-sdk": "3.12.0-beta.5",
592
+ "@tinycloud/node-sdk": "3.12.0-beta.7",
593
593
  "@tinycloud/node-sdk-wasm": "1.7.8",
594
- "@tinycloud/operations": "0.9.0-beta.9",
594
+ "@tinycloud/operations": "0.9.0-beta.10",
595
595
  jose: "6.2.4"
596
596
  },
597
597
  devDependencies: {
@@ -2217,6 +2217,7 @@ function samePendingRequest(pending, expected) {
2217
2217
  // src/http.ts
2218
2218
  var REQUIRED_SCOPE = "tinycloud:mcp";
2219
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";
2220
2221
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2221
2222
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2222
2223
  function createHostedMcpApp(config) {
@@ -2730,7 +2731,7 @@ function mcpCors(response, request) {
2730
2731
  if (request.headers.has("origin")) {
2731
2732
  headers.set("access-control-allow-origin", "*");
2732
2733
  headers.set("access-control-allow-methods", "GET, POST, DELETE, OPTIONS");
2733
- headers.set("access-control-expose-headers", "WWW-Authenticate");
2734
+ headers.set("access-control-expose-headers", MCP_CORS_EXPOSED_HEADERS);
2734
2735
  if (request.method === "OPTIONS") headers.set("access-control-allow-headers", MCP_CORS_ALLOWED_HEADERS);
2735
2736
  }
2736
2737
  return new Response(response.body, { status: response.status, statusText: response.statusText, headers });