cocoindex-io / cocoindex-io/cocoindex-code

Failed the setup in Cline

Open
#186 3 comments 1 reaction 1 assignee View on GitHub

@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

  1. pipx install 'cocoindex-code[full]' (with sentence-transformers)
  2. 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": []
    }
}
  1. After this point, it gets registered in Cline's MCP Servers window, but it shows the error message as mentioned above. So I initialized it using the command:
    • C:\\Users\\user\\.local\\bin\\ccc.exe init
  2. A folder .cocoindex_code has been created and I tried some commands via console like:
    • C:\\Users\\user\\.local\\bin\\ccc.exe index
    • Works perfectly
  3. Cline still shows the error, I restart VSCode and the issue remains.

Anyone knows what the issue could be? Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.