<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced code search and dependency analysis for improved accuracy. - Introduced a new high-performance text embedding option. - Added an additional execution entry point for code graph processing. - New optional parameters for flexible property selection in retrieval functions. - Introduced new classes for handling import statements, function definitions, and class definitions. - Updated embedding engine selection based on configuration options. - **Bug Fixes** - Improved error handling in search operations and database queries for a more stable user experience. - Enhanced error logging for source code parsing. - **Refactor** - Streamlined asynchronous processing and refactored internal dependency extraction. - Updated configuration and integration settings to enhance overall reliability. - Restructured functions for simplified dependency handling. - **Chores** - Upgraded and reorganized dependency management with optional libraries for extended functionality. - Added new secret parameters for embedding configuration in workflow settings. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: vasilije <vas.markovic@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .python-version | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
cognee MCP server
Installing Manually
A MCP server project
-
Clone the cognee repo
-
Install dependencies
brew install uv
cd cognee-mcp
uv sync --dev --all-extras --reinstall
- Activate the venv with
source .venv/bin/activate
- Add the new server to your Claude config:
The file should be located here: ~/Library/Application\ Support/Claude/
cd ~/Library/Application\ Support/Claude/
You need to create claude_desktop_config.json in this folder if it doesn't exist Make sure to add your paths and LLM API key to the file bellow Use your editor of choice, for example Nano:
nano claude_desktop_config.json
{
"mcpServers": {
"cognee": {
"command": "/Users/{user}/cognee/.venv/bin/uv",
"args": [
"--directory",
"/Users/{user}/cognee/cognee-mcp",
"run",
"cognee"
],
"env": {
"ENV": "local",
"TOKENIZERS_PARALLELISM": "false",
"LLM_API_KEY": "sk-"
}
}
}
}
Restart your Claude desktop.
Installing via Smithery
To install Cognee for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install cognee --client claude
Define cognify tool in server.py Restart your Claude desktop.
To use debugger, run:
mcp dev src/server.py
Open inspector with timeout passed:
http://localhost:5173?timeout=120000
To apply new changes while developing cognee you need to do:
poetry lockin cognee folderuv sync --dev --all-extras --reinstallmcp dev src/server.py