Commit graph

89 commits

Author SHA1 Message Date
Igor Ilic
c29fb51619
Merge branch 'dev' into fix-mcp-migrations 2026-01-20 16:18:44 +01:00
Igor Ilic
255f7c7a4a refactor: add fix for database creation to mcp 2026-01-16 22:32:38 +01:00
Igor Ilic
b6d7fe21de Merge branch 'dev' into fix-mcp-migrations 2026-01-16 22:20:59 +01:00
hajdul88
abb45c65d7 feat: adding and fixing mcp tool logging 2026-01-15 18:03:47 +01:00
Igor Ilic
dc48d2f992 refactor: set top_k value to 10 2026-01-13 14:24:31 +01:00
Igor Ilic
b689d330ac Merge branch 'main' into main-merge-vol9 2026-01-13 14:22:22 +01:00
Igor Ilic
69fe35bdee refactor: add ruff formatting 2026-01-08 13:32:15 +01:00
Igor Ilic
be738df88a refactor: Use same default_k value in MCP as for Cognee 2026-01-08 12:47:42 +01:00
AnveshJarabani
6a5ba70ced
docs: Add comprehensive docstrings and fix default top_k consistency
Address PR feedback from CodeRabbit AI:
- Add detailed docstring for search_task internal function
- Document top_k parameter in main search function docstring
- Fix default top_k inconsistency (was 10 in client, now 5 everywhere)
- Clarify performance implications of different top_k values

Changes:
- server.py: Add top_k parameter documentation and search_task docstring
- cognee_client.py: Change default top_k from 10 to 5 for consistency

This ensures consistent behavior across the MCP call chain and
provides clear guidance for users on choosing appropriate top_k values.
2026-01-03 01:33:13 -06:00
AnveshJarabani
7ee36f883b
Fix: Add top_k parameter support to MCP search tool
## Problem
The MCP search wrapper doesn't expose the top_k parameter, causing:
- Unlimited result returns (113KB+ responses)
- Extremely slow search performance (30+ seconds for GRAPH_COMPLETION)
- Context window exhaustion in production use

## Solution
1. Add top_k parameter (default=5) to MCP search tool in server.py
2. Thread parameter through search_task internal function
3. Forward top_k to cognee_client.search() call
4. Update cognee_client.py to pass top_k to core cognee.search()

## Impact
- **Performance**: 97% reduction in response size (113KB → 3KB)
- **Latency**: 80-90% faster (30s → 2-5s for GRAPH_COMPLETION)
- **Backward Compatible**: Default top_k=5 maintains existing behavior
- **User Control**: Configurable from top_k=3 (quick) to top_k=20 (comprehensive)

