@eventcatalog/core 5.2.0 → 5.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.
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/count-resources.cjs +10 -0
- package/dist/analytics/count-resources.js +1 -1
- package/dist/analytics/log-build.cjs +11 -1
- package/dist/analytics/log-build.js +4 -4
- package/dist/{chunk-DJCOJ77J.js → chunk-7RJN4FNG.js} +1 -1
- package/dist/{chunk-RNYFUWJI.js → chunk-EPDVXHC7.js} +4 -4
- package/dist/{chunk-XI5HQWM2.js → chunk-O2K4VPDO.js} +1 -1
- package/dist/{chunk-N2LLD5TR.js → chunk-OT2U5OES.js} +1 -1
- package/dist/{chunk-QJ7KKN2D.js → chunk-OX6TSVHY.js} +1 -1
- package/dist/{chunk-66OL4B7U.js → chunk-PAS36QHK.js} +1 -1
- package/dist/{chunk-NBYKF4Z4.js → chunk-TERJXCLK.js} +1 -1
- package/dist/{chunk-ZAZHAVKB.js → chunk-YRZK7HKX.js} +10 -0
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/docs/development/ask-your-architecture/03-mcp-server/getting-started.md +1 -1
- package/dist/docs/development/developer-tools/api-catalog.md +0 -2
- package/dist/docs/development/export/01-introduction.md +1 -1
- package/dist/docs/development/export/04-reference.md +1 -1
- package/dist/docs/development/guides/fitness-functions/01-what-are-fitness-functions.md +116 -0
- package/dist/docs/development/guides/fitness-functions/02-create-fitness-function.md +222 -0
- package/dist/docs/development/guides/fitness-functions/03-global-and-resource-functions.md +198 -0
- package/dist/docs/development/guides/fitness-functions/04-run-in-ci.md +223 -0
- package/dist/docs/development/guides/fitness-functions/05-api-reference.md +271 -0
- package/dist/docs/development/guides/fitness-functions/06-examples.md +354 -0
- package/dist/docs/development/guides/fitness-functions/_category_.json +11 -0
- package/dist/docs/development/guides/owners/05-teams-reference.md +0 -12
- package/dist/docs/development/guides/owners/06-users-reference.md +0 -12
- package/dist/docs/development/upgrading/v5.md +1 -1
- package/dist/eventcatalog.cjs +26 -2
- package/dist/eventcatalog.js +28 -14
- package/dist/federation/federate.js +3 -3
- package/dist/federation/source-provider.js +2 -2
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/runtime-dependencies/@eventcatalog__fitness.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__client.mjs +3 -0
- package/dist/runtime-dependencies/@modelcontextprotocol__server.mjs +3 -0
- package/dist/runtime-dependencies/manifest.json +3 -4
- package/dist/search-indexer.cjs +1 -1
- package/dist/search-indexer.js +1 -1
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/content.config.ts +0 -3
- package/eventcatalog/src/features/collections/resource-docs.ts +0 -1
- package/eventcatalog/src/features/mcp/apps/generated/canvas.html +73 -74
- package/eventcatalog/src/features/mcp/apps/generated/viewer.html +71 -73
- package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +1 -1
- package/eventcatalog/src/features/mcp/custom-tool-input.ts +38 -0
- package/eventcatalog/src/features/mcp/mcp-apps.ts +6 -4
- package/eventcatalog/src/features/mcp/mcp-scope.ts +2 -3
- package/eventcatalog/src/features/mcp/mcp-server.ts +24 -17
- package/eventcatalog/src/features/studio/server/canvas-mcp.ts +2 -4
- package/eventcatalog/src/features/tools/catalog-tools.ts +6 -8
- package/eventcatalog/src/pages/api-catalog/specifications/[collection]/[id]/[version]/[specification].ts +2 -4
- package/eventcatalog/src/utils/collections/adrs.ts +0 -1
- package/eventcatalog/src/utils/collections/agents.ts +0 -1
- package/eventcatalog/src/utils/collections/channels.ts +0 -1
- package/eventcatalog/src/utils/collections/commands.ts +0 -1
- package/eventcatalog/src/utils/collections/containers.ts +0 -1
- package/eventcatalog/src/utils/collections/domains.ts +0 -2
- package/eventcatalog/src/utils/collections/entities.ts +0 -1
- package/eventcatalog/src/utils/collections/events.ts +0 -1
- package/eventcatalog/src/utils/collections/flows.ts +0 -2
- package/eventcatalog/src/utils/collections/owners.ts +1 -4
- package/eventcatalog/src/utils/collections/queries.ts +0 -1
- package/eventcatalog/src/utils/collections/resource-docs.ts +1 -5
- package/eventcatalog/src/utils/collections/resource-owners.ts +1 -2
- package/eventcatalog/src/utils/collections/services.ts +0 -1
- package/eventcatalog/src/utils/collections/systems.ts +0 -1
- package/eventcatalog/src/utils/collections/teams.ts +3 -6
- package/eventcatalog/src/utils/collections/users.ts +4 -8
- package/eventcatalog/src/utils/homepage-dashboard.ts +2 -3
- package/eventcatalog/src/utils/node-graphs/flow-lanes.ts +2 -6
- package/package.json +9 -6
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk.mjs +0 -3
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk__server__mcp.js.mjs +0 -3
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk__server__webStandardStreamableHttp.js.mjs +0 -3
- package/dist/runtime-dependencies/@modelcontextprotocol__sdk__types.js.mjs +0 -3
- package/eventcatalog/src/features/studio/server/tool-icons.ts +0 -30
- package/dist/{chunk-A2RZR3U4.js → chunk-6K7XZAYI.js} +3 -3
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
|
|
3
|
-
/** A tool icon (MCP 2025-11-25) */
|
|
4
|
-
export type ToolIcon = { src: string; mimeType?: string; sizes?: string[] };
|
|
5
|
-
type ListTools = (request: unknown, extra: unknown) => Promise<{ tools: { name: string }[] }>;
|
|
6
|
-
|
|
7
|
-
/** The SDK's request handlers (private in SDK 1.x, so checked rather than assumed) */
|
|
8
|
-
const getRequestHandlers = (server: McpServer): Map<string, ListTools> | undefined => {
|
|
9
|
-
const handlers: unknown = Reflect.get(server.server, '_requestHandlers');
|
|
10
|
-
return handlers instanceof Map ? handlers : undefined;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Adds icons to tools in tools/list (MCP 2025-11-25 tool icons, which ChatGPT shows on entrypoints). The MCP
|
|
15
|
-
* TypeScript SDK 1.x doesn't list tool icons, so this wraps its tools/list handler. If a new SDK changes how
|
|
16
|
-
* it keeps handlers, tools are listed without icons and this says so.
|
|
17
|
-
*/
|
|
18
|
-
export const addToolIcons = (server: McpServer, icons: Record<string, ToolIcon[]>) => {
|
|
19
|
-
const handlers = getRequestHandlers(server);
|
|
20
|
-
const listTools = handlers?.get('tools/list');
|
|
21
|
-
if (!handlers || !listTools) {
|
|
22
|
-
console.warn('[EventCatalog MCP] Could not add tool icons: the MCP SDK no longer exposes its tools/list handler');
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
handlers.set('tools/list', async (request, extra) => {
|
|
26
|
-
const result = await listTools(request, extra);
|
|
27
|
-
return { ...result, tools: result.tools.map((tool) => (icons[tool.name] ? { ...tool, icons: icons[tool.name] } : tool)) };
|
|
28
|
-
});
|
|
29
|
-
return true;
|
|
30
|
-
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createFileSystemSourceProvider
|
|
3
|
-
} from "./chunk-SDZQJTJW.js";
|
|
4
1
|
import {
|
|
5
2
|
createGitHubSourceProvider
|
|
6
3
|
} from "./chunk-352FGP6W.js";
|
|
4
|
+
import {
|
|
5
|
+
createFileSystemSourceProvider
|
|
6
|
+
} from "./chunk-SDZQJTJW.js";
|
|
7
7
|
|
|
8
8
|
// src/federation/source-provider.ts
|
|
9
9
|
var createFederationSourceProvider = (projectDirectory, providers = {}) => {
|