mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 06:42:27 +08:00
docs: use @latest instead of -y flag for npx (match Playwright MCP style)
This commit is contained in:
@@ -95,20 +95,12 @@ https://github.com/user-attachments/assets/b2eef5f3-b335-4e71-a755-dc2e80931979
|
||||
|
||||
通过MCP(模型上下文协议)在Claude Desktop、Cursor和VS Code等AI代理中使用Next AI Draw.io。
|
||||
|
||||
```bash
|
||||
npx -y @next-ai-drawio/mcp-server
|
||||
```
|
||||
|
||||
### Claude Desktop配置
|
||||
|
||||
添加到Claude Desktop配置文件(macOS上为`~/Library/Application Support/Claude/claude_desktop_config.json`):
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"drawio": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@next-ai-drawio/mcp-server"]
|
||||
"args": ["@next-ai-drawio/mcp-server@latest"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -117,7 +109,7 @@ npx -y @next-ai-drawio/mcp-server
|
||||
### Claude Code CLI
|
||||
|
||||
```bash
|
||||
claude mcp add drawio -- npx -y @next-ai-drawio/mcp-server
|
||||
claude mcp add drawio -- npx @next-ai-drawio/mcp-server@latest
|
||||
```
|
||||
|
||||
然后让Claude创建图表:
|
||||
|
||||
Reference in New Issue
Block a user