@eventcatalog/core 3.3.1 → 3.4.0

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.
@@ -45,15 +45,11 @@ export async function getStaticPaths() {
45
45
  }
46
46
 
47
47
  export const GET: APIRoute = async ({ params, props }) => {
48
- console.log('props', props);
49
-
50
48
  // Just return empty array if LLMs are not enabled
51
49
  if (!isLLMSTxtEnabled()) {
52
50
  return new Response('llms.txt is not enabled for this Catalog.', { status: 404 });
53
51
  }
54
52
 
55
- console.log('params', params);
56
-
57
53
  if (isSSR()) {
58
54
  const { getResourcePath } = utils(process.env.PROJECT_DIR ?? '');
59
55
  const filePath = await getResourcePath(process.env.PROJECT_DIR ?? '', params.id ?? '', params.version ?? '');
@@ -69,3 +69,5 @@ export const isCustomStylesEnabled = () => {
69
69
  };
70
70
 
71
71
  export const isDiagramComparisonEnabled = () => isEventCatalogScaleEnabled();
72
+
73
+ export const isEventCatalogMCPEnabled = () => isEventCatalogScaleEnabled() && isSSR();
@@ -22,5 +22,5 @@
22
22
  "jsxImportSource": "react",
23
23
  "types": ["vitest/globals"]
24
24
  },
25
- "exclude": ["**/*.spec.ts", "**/*.test.ts"]
25
+ "include": ["src/**/*", "*.config.*"]
26
26
  }
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.3.1",
9
+ "version": "3.4.0",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -41,6 +41,7 @@
41
41
  "@heroicons/react": "^2.1.3",
42
42
  "@iconify-json/logos": "^1.2.4",
43
43
  "@mermaid-js/layout-elk": "^0.2.0",
44
+ "@modelcontextprotocol/sdk": "^1.25.2",
44
45
  "@nanostores/react": "^1.0.0",
45
46
  "@parcel/watcher": "^2.4.1",
46
47
  "@radix-ui/react-context-menu": "^2.2.6",
@@ -72,6 +73,7 @@
72
73
  "elkjs": "^0.10.0",
73
74
  "glob": "^10.5.0",
74
75
  "gray-matter": "^4.0.3",
76
+ "hono": "^4.11.3",
75
77
  "html-to-image": "^1.11.11",
76
78
  "js-yaml": "^4.1.1",
77
79
  "jsonpath": "^1.1.1",