From c0ac378695a122576ae67e021a8e91d68f207bbb Mon Sep 17 00:00:00 2001 From: ycsahara Date: Mon, 17 Mar 2025 13:18:27 +0800 Subject: [PATCH] Add .excalidraw to .gitignore, enhance README.md with Cursor integration instructions, and add mcp.json.example for configuration --- .cursor/mcp.json.example | 14 ++++++++++++++ .gitignore | 1 + README.md | 26 ++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .cursor/mcp.json.example diff --git a/.cursor/mcp.json.example b/.cursor/mcp.json.example new file mode 100644 index 0000000..799db1c --- /dev/null +++ b/.cursor/mcp.json.example @@ -0,0 +1,14 @@ +{ + "mcpServers": { + "excalidraw": { + "command": "node", + "args": [ + "/path/to/your/directory/mcp_excalidraw/src/index.js" + ], + "env": { + "LOG_LEVEL": "info", + "DEBUG": "false" + } + } + } + } \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5693cd7..8514de4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .env package-lock.json +*.excalidraw \ No newline at end of file diff --git a/README.md b/README.md index 9d5e221..6123534 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,32 @@ To use this server with the Claude Desktop application, add the following config } ``` +## Integration with Cursor + +To use this server with Cursor, create a `.cursor/mcp.json` file in your workspace with the following configuration: + +```json +{ + "mcpServers": { + "excalidraw": { + "command": "node", + "args": [ + "/path/to/your/directory/mcp_excalidraw/src/index.js" + ], + "env": { + "LOG_LEVEL": "info", + "DEBUG": "false" + } + } + } +} +``` + +Make sure to: +1. Replace `/path/to/your/directory` with the actual absolute path to your mcp_excalidraw installation +2. Create the `.cursor` directory if it doesn't exist +3. Ensure the path to `index.js` is correct and the file exists + ### Docker Integration ```json