@eventcatalog/core 3.17.3 → 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.
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-3NDVIDOJ.js → chunk-7N35ESMH.js} +1 -1
- package/dist/{chunk-EZ23DY3F.js → chunk-CSCCSFEV.js} +1 -1
- package/dist/{chunk-PO2MP3RE.js → chunk-JB32XRPB.js} +1 -1
- package/dist/{chunk-43IDYZCH.js → chunk-JR3DP5PU.js} +1 -1
- package/dist/{chunk-Y42PMQ5L.js → chunk-VY646YFE.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/enterprise/mcp/mcp-server.ts +11 -17
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JB32XRPB.js";
|
|
4
|
+
import "../chunk-VY646YFE.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-7N35ESMH.js";
|
|
7
7
|
import "../chunk-5T63CXKU.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
117
|
+
var version = "3.17.6";
|
|
118
118
|
|
|
119
119
|
// src/constants.ts
|
|
120
120
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
25
|
+
} from "./chunk-CSCCSFEV.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JR3DP5PU.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7N35ESMH.js";
|
|
32
32
|
import {
|
|
33
33
|
getEventCatalogConfigFile,
|
|
34
34
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -433,16 +433,8 @@ function createMcpServer() {
|
|
|
433
433
|
return server;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
//
|
|
437
|
-
|
|
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
|
-
//
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
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.
|
|
9
|
+
"version": "3.17.6",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@ai-sdk/react": "^3.0.17",
|
|
24
24
|
"@astrojs/markdown-remark": "^6.3.10",
|
|
25
25
|
"@astrojs/mdx": "^4.3.13",
|
|
26
|
-
"@astrojs/node": "^9.5.
|
|
26
|
+
"@astrojs/node": "^9.5.4",
|
|
27
27
|
"@astrojs/react": "^4.4.2",
|
|
28
28
|
"@astrojs/rss": "^4.0.15",
|
|
29
29
|
"@astrojs/tailwind": "^6.0.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@tanstack/react-table": "^8.17.3",
|
|
51
51
|
"@xyflow/react": "^12.3.6",
|
|
52
52
|
"ai": "^6.0.17",
|
|
53
|
-
"astro": "^5.17.
|
|
53
|
+
"astro": "^5.17.3",
|
|
54
54
|
"astro-compress": "^2.3.8",
|
|
55
55
|
"astro-expressive-code": "^0.41.3",
|
|
56
56
|
"astro-seo": "^0.8.4",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"uuid": "^10.0.0",
|
|
103
103
|
"zod": "^3.25.0",
|
|
104
104
|
"@eventcatalog/linter": "1.0.7",
|
|
105
|
-
"@eventcatalog/sdk": "2.
|
|
106
|
-
"@eventcatalog/visualiser": "^3.14.
|
|
105
|
+
"@eventcatalog/sdk": "2.15.0",
|
|
106
|
+
"@eventcatalog/visualiser": "^3.14.1"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@astrojs/check": "^0.9.6",
|