Hello,
I do
uv run python -m cocoindex_code_mcp_server.main_mcp_server --port 3033 /mnt/c/Users/user1/IdeaProjects/MyProject
The project contains jqwidgets/jqx-all.js. The server starts processing files and will always crash on the same file. Here is the log:
[2026-03-16T17:24:09Z ERROR cocoindex_engine::execution::source_indexer] Error in processing row from flow CodeEmbedding source files_2 with key: {"src/main/webapp/script/jqwidgets/jqx-all.js"}
Caused by:
0: error communicating with database: Broken pipe (os error 32)
1: Broken pipe (os error 32)
[2026-03-17T07:37:20Z ERROR cocoindex_engine::execution::source_indexer] Error in processing row from flow CodeEmbedding source files_2 with key: {"src/main/webapp/script/jqwidgets/jqx-all.js"}
Caused by:
0: error communicating with database: Broken pipe (os error 32)
1: Broken pipe (os error 32)
postgress log
2026-03-17 07:37:20.358 UTC [36] LOG: invalid message length
The DB is OK and still running after crash. But DB log contains message "invalid message length" at the same timestamp. The js file is included in this message. I believe the problem is that the js file is more than 2MB in size. Unfortunately some js libraries are using this technique to pack all library source code into one file. But the MCP server code should be able to handle this.
PS Because you are using backticks in the logging (very bad idea) the github can't format this message properly. The backticks should never be used casually in source code. They are used in Markdown for special purpose just because there is low probability it will be used in source code.
jqx-all.js
Hello,
I do
uv run python -m cocoindex_code_mcp_server.main_mcp_server --port 3033 /mnt/c/Users/user1/IdeaProjects/MyProjectThe project contains jqwidgets/jqx-all.js. The server starts processing files and will always crash on the same file. Here is the log:
The DB is OK and still running after crash. But DB log contains message "invalid message length" at the same timestamp. The js file is included in this message. I believe the problem is that the js file is more than 2MB in size. Unfortunately some js libraries are using this technique to pack all library source code into one file. But the MCP server code should be able to handle this.
PS Because you are using backticks in the logging (very bad idea) the github can't format this message properly. The backticks should never be used casually in source code. They are used in Markdown for special purpose just because there is low probability it will be used in source code.
jqx-all.js