cocoindex-io / cocoindex-io/cocoindex-code
Failed the setup in Cline
Open
@georgeh0 is already working on this.
Since Jun 16, 2026.
documentation
help wanted
- Dominant language
- Python
- Stars
- 2.7k
- Forks
- 217
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 4
Description
Hey there, I followed the installation steps but I got stuck at an issue. The issue is that Cline fails to connect to the MCP server.
My environment
OS: Windows 11
IDE: VSCode
Coding agent: Cline (VSCode extension)
Issue
What gets written in Cline's MCP Servers window:
Error: Not in an initialized project directory. Run `ccc init` in your project root to get started. MCP error -32000: Connection closed
note that this gets shown even after it got initialized using the init command.
Steps I took
- pipx install 'cocoindex-code[full]' (with sentence-transformers)
- Added this to my
cline_mcp_settings.json:
{
"github.com/cocoindex-io/cocoindex-code": {
"command": "C:\\Users\\user\\.local\\bin\\ccc.exe", // I use windows and didnt setup PATH for it hence the full path here
"args": [
"mcp"
],
"disabled": false,
"autoApprove": []
}
}
- After this point, it gets registered in Cline's
MCP Serverswindow, but it shows the error message as mentioned above. So I initialized it using the command:C:\\Users\\user\\.local\\bin\\ccc.exe init
- A folder
.cocoindex_codehas been created and I tried some commands via console like:C:\\Users\\user\\.local\\bin\\ccc.exe index- Works perfectly
- Cline still shows the error, I restart VSCode and the issue remains.
Anyone knows what the issue could be? Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.