@miragon/design-iq-mcp 5.5.0 → 5.7.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/http.js +1 -1
- package/dist/server.js +1 -1
- package/dist/{tools-C47o0L3l.js → tools-CRI4d2yp.js} +21 -15
- package/package.json +4 -4
package/dist/http.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as createMcpServer, r as todosConfigFromEnv, t as DEFAULT_ROOT } from "./tools-
|
|
2
|
+
import { n as createMcpServer, r as todosConfigFromEnv, t as DEFAULT_ROOT } from "./tools-CRI4d2yp.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
import { timingSafeEqual } from "node:crypto";
|
|
5
5
|
import { NodeStreamableHTTPServerTransport } from "@modelcontextprotocol/node";
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as createMcpServer, r as todosConfigFromEnv, t as DEFAULT_ROOT } from "./tools-
|
|
2
|
+
import { n as createMcpServer, r as todosConfigFromEnv, t as DEFAULT_ROOT } from "./tools-CRI4d2yp.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
|
|
@@ -538,22 +538,27 @@ function extractWardley(raw) {
|
|
|
538
538
|
edges
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
+
const TT_EDGE_INTERACTIONS_VERSION = 1;
|
|
541
542
|
function extractTeamTopology(raw) {
|
|
542
543
|
const data = JSON.parse(raw);
|
|
544
|
+
const list = (v) => Array.isArray(v) ? v : [];
|
|
545
|
+
const teams = list(data.nodes).map((n) => ({
|
|
546
|
+
id: n.id,
|
|
547
|
+
type: n.type ?? "team",
|
|
548
|
+
name: n.label ?? n.name,
|
|
549
|
+
extra: n.description ? { description: n.description } : void 0
|
|
550
|
+
}));
|
|
551
|
+
const placed = (i) => "position" in i && "size" in i;
|
|
552
|
+
const interactions = list(data.interactions).filter((i) => i !== null && typeof i === "object").filter((i) => data.version !== TT_EDGE_INTERACTIONS_VERSION || placed(i)).map((i) => ({
|
|
553
|
+
id: i.id,
|
|
554
|
+
type: "interaction",
|
|
555
|
+
name: i.label,
|
|
556
|
+
extra: { mode: i.mode }
|
|
557
|
+
}));
|
|
543
558
|
return {
|
|
544
559
|
notation: "team-topology",
|
|
545
|
-
nodes:
|
|
546
|
-
|
|
547
|
-
type: n.type ?? "team",
|
|
548
|
-
name: n.label ?? n.name,
|
|
549
|
-
extra: n.description ? { description: n.description } : void 0
|
|
550
|
-
})),
|
|
551
|
-
edges: (data.edges ?? []).map((e, i) => ({
|
|
552
|
-
id: e.id ?? `edge-${i}`,
|
|
553
|
-
from: e.source ?? e.from,
|
|
554
|
-
to: e.target ?? e.to,
|
|
555
|
-
kind: e.interaction ?? e.type ?? "interaction"
|
|
556
|
-
}))
|
|
560
|
+
nodes: [...teams, ...interactions],
|
|
561
|
+
edges: []
|
|
557
562
|
};
|
|
558
563
|
}
|
|
559
564
|
const STORM_ID_PREFIX = {
|
|
@@ -804,7 +809,7 @@ function extractValueChain(raw) {
|
|
|
804
809
|
nodes: (data.elements ?? []).map((el) => ({
|
|
805
810
|
id: el.id,
|
|
806
811
|
type: el.elementType ?? "element",
|
|
807
|
-
name: el.
|
|
812
|
+
name: el.name
|
|
808
813
|
})),
|
|
809
814
|
edges: (data.connections ?? []).map((c, i) => ({
|
|
810
815
|
id: c.id ?? `conn-${i}`,
|
|
@@ -1356,9 +1361,10 @@ const DERIVERS = {
|
|
|
1356
1361
|
};
|
|
1357
1362
|
},
|
|
1358
1363
|
"team-topology": (graph) => {
|
|
1364
|
+
const interactions = graph.nodes.filter((n) => n.type === "interaction").length;
|
|
1359
1365
|
const stats = {
|
|
1360
|
-
teams: graph.nodes.length,
|
|
1361
|
-
interactions
|
|
1366
|
+
teams: graph.nodes.length - interactions,
|
|
1367
|
+
interactions
|
|
1362
1368
|
};
|
|
1363
1369
|
return {
|
|
1364
1370
|
notation: "team-topology",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miragon/design-iq-mcp",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "Read-only MCP server exposing a designIQ content repo's models — BPMN processes, DMN decisions, Wardley Maps, Team Topologies, Event Storming boards, Context Maps and more — to any MCP client. Discovered from designiq.yml, views derived from the models.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@modelcontextprotocol/client": "2.3.1",
|
|
51
51
|
"tsdown": "0.23.1",
|
|
52
|
+
"@designiq/contracts": "0.1.0",
|
|
52
53
|
"@designiq/github-app": "0.1.0",
|
|
53
|
-
"@designiq/mcp-kit": "0.1.0",
|
|
54
54
|
"@designiq/http-kit": "0.1.0",
|
|
55
|
-
"@designiq/
|
|
56
|
-
"@designiq/
|
|
55
|
+
"@designiq/notations": "0.1.0",
|
|
56
|
+
"@designiq/mcp-kit": "0.1.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"start": "node server.ts",
|