## Testing
-  Code review validates proper parameter threading
-  Backward compatible (default value ensures no breaking changes)
-  Production usage confirms performance improvements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-03 01:27:16 -06:00
Igor Ilic
21407dd9ed test: Resolve silent mcp test 2025-12-16 12:03:49 +01:00
Igor Ilic
882abaf83c
Merge branch 'dev' into fix-mcp-migrations 2025-12-15 16:45:57 +01:00
Igor Ilic
8815c5ee0d refactor: Package Cognee migrations with library 2025-12-15 16:28:50 +01:00
Andrej Milicevic
116b6f1eeb chore: formatting 2025-12-12 13:46:16 +01:00
Andrej Milicevic
a225d7fc61 test: revert some changes 2025-12-12 13:44:58 +01:00
Andrej Milicevic
a337f4e54c test: testing logger 2025-12-12 13:02:55 +01:00
Andrej Milicevic
bce6094010 test: change logger 2025-12-12 12:43:54 +01:00
Andrej Milicevic
c48b274571 test: remove delete error from mcp test 2025-12-12 11:53:40 +01:00
Andrej Milicevic
3b8a607b5f test: fix errors in mcp test 2025-12-12 11:37:27 +01:00
Andrej Milicevic
248ba74592 test: remove codify-related stuff from mcp test 2025-12-11 18:18:42 +01:00
Andrej Milicevic
5a2a5f64d2 merge dev 2025-11-26 11:04:11 +01:00
Pavel Zorin
c6454338f9 Fix: MCP remove cognee.add() preprequisite from the doc 2025-11-13 17:35:16 +01:00
Andrej Milicevic
21b1f6b39c fix: remove add_ and get_developer_rules 2025-11-07 18:28:30 +01:00
Igor Ilic
96c8bba580 refactor: Add db creation as step in MCP creation 2025-11-06 19:12:09 +01:00
Andrej Milicevic
c481b87d58 refactor: Remove codify and code_graph pipeline from main repo 2025-11-05 12:56:17 +01:00
vasilije
23e219b547 add format 2025-10-25 11:59:46 +02:00
vasilije
67c700db3b removed coding assistance 2025-10-25 11:58:34 +02:00
Vasilije
4ac49dd27f
Merge branch 'dev' into feat/mcp-add-support-for-non-standalone-mode 2025-10-12 13:57:55 +02:00
Vasilije
fa7aa38b8f
COG-3050 - remove insights search (#1506)
<!-- .github/pull_request_template.md -->

## Description
<!--
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

As per COG-3050:
1. Remove insights search type and clean up any orphaned code
2. Replace callsites with default search type - `GRAPH_COMPLETION` -
where applicable

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## 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.
2025-10-11 09:09:56 +02:00
Daulet Amirkhanov
d480ea23a1 docs: clarify API_TOKEN requirement in README and improve JSON handling in CogneeClient 2025-10-10 16:03:16 +01:00
Daulet Amirkhanov
c7ca4c6782 chore: update Docker image comment and improve import handling for CogneeClient 2025-10-10 16:02:58 +01:00
Daulet Amirkhanov
fb03f9ce93
Merge branch 'dev' into feat/mcp-add-support-for-non-standalone-mode 2025-10-10 14:22:16 +01:00
Daulet Amirkhanov
0031a13f44 Refactor initialization of CogneeClient to use bool for API mode determination 2025-10-09 16:09:43 +01:00
Daulet Amirkhanov
bd49dd7bb5 Configure cognee-cli -ui mcp to connect to cognee backend 2025-10-09 14:01:28 +01:00
hajdul88
faeca138d9
fix: fixes distributed pipeline (#1454)
<!-- .github/pull_request_template.md -->

## Description
This PR fixes distributed pipeline + updates core changes in distr
logic.

## Type of Change
<!-- Please check the relevant option -->
- [x] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [x] Code refactoring
- [x] Performance improvement
- [ ] Other (please specify):

## Changes Made
Fixes distributed pipeline:
-Changed spawning logic + adds incremental loading to
run_tasks_diistributed
-Adds batching to consumer nodes
-Fixes consumer stopping criteria by adding stop signal + handling
-Changed edge embedding solution to avoid huge network load in a case of
a multicontainer environment

## Testing
Tested it by running 1GB on modal + manually

## Screenshots/Videos (if applicable)
None

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [x] **I have tested my changes thoroughly before submitting this PR**
- [x] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
None

## Additional Notes
None

## 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.

---------

Co-authored-by: Boris <boris@topoteretes.com>
Co-authored-by: Boris Arzentar <borisarzentar@gmail.com>
2025-10-09 14:06:25 +02:00
Daulet Amirkhanov
3e23c96595 route server tools calls through cognee_client 2025-10-08 18:36:44 +01:00
Daulet Amirkhanov
806298d508 create cognee_client for handling api calls 2025-10-08 18:36:08 +01:00
Daulet Amirkhanov
97f90c95ed Remove all references to SearchType.INSIGHTS across the codebase, meaningfully replacing it with SearchType.GRAPH_COMPLETION where applicable. 2025-10-08 12:13:59 +01:00
Daulet Amirkhanov
63a1463073 Deprecate SearchType.INSIGHTS, replace all references to default search type - SearchType.GRAPH_COMPLETION 2025-10-08 12:13:59 +01:00
Daulet Amirkhanov
dda44b0a4b chore: change cognee-mcp deprecation message 2025-10-07 19:30:25 +01:00
Daulet Amirkhanov
0bf3490d63 chore: update cognee-cli to use MCP Docker image from main. Bring back deprecation warnings 2025-10-01 16:16:06 +01:00
Daulet Amirkhanov
0fac104fc7 fix: update UI server startup message to reflect dynamic frontend port 2025-09-27 20:11:39 +01:00
Daulet Amirkhanov
dc1669a948 feat: add CORS middleware support for SSE and HTTP transports in MCP server 2025-09-27 19:31:39 +01:00
Daulet Amirkhanov
143d9433b1 refactor: remove text parameter from subprocess call in UI startup 2025-09-26 17:53:17 +01:00
Daulet Amirkhanov
b7441f81cd feat: add health check endpoint to MCP server 2025-09-26 16:29:14 +01:00
Igor Ilic
093dc2f5e3 chore: Update MCP version 2025-09-11 23:41:24 +02:00
Igor Ilic
e29c16edc5 fix: Return coding rules to MCP 2025-09-01 16:31:10 +02:00
Igor Ilic
d4ce0e18fd Merge branch 'main' into merge-main-vol-6 2025-08-27 14:21:25 +02:00
vasilije
d69669b527 added ability to send custom prompts to cognify 2025-08-22 12:37:51 +02:00
vasilije
0bc02a522a added fix 2025-08-18 17:12:26 +02:00