From 77ac189ccb3fabbb8f0350efe7d9523571b640a3 Mon Sep 17 00:00:00 2001
From: monsterlag <64719697+monsterlag@users.noreply.github.com>
Date: Thu, 22 Oct 2026 05:14:08 +0000
Subject: [PATCH] docs: document Cursor MCP setup
---
README.md | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/README.md b/README.md
index 77bae52..41b819e 100644
--- a/README.md
+++ b/README.md
@@ -179,6 +179,31 @@ codex mcp add cocoindex-code -- ccc mcp
```
+
+Cursor
+
+After installing `ccc` above, run `ccc init` in your project root once to configure the project and embedding model. Then add this to `.cursor/mcp.json` in that project:
+
+```json
+{
+ "mcpServers": {
+ "cocoindex-code": {
+ "type": "stdio",
+ "command": "ccc",
+ "args": ["mcp"],
+ "env": {
+ "COCOINDEX_CODE_HOST_CWD": "${workspaceFolder}"
+ }
+ }
+ }
+}
+```
+
+Cursor expands `${workspaceFolder}` to the project root, so the server uses the right project regardless of Cursor's launch directory.
+
+If Cursor cannot find `ccc`, replace the `command` value with the absolute path to the installed `ccc` executable. Enable `cocoindex-code` in Cursor's MCP server list. See [Cursor's MCP documentation](https://cursor.com/docs/mcp) for configuration details.
+
+
OpenCode