Skip to content

Failed the setup in Cline #186

Description

@Milunnn

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationhelp wantedExtra attention is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions