{"_id":"claude-mermaid","_rev":"16-9598605e67f40194a5ef9a34f62a002e","name":"claude-mermaid","dist-tags":{"latest":"1.7.0"},"versions":{"1.0.0":{"name":"claude-mermaid","version":"1.0.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.0.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"51eb67d4301a9ad6d70f2454504e3715176c29c2","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.0.0.tgz","fileCount":20,"integrity":"sha512-4o/DaT+yMTEd1fpNja0ncLEvo9bPg0f7lyY8vgO4lwZwjKpxbTzXgmDuscac5HvZWKq7iCMSUigv2IYh2ENe0Q==","signatures":[{"sig":"MEUCIFP+yj0QYSq1LorOoA+7t2rd4MXJdY+BlDXyz0puhfqiAiEAt62fG6DX/pQEvrYP7+LcpB5BWWVr7Cil9m1Jc8RZNAU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6214209},"main":"build/index.js","type":"module","gitHead":"ee68f6b82c07854e4bb63152dc6e2b57b9a4bac8","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc","start":"node build/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.5.1","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"24.6.0","dependencies":{"@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"^5.9.2","@types/node":"^24.6.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.0.0_1759236785787_0.1635152253095744","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"claude-mermaid","version":"1.0.1","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.0.1","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"12f905bd53079019c9b14de273d046b478e8c380","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.0.1.tgz","fileCount":5,"integrity":"sha512-8AmEj6XqqLBUOGIANL15oayi5bOk+G0tB/SC+fxUTFZ2g6v7K2QtQr2/7UW283Ynlniesb0xOt2YshjW+KA4/w==","signatures":[{"sig":"MEQCIGNJ3VSIQr2yEl5+0XJJmuq0gEEYhz5kj7mxD0XIvarvAiAcLUD8G6eMJf8iXL6Ms2yYMiWUKY+oUvr5qnBkYxOjPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12659},"main":"build/index.js","type":"module","gitHead":"28206d5a809d0928d68454370c18c751ce9ca448","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc","start":"node build/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.5.1","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"24.6.0","dependencies":{"@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"^5.9.2","@types/node":"^24.6.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.0.1_1759239465916_0.3264433138096259","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"claude-mermaid","version":"1.1.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.1.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"46ebc46ddd262a37e54fcfe4da73354dc0136eb6","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.1.0.tgz","fileCount":10,"integrity":"sha512-YXaGyOc7+YZjxUaIlnLl5J65pyPvSdYa5pLUdRRUfbH5sL0l1rV7Uc9O3YYhxzQveO1inhEdObkFBawaunCSTw==","signatures":[{"sig":"MEUCIQDBm4dDPwYP5XbvqqBDRyt5/XVPefQJB+Tf5cchSc1jJQIgEnTlRjhc8ljPmdYJPnq8uN14YQ5BpCIBuMoGPphjDoY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45377},"main":"build/index.js","type":"module","gitHead":"f70165b9e2cd3735a43605e9b69e04d42a045323","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp src/preview-template.html build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.5.1","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"24.6.0","dependencies":{"ws":"^8.18.3","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^24.6.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.1.0_1759421261952_0.5892342357966884","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"claude-mermaid","version":"1.1.1","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.1.1","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"8e5f6bcd77ffe431577996d5b36a87b0c982b0fc","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.1.1.tgz","fileCount":14,"integrity":"sha512-xsR1oQNgIKWOvnZ+XjqaWJBjg+uCASGDAfOxIkPjBWiS+D0gYofCYMPO33u3QtrhX98bEqb9EjygOXPLczfbww==","signatures":[{"sig":"MEQCIBFdaKooAFqTYIfpOWiyGvtuQmHjU/AbleR1PMa6bb0SAiB7uJoV5q118WS7Mst5DokxQNi8nAm+oee7b2U1yxlUnw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57303},"main":"build/index.js","type":"module","gitHead":"c1f9830a29c0bd9c16bf1cf04417e4b3dc98dc68","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.5.1","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"24.6.0","dependencies":{"ws":"^8.18.3","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^24.6.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.1.1_1759493666114_0.9768652761221732","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"claude-mermaid","version":"1.2.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.2.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"4d7605a98ab4ae4b0a003c9be20cd3c3673c016d","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.2.0.tgz","fileCount":15,"integrity":"sha512-3V6YOyT9T2abJLOxwePLB/ZMAZL5j0gR5OYPxyCXgktAtQHy6As1m0YVey+GvM5K4fd2aNuT13Q1lI71vOkqew==","signatures":[{"sig":"MEYCIQCj/n/VaTz/0OARQ+94tl01S+wzU+zbtdsWGgb1fmy1agIhAJ6kUBe+p08R5mvHuAE839glNpW+eaTMV2tE27z/YwGK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":113659},"main":"build/index.js","type":"module","gitHead":"79fb8b348011f0e40c761bae0fe1b02da807af75","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.5.1","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"24.6.0","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^24.6.0","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.2.0_1761985417321_0.12644423765305923","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"claude-mermaid","version":"1.3.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.3.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"aeee803769dde5e8c96bb28fec2dd9a0a5bcd783","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.3.0.tgz","fileCount":22,"integrity":"sha512-BMBBo/BCFyWvhCyFaLwGt7LA/Ub4ExI7cLrzLnhSBCfIoeJTUSux4rO3+qgbVWVztepYZUoJr4YT5T0ZN+Sq6Q==","signatures":[{"sig":"MEUCIAdljFqmpay6Xk0QzcelsNwxLfb9G2rVyb4Cu9gM2RH+AiEA+9PEq+FyLB44jF2TjhXWB41bdiufBZY3f0aV9tA6A6g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104121},"main":"build/index.js","type":"module","gitHead":"c1256354308d91fca5ca8eb281379cba1683bfcb","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.5.1","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"24.6.0","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^24.6.0","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.3.0_1764057960704_0.6089711024285631","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"claude-mermaid","version":"1.4.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.4.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"c46642aca7f000e859e5ecf99b042ac3310ea115","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.4.0.tgz","fileCount":22,"integrity":"sha512-yUYB5FH3M/S5ozflx3UixvpCVywXzFfFZqd6lH2QTyhEhk/HWYkae04sIK1wYxScpf9WajWoXXCYER2CkaNJSw==","signatures":[{"sig":"MEQCIA6XFJ2G3LO7l1zqx9PIqtDdU6QqQHdKaLKwoubEmjA4AiBauGEOSsETy4X9sPWRljoV5KZ/Ne9G+WixpNaozp0NWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110181},"main":"build/index.js","type":"module","gitHead":"a0281cecf2cb5770079eb3ca2db299c795bd7288","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.4.0_1770237747073_0.8005175428392695","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"claude-mermaid","version":"1.5.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.5.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"e13d9d207579bfac6128fa787638bc5bd4f04f28","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.5.0.tgz","fileCount":25,"integrity":"sha512-t8tpe/Ag+Cuj6VIGnxYYXLUFQCyh1TnFE1M8SbdIcJfNkqxSs2CK4mX3hHYo3AVem6UA6zZimzdzll5RcSSADA==","signatures":[{"sig":"MEUCIQDEFrhwKlv1DYeOw/Q4wakqfkhi0sEjHAXmC02OAo7sTgIgGwJ5QypDKLq60dLPjPbFyhbErm8THJBfVI3Rm3VJEos=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":120023},"main":"build/index.js","type":"module","gitHead":"d163f3dce7a92d8d3216c5108db62fd7b81b587e","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.5.0_1771926556389_0.5581757142010657","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"claude-mermaid","version":"1.6.0","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.0","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"503dff20c1778f9a1047b9ca2939143878837435","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.0.tgz","fileCount":25,"integrity":"sha512-D3xbCzJiJy2AnKtNAZ0RaPacw7YClnbK38bEdlzyw8F/LS6B1U2eLQ+3koc8YKEbqyLplIYWsyfmAmjsBbjFEA==","signatures":[{"sig":"MEQCIDoyST9gS4Ei8ASxV9WYTlxpdovgVG8MCyqWFzKTQGbiAiAc9b3hcAgevTVhK7rch5EYha4NLTsUeKS9sP7iXdfKfw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122757},"main":"build/index.js","type":"module","gitHead":"c6c21ae8a655c40bd219dd462f2dc66bb70e5e5a","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"dompurify":"github:cure53/DOMPurify#fca0a938b4261ddc9c0293a289935a9029c049f5"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.0_1772698409678_0.08533128919834088","host":"s3://npm-registry-packages-npm-production"}},"1.6.1":{"name":"claude-mermaid","version":"1.6.1","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.1","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"42c8c60274123e6bd4e50622b151200855cd27e7","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.1.tgz","fileCount":25,"integrity":"sha512-mR40CknRsEB+LVzaY+VN1wwXhxt0g8P694NoziLFO/BUGyNV5VobDMoJH++W/20iFUhLNIwoAFf+g89j/xSO/Q==","signatures":[{"sig":"MEUCIF6bNZGYmZjSRVuVGufeY6Rm5KHe2bSs9tEdDxAEWOxaAiEAjWtiXmz41GdENrhMCkTltD+7evRItPc1B0vu7Z4Nxpw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123118},"main":"build/index.js","type":"module","gitHead":"252f78c797964211c48dd0658c9426111cc42d5c","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"dompurify":"github:cure53/DOMPurify#fca0a938b4261ddc9c0293a289935a9029c049f5"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.1_1773260114118_0.6343350114094641","host":"s3://npm-registry-packages-npm-production"}},"1.6.2":{"name":"claude-mermaid","version":"1.6.2","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.2","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"e006e749eaedcbce717eacf2afbe34ae71b62e2c","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.2.tgz","fileCount":25,"integrity":"sha512-PKrCjItxQp7GUl8jlaK27HACSic6ADuBwT5DI/FwJxf1r57YYpZmMcRGjbTx5EWMbKAlzS2+6wfhIuWIPoagHg==","signatures":[{"sig":"MEYCIQCeKEjygJTUk6dtARCFKb6XX8OZwcoEVLjG8IDrTHT70AIhAIw0BpZVZbi+K8qy50ToO75H98CyUJ+4vFGZHfkQlBEY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123296},"main":"build/index.js","type":"module","gitHead":"c15c978c1a4d6f63284b2dbe73739929aff0fc7a","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"dompurify":"github:cure53/DOMPurify#fca0a938b4261ddc9c0293a289935a9029c049f5"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^5.9.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.2_1773914365625_0.9884211837951671","host":"s3://npm-registry-packages-npm-production"}},"1.6.3":{"name":"claude-mermaid","version":"1.6.3","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.3","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"a5f1050ef7af6dc2595f5507366006489fef2879","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.3.tgz","fileCount":25,"integrity":"sha512-C7jMW0lJFV6b+akTfSlYL7IakIgpBmRHtqHcXRcxzmusJu047dte1me9X7XijFzZcdIgAU3HKxcIg7oYMVpUvA==","signatures":[{"sig":"MEQCIAl2+MlS6qrWm9y1d1ykeFQROEDYk1BK13en3P+LTRdYAiBhOW2XpZ5KuUrtlJDKkwvmACpbdPfSPN/SiS1ASb5qAQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125639},"main":"build/index.js","type":"module","gitHead":"909c8f2d79f84e5b09776a8e53009efa27adabef","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"dompurify":"^3.4.0","lodash-es":"^4.18.0"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^6.0.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.3_1778941406345_0.8591872010777399","host":"s3://npm-registry-packages-npm-production"}},"1.6.4":{"name":"claude-mermaid","version":"1.6.4","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.4","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"04d3fce6ff12c61676bf84f851ef36e0f30e682a","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.4.tgz","fileCount":25,"integrity":"sha512-Afh5afzFWi2KPN6zxYnl+WEyQ82z7S43IbtxoruR+Zgj1YrGK1rgCoNjjAlEQMoFtI8eKePtwZQRjKeGcK9aqg==","signatures":[{"sig":"MEYCIQD5Vh59NEsK90GkpcSTTOPdUxyThsArIGv3IR956JqdVwIhAO/CrU7olwaLwdPGqYUoGWvtdQYMDvEkq4Ky8SVioxbO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126869},"main":"build/index.js","type":"module","gitHead":"02dee4b3d246167da57cb8109155e9e2a2f61098","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"dompurify":"^3.4.0","lodash-es":"^4.18.0"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^2.1.0","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^6.0.2","@types/node":"^25.0.2","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.4_1779957820431_0.7857219265759772","host":"s3://npm-registry-packages-npm-production"}},"1.6.5":{"name":"claude-mermaid","version":"1.6.5","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.5","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"879f1fd17a3643e6ed78390052be651210ff127c","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.5.tgz","fileCount":23,"integrity":"sha512-fpWms3f2LGavhlOO9IHBa0SyulMBIvT4SRI1aw2KG5yNg7TH2+6BeyhiMdziC4G+12xS8/kKn4nUqBctnmreyg==","signatures":[{"sig":"MEQCIHT9zks9odzMr7O4W7qix7TKJlQKsuvWlU88EOLsgjYKAiBZ6ymH2j/BfCT6XX4ADd7E6Qi4buossKK2yQbp3iuI7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":121573},"main":"build/index.js","type":"module","gitHead":"e5a168a2ae5771751cccfc2a10eb93c2e8520779","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"nanoid":"^3.3.17","dompurify":"^3.4.13","lodash-es":"^4.18.0","@hono/node-server":"^2.0.5"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^3.0.1","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^26.0.0","@types/pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.5_1786213698490_0.9430138291791683","host":"s3://npm-registry-packages-npm-production"}},"1.6.6":{"name":"claude-mermaid","version":"1.6.6","keywords":["mcp","mermaid","claude","diagram"],"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","_id":"claude-mermaid@1.6.6","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"homepage":"https://github.com/veelenga/claude-mermaid#readme","bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"bin":{"claude-mermaid":"build/index.js"},"dist":{"shasum":"0bb6f9840c6a69e1b0d6f28053c79104ab8640ef","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.6.6.tgz","fileCount":32,"integrity":"sha512-9NDzslX25MD9I8/4+Kgzms7xkL9TKJHR2YO2+vxIeKoVDDJ7A30Y4KkWQJccrv3jAO73WN8nDzy7UWC4fi084A==","signatures":[{"sig":"MEUCIQCR1qve0p14WZj3x9bxElvKWhSfiVhXlLuoQNJXvm3zOAIgR9Ape8xx05uj+jzIW5B6QNIMjRn4ghO0MJhbleUyPrI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIDO/9I6qwGccDthJy3FtvRzfKeiATftXjUGVK70XUwFVAiEAmn4jFlRoAUJq/SR1gpTOiULGrGSb0FpFtuvb2kSjGUM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":141839},"main":"build/index.js","type":"module","gitHead":"c58713771f5f3b4632b8ce907743a050831a5fed","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"overrides":{"nanoid":"^3.3.17","dompurify":"^3.4.13","lodash-es":"^4.18.0","puppeteer":"^25.8.0","@hono/node-server":"^2.0.5"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^3.0.1","@mermaid-js/mermaid-cli":"^11.12.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.3","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^26.0.0","@types/pako":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-mermaid_1.6.6_1790586651158_0.15872886933194752","host":"s3://npm-registry-packages-npm-production"}},"1.7.0":{"_id":"claude-mermaid@1.7.0","bin":{"claude-mermaid":"build/index.js"},"bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"dist":{"shasum":"0d3d8a0b08e1933e396480849ad8500596d3f11b","tarball":"https://registry.npmjs.org/claude-mermaid/-/claude-mermaid-1.7.0.tgz","fileCount":34,"integrity":"sha512-TdFPfvBDr2DDNGFIJD3BAK/6TdaNp25AfSHCWkoCEOZHR1lBDE2qbh9GvL/Q/uVjOqXJnyR2KRr9uDQTwbvnxA==","signatures":[{"sig":"MEQCIDjELxV8LbnuVssaKyGmQov+Bko2oGP1LuBZHC0j+lrRAiA/P4aJFd2DUv+8hYWlPrq9ex/WlIPG2Wqf6JVio081/w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDc/Pjyj8cFcXaVwE3E7bq3HInYSw8Z/vPSfRuJKmOrrQIgWYBof7at5B2SIuuFOjjMsFe1r04SB6l4m7HJ9fyKfVI="}],"unpackedSize":144806},"main":"build/index.js","name":"claude-mermaid","type":"module","author":{"name":"Vitalii Elenhaupt"},"engines":{"node":">=22.13.0"},"gitHead":"693fc4af5c146b5b17b1b14e31365d191aec0b09","license":"MIT","scripts":{"dev":"tsc --watch","test":"vitest","build":"tsc && cp -r src/preview build/ && chmod +x build/index.js","start":"node build/index.js","format":"prettier --write .","format:check":"prettier --check .","prepublishOnly":"npm run build"},"version":"1.7.0","_npmUser":{"name":"veelenga","email":"velenhaupt@gmail.com"},"homepage":"https://github.com/veelenga/claude-mermaid#readme","keywords":["mcp","mermaid","claude","diagram"],"overrides":{"katex":"^0.18.2","nanoid":"^3.3.17","dompurify":"^3.4.16","lodash-es":"^4.18.0","puppeteer":"^25.8.0","@hono/node-server":"^2.0.5"},"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"_npmVersion":"11.6.2","description":"MCP server for previewing Mermaid diagrams in Claude Code","directories":{},"maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.3","pako":"^3.0.1","@mermaid-js/mermaid-cli":"^12.0.0","@modelcontextprotocol/sdk":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^5.0.5","prettier":"^3.6.2","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^26.0.0","@types/pako":"^3.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/claude-mermaid_1.7.0_1792673389044_0.21047261554954733"}}},"time":{"created":"2025-09-30T12:53:05.786Z","modified":"2026-10-22T12:49:49.341Z","1.0.0":"2025-09-30T12:53:06.046Z","1.0.1":"2025-09-30T13:37:46.117Z","1.1.0":"2025-10-02T16:07:42.163Z","1.1.1":"2025-10-03T12:14:26.299Z","1.2.0":"2025-11-01T08:23:37.542Z","1.3.0":"2025-11-25T08:06:00.876Z","1.4.0":"2026-02-04T20:42:27.238Z","1.5.0":"2026-02-24T09:49:16.526Z","1.6.0":"2026-03-05T08:13:29.824Z","1.6.1":"2026-03-11T20:15:14.272Z","1.6.2":"2026-03-19T09:59:25.792Z","1.6.3":"2026-05-16T14:23:26.482Z","1.6.4":"2026-05-28T08:43:40.575Z","1.6.5":"2026-08-08T18:28:18.661Z","1.6.6":"2026-09-28T09:10:51.244Z","1.7.0":"2026-10-22T12:49:49.139Z"},"bugs":{"url":"https://github.com/veelenga/claude-mermaid/issues"},"author":{"name":"Vitalii Elenhaupt"},"license":"MIT","homepage":"https://github.com/veelenga/claude-mermaid#readme","keywords":["mcp","mermaid","claude","diagram"],"repository":{"url":"git+https://github.com/veelenga/claude-mermaid.git","type":"git"},"description":"MCP server for previewing Mermaid diagrams in Claude Code","maintainers":[{"name":"veelenga","email":"velenhaupt@gmail.com"}],"readme":"# Claude Mermaid MCP Server\n\nMCP server for rendering Mermaid diagrams in Claude Code with **live reload** functionality and a built-in skill for expert guidance.\n\nAutomatically renders diagrams in your browser with real-time updates as you refine them. Perfect for iterative diagram development and documentation workflows.\n\n![Demo](https://raw.githubusercontent.com/veelenga/claude-mermaid/main/assets/demo.gif)\n\n## ✨ Features\n\n- 🔄 **Live Reload** - Diagrams auto-refresh in your browser as you edit\n- 🎨 **Multiple Save Formats** - Export to SVG, PNG, or PDF\n- 🌈 **Themes** - Choose from default, forest, dark, or neutral themes\n- 📐 **Customizable** - Control dimensions, scale, and background colors\n- 🪄 **Interactive Preview** - Pan diagrams by dragging, zoom with browser controls, reset position with one click\n- ⬇️ **Browser Export** - Download diagrams as SVG or PNG directly from the preview\n- 🗂️ **Multiple Previews** - Use `preview_id` to work on multiple diagrams simultaneously\n- 💾 **Persistent Working Files** - Live previews are stored under `~/.config/claude-mermaid/live`\n- 🤖 **Built-in Skill** - Includes a Claude skill with best practices and expert guidance for creating diagrams\n\n## Architecture\n\n<details>\n<summary>Project Architecture Diagram</summary>\n\n![Architecture Diagram](https://raw.githubusercontent.com/veelenga/claude-mermaid/main/assets/architecture.png)\n\n</details>\n\n<details>\n<summary>User Workflow Diagram</summary>\n\n![User Workflow Diagram](https://raw.githubusercontent.com/veelenga/claude-mermaid/main/assets/workflow.png)\n\n</details>\n\n<details>\n<summary>Dependencies Diagram</summary>\n\n![Dependencies Diagram](https://raw.githubusercontent.com/veelenga/claude-mermaid/main/assets/dependencies.png)\n\n</details>\n\n## 🚀 Quick Start\n\n### 1. Install\n\n**Plugin Install (Recommended)**\n\nIn Claude Code, add the marketplace and install the plugin:\n\n```bash\n/plugin marketplace add veelenga/claude-mermaid\n/plugin install claude-mermaid@claude-mermaid\n```\n\nThen restart Claude Code to activate the plugin.\n\n**From npm:**\n\n```bash\nnpm install -g claude-mermaid\n```\n\n**From source:**\n\n```bash\ngit clone https://github.com/veelenga/claude-mermaid.git\ncd claude-mermaid\nnpm install && npm run build && npm install -g .\n```\n\n### 2. Verify Installation\n\n**Plugin install:** The MCP server is configured automatically. Just verify:\n\n```bash\n/mcp\n```\n\nYou should see `mermaid` in the MCP server list.\n\n**npm install:** Configure the MCP server manually:\n\n```bash\nclaude mcp add --scope user mermaid claude-mermaid\n```\n\nThen verify:\n\n```bash\nclaude mcp list\n```\n\nYou should see `mermaid: claude-mermaid - ✓ Connected`\n\n## 🔌 Other MCP Client Configurations\n\nWhile this server is optimized for Claude Code, it can work with any MCP-compatible client. Here's how to configure it for other popular tools:\n\n<details>\n<summary><strong>Codex</strong></summary>\n\nAdd to your Codex MCP settings file (`~/.codex/mcp_settings.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\"\n    }\n  }\n}\n```\n\nOr configure via Codex CLI:\n\n```bash\ncodex mcp add mermaid claude-mermaid\n```\n\n</details>\n\n<details>\n<summary><strong>Cursor</strong></summary>\n\nAdd to your Cursor MCP config file (`.cursor/mcp.json` or settings):\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\"\n    }\n  }\n}\n```\n\nOr use Cursor's settings UI:\n\n1. Open Cursor Settings (Cmd/Ctrl + ,)\n2. Navigate to MCP Servers\n3. Add a new server with command: `claude-mermaid`\n\n</details>\n\n<details>\n<summary><strong>VSCode with Cline Extension</strong></summary>\n\nIf using the [Cline extension](https://github.com/cline/cline) for VSCode:\n\n1. Open VSCode settings (Cmd/Ctrl + ,)\n2. Search for \"Cline MCP\"\n3. Add to MCP Settings JSON:\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\"\n    }\n  }\n}\n```\n\n</details>\n\n<details>\n<summary><strong>Windsurf</strong></summary>\n\nAdd to Windsurf's MCP configuration file:\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\"\n    }\n  }\n}\n```\n\nConfiguration location varies by platform:\n\n- **macOS:** `~/Library/Application Support/Windsurf/mcp.json`\n- **Linux:** `~/.config/windsurf/mcp.json`\n- **Windows:** `%APPDATA%\\Windsurf\\mcp.json`\n\n</details>\n\n<details>\n<summary><strong>Gemini CLI</strong></summary>\n\nAdd to Gemini CLI's MCP configuration file (`~/.gemini/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\"\n    }\n  }\n}\n```\n\nOr use the Gemini CLI to configure:\n\n```bash\ngemini config mcp add mermaid --command claude-mermaid\n```\n\n</details>\n\n<details>\n<summary><strong>Other MCP Clients</strong></summary>\n\nFor any MCP-compatible client, use the standard configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\"\n    }\n  }\n}\n```\n\nThe command `claude-mermaid` should be available in your PATH after installation.\n\n**Note:** Some clients may require the full path to the executable:\n\n- Find the path: `which claude-mermaid` (Unix/macOS) or `where claude-mermaid` (Windows)\n- Use absolute path in config: `\"command\": \"/path/to/claude-mermaid\"`\n\n</details>\n\n## 💡 Usage\n\nSimply ask Claude Code to create Mermaid diagrams naturally. When installed as a plugin, the built-in `mermaid-diagrams` skill provides expert guidance, best practices, and automatic workflow management.\n\n### Basic Examples\n\n```\n\"Create a Mermaid diagram showing the user authentication flow\"\n\"Draw a sequence diagram for the payment process\"\n\"Generate a flowchart for the deployment pipeline\"\n```\n\n### Advanced Examples\n\n**With custom formatting:**\n\n```\n\"Create a dark theme architecture diagram with transparent background\"\n\"Generate a forest theme flowchart and save to ./docs/flow.svg\"\n```\n\n**With specific output format:**\n\n```\n\"Create an ER diagram and save as PDF to ./docs/schema.pdf\"\n\"Save the flowchart as PNG to ./docs/flow.png\"\n```\n\n_Note: Browser always shows SVG for live preview, while saving to your chosen format._\n\n**Iterative refinement:**\n\n```\n\"Create a class diagram for the User module\"\n// Browser opens with live preview\n\"Add the Address and Order classes with relationships\"\n// Diagram updates automatically in browser!\n```\n\n### Complete Example\n\n```\n\"Create a flowchart and save to ./docs/auth-flow.svg:\n\ngraph LR\n    A[User Login] --> B{Valid Credentials?}\n    B -->|Yes| C[Access Granted]\n    B -->|No| D[Access Denied]\n    C --> E[Dashboard]\n    D --> F[Try Again]\n\n    style A fill:#e1f5ff\n    style C fill:#d4edda\n    style D fill:#f8d7da\n\"\n```\n\nThe diagram will be saved to `./docs/auth-flow.svg` and opened in your browser with live reload enabled.\n\n## 🔧 Tools and Parameters\n\nThere are two tools exposed by the MCP server:\n\n1. `mermaid_preview` — render and open a live preview\n\n- `diagram` (string, required) — Mermaid diagram code\n- `preview_id` (string, required) — Identifier for this preview session. Use different IDs for multiple concurrent diagrams (e.g., `architecture`, `flow`).\n- `format` (string, default `svg`) — One of `svg`, `png`, `pdf`. Live preview is available only for `svg`.\n- `theme` (string, default `default`) — One of `default`, `forest`, `dark`, `neutral`.\n- `background` (string, default `white`) — Background color. Examples: `transparent`, `white`, `#F0F0F0`.\n- `size` (number, default `800`) — Maximum diagram width or height in pixels.\n- `width`, `height` (number, deprecated) — Accepted for compatibility; the larger value is used as `size`.\n- `scale` (number, default `2`) — Scale factor for higher quality output.\n\n2. `mermaid_save` — save the current live diagram to a path\n\n- `save_path` (string, required) — Destination path (e.g., `./docs/diagram.svg`).\n- `preview_id` (string, required) — Must match the `preview_id` used in `mermaid_preview`.\n- `format` (string, default `svg`) — One of `svg`, `png`, `pdf`. If the live working file for this format doesn’t exist yet, it is rendered on demand before saving.\n\n## 🎯 How Live Reload Works\n\n1. **First render:** Opens diagram in browser at `http://localhost:3737/{preview_id}`\n2. **Make changes:** Edit the diagram through Claude Code\n3. **Auto-refresh:** Browser detects changes via WebSocket and reloads\n4. **Status indicator:** Green dot = connected, Red dot = reconnecting\n\nThe live server uses ports 3737-3747 and automatically finds an available port.\n\n### Live Preview Controls\n\n- **Pan:** Click and drag the diagram to move it around\n- **Zoom:** Use browser zoom (Ctrl/Cmd + +/- or pinch-to-zoom on trackpad)\n- **Reset Position:** Click the ⊙ button in the status bar to recenter the diagram\n- **Export:** Click the ⬇ button to download as SVG or PNG\n\n### Notes\n\n- Live preview is available for `svg` format only; PNG/PDF are rendered without live reload.\n- For sequence diagrams, Mermaid does not support `style` directives inside `sequenceDiagram`.\n\n## 🖥️ Standalone server\n\nYou can start the preview server without an AI agent using the `--serve` flag:\n\n```bash\nclaude-mermaid --serve\n```\n\nThis opens the diagram gallery in your browser with all previously rendered diagrams. Useful for browsing and exporting diagrams outside of a Claude Code session.\n\n## 🛠️ Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run tests\nnpm test\n\n# Watch mode for development\nnpm run dev\n\n# Start the MCP server directly\nnpm start\n```\n\n## 📝 Troubleshooting\n\n**Error: Cannot find package 'puppeteer':**\n\nThis is a rare environment-specific issue. Try these solutions:\n\n1. **Install claude-mermaid globally**:\n\n   ```bash\n   npm install -g claude-mermaid\n   ```\n\n2. **Reinstall the plugin** in Claude Code:\n   ```\n   /plugin uninstall claude-mermaid\n   /plugin install claude-mermaid@claude-mermaid\n   ```\n\n**Server not connecting:**\n\n```bash\n# Check if server is installed\nclaude-mermaid -v\n\n# Reinstall if needed\nnpm install -g claude-mermaid\n\n# Verify MCP configuration\nclaude mcp list\n```\n\n**Permission denied error:**\n\n```bash\n# Make sure the binary is executable\nchmod +x $(which claude-mermaid)\n```\n\n**Port already in use:**\n\n- The server uses ports 3737-3747\n- It will automatically find an available port\n- Check if another process is using these ports: `lsof -i :3737-3747`\n\n**Diagrams not rendering or live reload not working:**\n\nThe server logs to `~/.config/claude-mermaid/logs/`:\n\n- `mcp.log` - Tool requests and diagram rendering\n- `web.log` - HTTP/WebSocket connections and live reload\n\nEnable debug logging in your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"mermaid\": {\n      \"command\": \"claude-mermaid\",\n      \"env\": {\n        \"CLAUDE_MERMAID_LOG_LEVEL\": \"DEBUG\"\n      }\n    }\n  }\n}\n```\n\nThen check the logs:\n\n```bash\n# View MCP operations\ntail -f ~/.config/claude-mermaid/logs/mcp.log\n\n# View WebSocket connections\ntail -f ~/.config/claude-mermaid/logs/web.log\n```\n\nAvailable log levels: `DEBUG`, `INFO` (default), `WARN`, `ERROR`, `OFF`\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\n\nMIT - see [LICENSE](LICENSE) file for details\n\n## 🔗 Links\n\n- [GitHub Repository](https://github.com/veelenga/claude-mermaid)\n- [npm Package](https://www.npmjs.com/package/claude-mermaid)\n- [Claude Code Documentation](https://docs.claude.com/claude-code)\n- [Mermaid Documentation](https://mermaid.js.org/)\n\n## 👀 See Also\n\nIf you like this project, you might also be interested in\n\n- [preview-skills](https://github.com/veelenga/preview-skills) — preview skills for visualizing files in the browser (markdown, csv, json, mermaid and more)\n\n## Hosted deployment\n\nA hosted deployment is available on [Fronteir AI](https://fronteir.ai/mcp/veelenga-claude-mermaid).\n","readmeFilename":"README.md"}