ai-diagrams-mcp 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +218 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,11 +10,35 @@ An MCP (Model Context Protocol) server that renders Mermaid diagrams to an inter
10
10
  - **Light/Dark Mode** - Automatic system preference detection with manual toggle
11
11
  - **Cross-Platform** - Works on macOS, Linux, and Windows
12
12
 
13
- ## Installation
13
+ ## Quick Start
14
14
 
15
- ### Option 1: Use with npx (recommended)
15
+ ```bash
16
+ npx -y ai-diagrams-mcp
17
+ ```
18
+
19
+ Or install globally:
20
+
21
+ ```bash
22
+ npm install -g ai-diagrams-mcp
23
+ ```
16
24
 
17
- No installation needed. Configure your MCP client to use:
25
+ ## Configuration by AI Tool
26
+
27
+ <table>
28
+ <tr>
29
+ <th>Tool</th>
30
+ <th>Config File</th>
31
+ <th>Configuration</th>
32
+ </tr>
33
+
34
+ <tr>
35
+ <td><strong>Claude Code</strong></td>
36
+ <td>
37
+
38
+ `~/.claude.json` or project `.mcp.json`
39
+
40
+ </td>
41
+ <td>
18
42
 
19
43
  ```json
20
44
  {
@@ -27,27 +51,90 @@ No installation needed. Configure your MCP client to use:
27
51
  }
28
52
  ```
29
53
 
30
- ### Option 2: Global install
54
+ Or via CLI: `claude mcp add ai-diagrams -- npx -y ai-diagrams-mcp`
31
55
 
32
- ```bash
33
- npm install -g ai-diagrams-mcp
56
+ </td>
57
+ </tr>
58
+
59
+ <tr>
60
+ <td><strong>Claude Desktop</strong></td>
61
+ <td>
62
+
63
+ macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
64
+
65
+ Windows: `%APPDATA%\Claude\claude_desktop_config.json`
66
+
67
+ </td>
68
+ <td>
69
+
70
+ ```json
71
+ {
72
+ "mcpServers": {
73
+ "ai-diagrams": {
74
+ "command": "npx",
75
+ "args": ["-y", "ai-diagrams-mcp"]
76
+ }
77
+ }
78
+ }
34
79
  ```
35
80
 
36
- Then configure:
81
+ </td>
82
+ </tr>
83
+
84
+ <tr>
85
+ <td><strong>Cursor</strong></td>
86
+ <td>
87
+
88
+ `~/.cursor/mcp.json` or Settings → Features → MCP
89
+
90
+ </td>
91
+ <td>
37
92
 
38
93
  ```json
