cognee icon indicating copy to clipboard operation
cognee copied to clipboard

Can't build via uv the MCP server

Open wbste opened this issue 1 month ago • 6 comments

I believe this line should replace python with sys.executable to ensure the correct interpreter is used.

https://github.com/topoteretes/cognee/blob/487635b71b204e62a28e91f141b64ae90708d68d/cognee-mcp/src/server.py#L1102

Otherwise uvx --from git+https://github.com/topoteretes/cognee.git#subdirectory=cognee-mcp cognee-mcp fails.

wbste avatar Nov 20 '25 06:11 wbste

Hello @wbste, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

github-actions[bot] avatar Nov 20 '25 06:11 github-actions[bot]

Image

wbste avatar Nov 20 '25 06:11 wbste

Currently you need the whole cognee repo cloned and MCP installed from the cognee-mcp folder to get the migrations.

In the next Cognee version we'll also include migration scripts and we will switch to using the correct interpreter. You will be able to install it as you are trying right now

dexters1 avatar Nov 20 '25 12:11 dexters1

Very nice! Will the dependencies be simplified to? Currently buried in one of these is a bunch of cuda packages that bloats the current MCP server to many GB for no reason (as far as I can tell).

https://github.com/topoteretes/cognee/blob/487635b71b204e62a28e91f141b64ae90708d68d/cognee-mcp/pyproject.toml#L12

wbste avatar Nov 20 '25 14:11 wbste