@eventcatalog/core 3.17.5 → 3.17.6

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.
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.17.5";
40
+ var version = "3.17.6";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-VWSQYMKF.js";
4
- import "../chunk-6LCHHROP.js";
3
+ } from "../chunk-VY646YFE.js";
4
+ import "../chunk-7N35ESMH.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.17.5";
114
+ var version = "3.17.6";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-MJVOXKKM.js";
4
- import "../chunk-VWSQYMKF.js";
3
+ } from "../chunk-JB32XRPB.js";
4
+ import "../chunk-VY646YFE.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-6LCHHROP.js";
6
+ import "../chunk-7N35ESMH.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.17.5";
2
+ var version = "3.17.6";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-O6SVMZR3.js";
3
+ } from "./chunk-JR3DP5PU.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-VWSQYMKF.js";
3
+ } from "./chunk-VY646YFE.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-6LCHHROP.js";
3
+ } from "./chunk-7N35ESMH.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-6LCHHROP.js";
3
+ } from "./chunk-7N35ESMH.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.17.5";
28
+ var version = "3.17.6";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-6LCHHROP.js";
3
+ } from "./chunk-7N35ESMH.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -114,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
114
114
  var import_picocolors = __toESM(require("picocolors"), 1);
115
115
 
116
116
  // package.json
117
- var version = "3.17.5";
117
+ var version = "3.17.6";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-MJVOXKKM.js";
10
- import "./chunk-VWSQYMKF.js";
9
+ } from "./chunk-JB32XRPB.js";
10
+ import "./chunk-VY646YFE.js";
11
11
  import "./chunk-4UVFXLPI.js";
12
12
  import {
13
13
  runMigrations
@@ -22,13 +22,13 @@ import {
22
22
  } from "./chunk-3KXCGYET.js";
23
23
  import {
24
24
  generate
25
- } from "./chunk-LLGEQ4MZ.js";
25
+ } from "./chunk-CSCCSFEV.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-O6SVMZR3.js";
28
+ } from "./chunk-JR3DP5PU.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-6LCHHROP.js";
31
+ } from "./chunk-7N35ESMH.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.17.5";
81
+ var version = "3.17.6";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-LLGEQ4MZ.js";
4
- import "./chunk-O6SVMZR3.js";
5
- import "./chunk-6LCHHROP.js";
3
+ } from "./chunk-CSCCSFEV.js";
4
+ import "./chunk-JR3DP5PU.js";
5
+ import "./chunk-7N35ESMH.js";
6
6
  import "./chunk-5T63CXKU.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.17.5";
39
+ var version = "3.17.6";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-O6SVMZR3.js";
4
- import "../chunk-6LCHHROP.js";
3
+ } from "../chunk-JR3DP5PU.js";
4
+ import "../chunk-7N35ESMH.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -433,16 +433,8 @@ function createMcpServer() {
433
433
  return server;
434
434
  }
435
435
 
436
- // Create a single MCP server instance
437
- const mcpServer = createMcpServer();
438
-
439
- // Create transport for handling requests
440
- const transport = new WebStandardStreamableHTTPServerTransport({
441
- sessionIdGenerator: undefined, // Stateless mode
442
- });
443
-
444
- // Connect the server to the transport
445
- let isConnected = false;
436
+ // MCP server and transport are created per-request to avoid
437
+ // "Stateless transport cannot be reused across requests" errors.
446
438
 
447
439
  // Create Hono app for MCP routes
448
440
  const app = new Hono().basePath('/docs/mcp');
@@ -478,13 +470,15 @@ app.get('/', async (c: Context) => {
478
470
  // MCP protocol endpoint - handles POST requests for MCP protocol
479
471
  app.post('/', async (c: Context) => {
480
472
  try {
481
- // Connect server to transport if not already connected
482
- if (!isConnected) {
483
- await mcpServer.connect(transport);
484
- isConnected = true;
485
- }
486
-
487
- // Handle the MCP request using the web standard transport
473
+ // Create fresh server and transport per request the MCP SDK's
474
+ // WebStandardStreamableHTTPServerTransport is single-use in stateless
475
+ // mode: it sets _hasHandledRequest=true after the first call and throws
476
+ // on any subsequent request. McpServer equally rejects reconnection.
477
+ const server = createMcpServer();
478
+ const transport = new WebStandardStreamableHTTPServerTransport({
479
+ sessionIdGenerator: undefined,
480
+ });
481
+ await server.connect(transport);
488
482
  return await transport.handleRequest(c.req.raw);
489
483
  } catch (error) {
490
484
  console.error('MCP request error:', error);
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "3.17.5",
9
+ "version": "3.17.6",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -101,7 +101,7 @@
101
101
  "update-notifier": "^7.3.1",
102
102
  "uuid": "^10.0.0",
103
103
  "zod": "^3.25.0",
104
- "@eventcatalog/linter": "1.0.8",
104
+ "@eventcatalog/linter": "1.0.7",
105
105
  "@eventcatalog/sdk": "2.15.0",
106
106
  "@eventcatalog/visualiser": "^3.14.1"
107
107
  },