@miragon/design-iq-mcp 5.5.0 → 5.6.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 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-C47o0L3l.js";
2
+ import { n as createMcpServer, r as todosConfigFromEnv, t as DEFAULT_ROOT } from "./tools-BdyXTS1w.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-C47o0L3l.js";
2
+ import { n as createMcpServer, r as todosConfigFromEnv, t as DEFAULT_ROOT } from "./tools-BdyXTS1w.js";
3
3
  import { existsSync } from "node:fs";
4
4
  import { resolve } from "node:path";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
@@ -540,20 +540,23 @@ function extractWardley(raw) {
540
540
  }
541
541
  function extractTeamTopology(raw) {
542
542
  const data = JSON.parse(raw);
543
+ const list = (v) => Array.isArray(v) ? v : [];
544
+ const teams = list(data.nodes).map((n) => ({
545
+ id: n.id,
546
+ type: n.type ?? "team",
547
+ name: n.label ?? n.name,
548
+ extra: n.description ? { description: n.description } : void 0
549
+ }));
550
+ const interactions = list(data.interactions).filter((i) => i !== null && typeof i === "object" && "position" in i && "size" in i).map((i) => ({
551
+ id: i.id,
552
+ type: "interaction",
553
+ name: i.label,
554
+ extra: { mode: i.mode }
555
+ }));
543
556
  return {
544
557
  notation: "team-topology",
545
- nodes: (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
- 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
- }))
558
+ nodes: [...teams, ...interactions],
559
+ edges: []
557
560
  };
558
561
  }
559
562
  const STORM_ID_PREFIX = {
@@ -804,7 +807,7 @@ function extractValueChain(raw) {
804
807
  nodes: (data.elements ?? []).map((el) => ({
805
808
  id: el.id,
806
809
  type: el.elementType ?? "element",
807
- name: el.label ?? el.name
810
+ name: el.name
808
811
  })),
809
812
  edges: (data.connections ?? []).map((c, i) => ({
810
813
  id: c.id ?? `conn-${i}`,
@@ -1356,9 +1359,10 @@ const DERIVERS = {
1356
1359
  };
1357
1360
  },
1358
1361
  "team-topology": (graph) => {
1362
+ const interactions = graph.nodes.filter((n) => n.type === "interaction").length;
1359
1363
  const stats = {
1360
- teams: graph.nodes.length,
1361
- interactions: graph.edges.length
1364
+ teams: graph.nodes.length - interactions,
1365
+ interactions
1362
1366
  };
1363
1367
  return {
1364
1368
  notation: "team-topology",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miragon/design-iq-mcp",
3
- "version": "5.5.0",
3
+ "version": "5.6.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,10 +49,10 @@
49
49
  "devDependencies": {
50
50
  "@modelcontextprotocol/client": "2.3.1",
51
51
  "tsdown": "0.23.1",
52
- "@designiq/github-app": "0.1.0",
53
- "@designiq/mcp-kit": "0.1.0",
54
- "@designiq/http-kit": "0.1.0",
55
52
  "@designiq/contracts": "0.1.0",
53
+ "@designiq/http-kit": "0.1.0",
54
+ "@designiq/mcp-kit": "0.1.0",
55
+ "@designiq/github-app": "0.1.0",
56
56
  "@designiq/notations": "0.1.0"
57
57
  },
58
58
  "scripts": {