sunpeak 0.18.12 → 0.18.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/bin/commands/start.mjs +2 -1
- package/dist/mcp/index.cjs +2 -0
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/production-server.d.ts +12 -0
- package/package.json +1 -1
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.json +1 -1
package/bin/commands/start.mjs
CHANGED
|
@@ -44,6 +44,7 @@ export async function start(projectRoot = process.cwd(), args = []) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
const jsonLogs = args.includes('--json-logs');
|
|
47
|
+
const sse = args.includes('--sse');
|
|
47
48
|
|
|
48
49
|
// Import production server from sunpeak
|
|
49
50
|
const isTemplate = projectRoot.endsWith('/template') || projectRoot.endsWith('\\template');
|
|
@@ -191,7 +192,7 @@ export async function start(projectRoot = process.cwd(), args = []) {
|
|
|
191
192
|
console.log(`\nStarting ${name} v${version} on ${host}:${port}...`);
|
|
192
193
|
|
|
193
194
|
startProductionHttpServer(
|
|
194
|
-
{ name, version, serverInfo: serverConfig, tools, resources, auth },
|
|
195
|
+
{ name, version, serverInfo: serverConfig, tools, resources, auth, ...(sse ? { enableJsonResponse: false } : {}) },
|
|
195
196
|
{ port, host }
|
|
196
197
|
);
|
|
197
198
|
}
|
package/dist/mcp/index.cjs
CHANGED
|
@@ -9970,6 +9970,7 @@ function createMcpHandler(config) {
|
|
|
9970
9970
|
const server = createProductionMcpServer(config);
|
|
9971
9971
|
const transport = new StreamableHTTPServerTransport({
|
|
9972
9972
|
sessionIdGenerator: () => (0, node_crypto.randomUUID)(),
|
|
9973
|
+
enableJsonResponse: config.enableJsonResponse ?? true,
|
|
9973
9974
|
onsessioninitialized: (id) => {
|
|
9974
9975
|
sessions.set(id, {
|
|
9975
9976
|
server,
|
|
@@ -10101,6 +10102,7 @@ function createHandler(config) {
|
|
|
10101
10102
|
});
|
|
10102
10103
|
const transport = new WebStandardStreamableHTTPServerTransport({
|
|
10103
10104
|
sessionIdGenerator: () => (0, node_crypto.randomUUID)(),
|
|
10105
|
+
enableJsonResponse: config.enableJsonResponse ?? true,
|
|
10104
10106
|
onsessioninitialized: (id) => {
|
|
10105
10107
|
sessions.set(id, {
|
|
10106
10108
|
server,
|