sunpeak 0.18.12 → 0.18.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.
@@ -77,6 +77,12 @@ export interface ProductionServerConfig {
77
77
  * may trigger host warnings (e.g. ChatGPT's "Widget domain is not set").
78
78
  */
79
79
  serverUrl?: string;
80
+ /**
81
+ * Respond with JSON instead of SSE streams.
82
+ * Recommended for serverless environments (Lambda, Workers, Vercel Edge)
83
+ * where holding open SSE connections is unreliable. Defaults to `true`.
84
+ */
85
+ enableJsonResponse?: boolean;
80
86
  }
81
87
  /**
82
88
  * Configuration for creating a Web Standard MCP handler (serverless/edge).
@@ -101,6 +107,12 @@ export interface WebHandlerConfig {
101
107
  * may trigger host warnings (e.g. ChatGPT's "Widget domain is not set").
102
108
  */
103
109
  serverUrl?: string;
110
+ /**
111
+ * Respond with JSON instead of SSE streams.
112
+ * Recommended for serverless environments (Lambda, Workers, Vercel Edge)
113
+ * where holding open SSE connections is unreliable. Defaults to `true`.
114
+ */
115
+ enableJsonResponse?: boolean;
104
116
  }
105
117
  /**
106
118
  * Create an MCP server with production tool handlers and pre-built resources.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunpeak",
3
- "version": "0.18.12",
3
+ "version": "0.18.14",
4
4
  "description": "Inspector, testing framework, and app framework for MCP Apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -12,5 +12,5 @@
12
12
  }
13
13
  },
14
14
  "name": "albums",
15
- "uri": "ui://albums-mngbpj1f"
15
+ "uri": "ui://albums-mnhsyu53"
16
16
  }
@@ -12,5 +12,5 @@
12
12
  }
13
13
  },
14
14
  "name": "carousel",
15
- "uri": "ui://carousel-mngbpj1f"
15
+ "uri": "ui://carousel-mnhsyu53"
16
16
  }
@@ -18,5 +18,5 @@
18
18
  }
19
19
  },
20
20
  "name": "map",
21
- "uri": "ui://map-mngbpj1f"
21
+ "uri": "ui://map-mnhsyu53"
22
22
  }
@@ -12,5 +12,5 @@
12
12
  }
13
13
  },
14
14
  "name": "review",
15
- "uri": "ui://review-mngbpj1f"
15
+ "uri": "ui://review-mnhsyu53"
16
16
  }