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