AI Slop Code Risk Monitor

jgraph/drawio-mcp

SlopCodeMonitor badge for jgraph/drawio-mcp Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
5.5 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for jgraph/drawio-mcp, a JavaScript project with 5,745 GitHub stars. SynthScan examined 33,704 lines of code across 116 source files, recording 109 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 5.5 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.5
Adjusted Signal
5.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.7K
Stars
JavaScript
Language
33.7K
Lines of Code
116
Files
109
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 7.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 66 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 19.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 57 finding(s).

PR Review Velocity Impact 25.1/100 · MEDIUM

Which changes need focused human review? 109 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 43LOW 66

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 109 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators43 hits · 129 pts
SeverityFileLineSnippetContext
MEDIUMmcp-tool-server/test/libavoid-pass.test.js60// ─── No-ops ──────────────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js73// ─── Routing ─────────────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js128// ─── Pages (#73) ─────────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js128// ─── Pages (#73) ─────────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js170// ─── Wrapped cells ───────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js203// ─── Determinism ─────────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js254// ─── Unroutable connectors ───────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/libavoid-pass.test.js312// ─── Rotated shapes ──────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/mermaid-elk.test.js9// ─── Diagram type (drawio-dev's getMermaidDiagramType) ───────────COMMENT
MEDIUMmcp-tool-server/test/mermaid-elk.test.js37// ─── Selecting the ELK layout ────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/mermaid-elk.test.js96// ─── The trigger draw.io actually uses ───────────────────────────COMMENT
MEDIUMmcp-tool-server/test/elk-pass.test.js63// ─── No-ops (no ELK bundle needed) ───────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/elk-pass.test.js74// ─── Layout ──────────────────────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/elk-pass.test.js267// ─── Headless mxGraph shim ───────────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/normalize-model.test.js166// ─── Entities in attribute values ────────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/normalize-model.test.js230// ─── Edges written without a geometry ────────────────────────────COMMENT
MEDIUMmcp-tool-server/test/normalize-model.test.js255// ─── Containers that clip their children ─────────────────────────COMMENT
MEDIUMmcp-tool-server/src/elk-pass.js57// ─── Layout ──────────────────────────────────────────────────────COMMENT
MEDIUMshape-search/generate-index.js58// ── Create jsdom with minimal stubs ──────────────────────────────────────────COMMENT
MEDIUMshape-search/generate-index.js157// ── Load app.min.js ──────────────────────────────────────────────────────────COMMENT
MEDIUMshape-search/generate-index.js171// ── Intercept template entry calls ───────────────────────────────────────────COMMENT
MEDIUMshape-search/generate-index.js227// ── Build a minimal Sidebar and run initPalettes ─────────────────────────────COMMENT
MEDIUMshape-search/generate-index.js324// ── Run initPalettes to trigger all shape registrations ──────────────────────COMMENT
MEDIUMshape-search/generate-index.js339// ── Deduplicate by style string ──────────────────────────────────────────────COMMENT
MEDIUMshape-search/generate-index.js357// ── Derive titles for shapes that have tags but no title ────────────────────COMMENT
MEDIUMshape-search/generate-index.js455// ── Write output ─────────────────────────────────────────────────────────────COMMENT
MEDIUMshared/shape-search.js1// ── Shape search ─────────────────────────────────────────────────────────────COMMENT
MEDIUMshared/mx-xml.js21// ─── Parsing ─────────────────────────────────────────────────────COMMENT
MEDIUMshared/mx-xml.js239// ─── Model construction ──────────────────────────────────────────COMMENT
MEDIUMshared/mx-xml.js347// ─── Write-back ──────────────────────────────────────────────────COMMENT
MEDIUMshared/icon-search.js1// ── Icon search ──────────────────────────────────────────────────────────────COMMENT
MEDIUMshared/mx-model.js31// ─── mxGraph globals ─────────────────────────────────────────────COMMENT
MEDIUMshared/mx-model.js137// ─── Model ───────────────────────────────────────────────────────COMMENT
MEDIUMshared/mx-model.js646// ─── Graph ───────────────────────────────────────────────────────COMMENT
MEDIUMshared/mx-model.js786// ─── Normalization (mirrors Graph.prototype.normalizeModel) ──────COMMENT
MEDIUMmcp-app-server/src/worker.js61// ── Sessions ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMmcp-app-server/src/worker.js165// ── MCP ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMmcp-app-server/src/shared.js1283// ─── Layout gate ─────────────────────────────────────────────────COMMENT
MEDIUMmcp-app-server/src/shared.js7530// ── Diagram validation ───────────────────────────────────────────────────────COMMENT
MEDIUMmcp-app-server/src/shared.js7696// ── Fallback for clients without an MCP Apps UI ──────────────────────────────COMMENT
MEDIUMmcp-app-server/src/shared.js7884// ── Server ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMmcp-app-server/src/shared.js8219 // ── search_shapes tool (only registered when shapeIndex is provided) ───────COMMENT
MEDIUMmcp-app-server/src/shared.js8313 // ── get_drawio_reference tool ────────────────────────────────────────────────COMMENT
Over-Commented Block52 hits · 42 pts
SeverityFileLineSnippetContext
LOWmcp-tool-server/src/elk-engine.js1// Loads the drawio-elk bundle (ELK engine + mxGraph bridge) for theCOMMENT
LOWmcp-tool-server/src/index.js81// Copilot embeds descriptions in batches for its tool search, and oneCOMMENT
LOWmcp-tool-server/src/index.js101// and then kept in memory for the process lifetime. In-repo checkouts readCOMMENT
LOWmcp-tool-server/src/libavoid-pass.js1// Server-side libavoid edge-routing pass for open_drawio_xml.COMMENT
LOWmcp-tool-server/src/libavoid-pass.js21const __dirname = dirname(fileURLToPath(import.meta.url));COMMENT
LOWmcp-tool-server/src/cdn-cache.js1// Local cache for browser sources loaded from the draw.io CDN, withCOMMENT
LOWmcp-tool-server/src/cdn-cache.js21// npm's postinstall primes the routing core (src/postinstall.js) so the firstCOMMENT
LOWmcp-tool-server/src/elk-pass.js1// Server-side ELK layout pass for open_drawio_xml (`postLayout: "elk"`).COMMENT
LOW…ugins/claude-code/skills/drawio/scripts/find-shapes.js1// Looks up draw.io shape styles for icons, so the skill never guesses mxgraph.*COMMENT
LOWplugins/copilot/skills/drawio/scripts/find-shapes.js1// Looks up draw.io shape styles for icons, so the skill never guesses mxgraph.*COMMENT
LOWplugins/cursor/skills/drawio/scripts/find-shapes.js1// Looks up draw.io shape styles for icons, so the skill never guesses mxgraph.*COMMENT
LOW…gins/codex/drawio/skills/drawio/scripts/find-shapes.js1// Looks up draw.io shape styles for icons, so the skill never guesses mxgraph.*COMMENT
LOW…ugins/antigravity/skills/drawio/scripts/find-shapes.js1// Looks up draw.io shape styles for icons, so the skill never guesses mxgraph.*COMMENT
LOWshared/mx-xml.js1// mxGraphModel XML <-> headless model, for the server-side diagram passes.COMMENT
LOWshared/icon-search.js1// ── Icon search ──────────────────────────────────────────────────────────────COMMENT
LOWshared/label-perimeter.js1// Edges that end at labels outside the shape, for generated diagrams.COMMENT
LOWshared/label-perimeter.js81// and defaultLabelBackgroundColor=page (Transparent in its Text tab)COMMENT
LOWshared/mx-model.js1// Headless mxGraph model for the servers' diagram passes.COMMENT
LOWshared/normalize-model.js1// Model normalization for generated diagrams.COMMENT
LOWshared/normalize-model.js21// Two more mistakes travel with the same diagrams and are repaired in theCOMMENT
LOWshared/repair-xml.js1// Repairs the mechanical slips LLMs make in draw.io XML, before anything parsesCOMMENT
LOWshared/mermaid-elk.js1// Mermaid → ELK layout selector.COMMENT
LOWmcp-app-server/wrangler.toml21# OpenAI plugin-directory domain verification token, served verbatim atCOMMENT
LOWmcp-app-server/snippet/mcp_edge.js1// Cloudflare Snippet in front of the drawio-mcp-app Worker on mcp.draw.io.COMMENT
LOWmcp-app-server/src/build-html.js61);COMMENT
LOWmcp-app-server/src/references.js1// The references get_drawio_reference returns in this server: the sharedCOMMENT
LOWmcp-app-server/src/index.js181COMMENT
LOWmcp-app-server/src/libavoid-versions.js1// ETag-versioned CDN URLs for the libavoid script block.COMMENT
LOWmcp-app-server/src/shared.js61 // globalThis.Avoid and parks window.__libavoidReady (an already-resolvedCOMMENT
LOWmcp-app-server/src/shared.js1441// Injects the ELK layout selector into the round-tripped Mermaid source so aCOMMENT
LOWmcp-app-server/src/shared.js1861 // Canonical edge treatment (strict orthogonalEdgeStyle connectors +COMMENT
LOWmcp-app-server/src/shared.js1881 var layout = new ElkLayout(graph, preset.algorithm,COMMENT
LOWmcp-app-server/src/shared.js1921 // view state (pre-ELK positions) and animates to the newCOMMENT
LOWmcp-app-server/src/shared.js2841 {COMMENT
LOWmcp-app-server/src/shared.js3341// to skip CSS-translate morphs on cells whose pop-in hasn't finished —COMMENT
LOWmcp-app-server/src/shared.js4181// --- Streaming camera ---COMMENT
LOWmcp-app-server/src/shared.js4201COMMENT
LOWmcp-app-server/src/shared.js4261// the whole bbox fits inside the container.COMMENT
LOWmcp-app-server/src/shared.js4281// fraction of the larger of (bbox width, bbox height). 0.4 keeps theCOMMENT
LOWmcp-app-server/src/shared.js4301// partial, so without this the focus rect saturates to wholeBBoxCOMMENT
LOWmcp-app-server/src/shared.js4321// Insertion-ordered queue of recent vertex additions: [{id, t}, ...].COMMENT
LOWmcp-app-server/src/shared.js4681// recomputes a focus bbox from the recent-vertex queue, and as cellsCOMMENT
LOWmcp-app-server/src/shared.js4701// Adds the steady-cam lag.COMMENT
LOWmcp-app-server/src/shared.js5581 containerEl.addEventListener('pointercancel', endDrag);COMMENT
LOWmcp-app-server/src/shared.js5601 var px = e.clientX - rect.left;COMMENT
LOWmcp-app-server/src/shared.js5921 }COMMENT
LOWmcp-app-server/src/shared.js6261//COMMENT
LOWmcp-app-server/src/shared.js7321document.addEventListener('visibilitychange', function()COMMENT
LOWmcp-app-server/src/shared.js7881 content.push({ type: "text", text: note });COMMENT
LOWmcp-app-server/src/shared.js8141 // layer that is its own parent. Pass options the model wrote into theCOMMENT
LOW.github/workflows/publish-tool-server.yml1name: Publish Tool ServerCOMMENT
LOW.github/workflows/publish-app-server-image.yml1name: Publish App Server ImageCOMMENT
Hyper-Verbose Identifiers14 hits · 14 pts
SeverityFileLineSnippetContext
LOWmcp-app-server/src/index.js246async function startStreamableHTTPServer()CODE
LOWmcp-app-server/src/shared.js672function expandEdgesToEndpointVertexIds(graph, ids)CODE
LOWmcp-app-server/src/shared.js813function firstMermaidDirectiveLine(text)CODE
LOWmcp-app-server/src/shared.js858function isMermaidHorizontalFlowchart(text)CODE
LOWmcp-app-server/src/shared.js1348function rememberMermaidConversion(text, xml)CODE
LOWmcp-app-server/src/shared.js3581function waitForPendingAnimationsToSettle()CODE
LOWmcp-app-server/src/shared.js4012function hideAndRedrawEdgesForMorph(graph, morphedIdSet)CODE
LOWmcp-app-server/src/shared.js4120function penDrawAllEdgesAfterMorph(graph)CODE
LOWmcp-app-server/src/shared.js4566function computeTransitionDuration(curS, curTx, curTy, tgtS, tgtTx, tgtTy, viewportSpan)CODE
LOWmcp-app-server/src/shared.js5461function enableViewerInteractivity(graph)CODE
LOWmcp-app-server/src/shared.js6123function computeDefaultViewTransform()CODE
LOWmcp-app-server/src/shared.js6241function computeTopAnchoredTransform(targetScale)CODE
LOWmcp-app-server/src/shared.js6290function captureOriginalCellGeometries(graph)CODE
LOWmcp-app-server/src/shared.js6310function restoreOriginalGeometriesToModel(model)CODE