39
94
  {
40
95
  "mcpServers": {
41
96
  "ai-diagrams": {
42
- "command": "ai-diagrams-mcp"
97
+ "command": "npx",
98
+ "args": ["-y", "ai-diagrams-mcp"]
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ </td>
105
+ </tr>
106
+
107
+ <tr>
108
+ <td><strong>VS Code (Copilot)</strong></td>
109
+ <td>
110
+
111
+ `.vscode/mcp.json` in workspace or via Command Palette: `MCP: Add Server`
112
+
113
+ </td>
114
+ <td>
115
+
116
+ ```json
117
+ {
118
+ "servers": {
119
+ "ai-diagrams": {
120
+ "command": "npx",
121
+ "args": ["-y", "ai-diagrams-mcp"]
43
122
  }
44
123
  }
45
124
  }
46
125
  ```
47
126
 
48
- ## Configuration for Claude Code
127
+ </td>
128
+ </tr>
129
+
130
+ <tr>
131
+ <td><strong>Cline</strong></td>
132
+ <td>
49
133
 
50
- Add to your Claude Code MCP settings (`~/.claude/claude_desktop_config.json` or project `.mcp.json`):
134
+ Click MCP Servers icon Configure Edit MCP Settings
135
+
136
+ </td>
137
+ <td>
51
138
 
52
139
  ```json
53
140
  {
@@ -60,9 +147,105 @@ Add to your Claude Code MCP settings (`~/.claude/claude_desktop_config.json` or
60
147
  }
61
148
  ```
62
149
 
150
+ </td>
151
+ </tr>
152
+
153
+ <tr>
154
+ <td><strong>Windsurf</strong></td>
155
+ <td>
156
+
157
+ `~/.codeium/windsurf/mcp_config.json`
158
+
159
+ </td>
160
+ <td>
161
+
162
+ ```json
163
+ {
164
+ "mcpServers": {
165
+ "ai-diagrams": {
166
+ "command": "npx",
167
+ "args": ["-y", "ai-diagrams-mcp"]
168
+ }
169
+ }
170
+ }
171
+ ```
172
+
173
+ </td>
174
+ </tr>
175
+
176
+ <tr>
177
+ <td><strong>Zed</strong></td>
178
+ <td>
179
+
180
+ Settings → Open Settings (JSON)
181
+
182
+ </td>
183
+ <td>
184
+
185
+ ```json
186
+ {
187
+ "context_servers": {
188
+ "ai-diagrams": {
189
+ "command": {
190
+ "path": "npx",
191
+ "args": ["-y", "ai-diagrams-mcp"]
192
+ }
193
+ }
194
+ }
195
+ }
196
+ ```
197
+
198
+ </td>
199
+ </tr>
200
+
201
+ <tr>
202
+ <td><strong>OpenAI Codex CLI</strong></td>
203
+ <td>
204
+
205
+ `~/.codex/config.toml`
206
+
207
+ </td>
208
+ <td>
209
+
210
+ ```toml
211
+ [mcp_servers.ai-diagrams]
212
+ command = "npx"
213
+ args = ["-y", "ai-diagrams-mcp"]
214
+ ```
215
+
216
+ Or via CLI: `codex mcp add ai-diagrams -- npx -y ai-diagrams-mcp`
217
+
218
+ </td>
219
+ </tr>
220
+
221
+ <tr>
222
+ <td><strong>JetBrains IDEs</strong></td>
223
+ <td>
224
+
225
+ Settings → Tools → MCP Server
226
+
227
+ </td>
228
+ <td>
229
+
230
+ ```json
231
+ {
232
+ "mcpServers": {
233
+ "ai-diagrams": {
234
+ "command": "npx",
235
+ "args": ["-y", "ai-diagrams-mcp"]
236
+ }
237
+ }
238
+ }
239
+ ```
240
+
241
+ </td>
242
+ </tr>
243
+
244
+ </table>
245
+
63
246
  ## Usage
64
247
 
65
- Once configured, you can ask Claude to render diagrams:
248
+ Once configured, ask your AI assistant to render diagrams:
66
249
 
67
250
  > "Create a flowchart showing the user authentication process"
68
251
 
@@ -90,6 +273,24 @@ The `render_diagram` tool accepts:
90
273
  }
91
274
  ```
92
275
 
276
+ ## Supported Diagram Types
277
+
278
+ Mermaid supports many diagram types including:
279
+
280
+ - Flowcharts
281
+ - Sequence Diagrams
282
+ - Class Diagrams
283
+ - State Diagrams
284
+ - Entity Relationship Diagrams
285
+ - Gantt Charts
286
+ - Pie Charts
287
+ - Mind Maps
288
+ - Timeline
289
+ - Git Graphs
290
+ - Quadrant Charts
291
+
292
+ See [Mermaid documentation](https://mermaid.js.org/intro/) for full syntax reference.
293
+
93
294
  ## Viewer Features
94
295
 
95
296
  - **Zoom Controls** - Use +/- buttons or pinch gesture on trackpad
@@ -122,6 +323,12 @@ npm start
122
323
  - **Zoom/Pan**: @panzoom/panzoom
123
324
  - **MCP SDK**: @modelcontextprotocol/sdk
124
325
 
326
+ ## Resources
327
+
328
+ - [Model Context Protocol](https://modelcontextprotocol.io/) - MCP specification
329
+ - [Mermaid.js](https://mermaid.js.org/) - Diagram syntax documentation
330
+ - [MCP Servers Directory](https://github.com/modelcontextprotocol/servers) - Community MCP servers
331
+
125
332
  ## License
126
333
 
127
334
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-diagrams-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for rendering Mermaid diagrams with interactive zoom/pan viewer",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",