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 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
- 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
- Cline still shows the error, I restart VSCode and the issue remains.
Anyone knows what the issue could be? Thanks
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 Serverswindow:Error: Not in an initialized project directory. Run `ccc init` in your project root to get started. MCP error -32000: Connection closednote that this gets shown even after it got initialized using the init command.
Steps I took
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": [] } }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.cocoindex_codehas been created and I tried some commands via console like:C:\\Users\\user\\.local\\bin\\ccc.exe indexAnyone knows what the issue could be? Thanks