Commit graph

4555 commits

Author SHA1 Message Date
Vasilije
6da6da5a62
Aws session token support - MSR97 (#1364)
<!-- .github/pull_request_template.md -->

## Description
PR from contributor MSR97

## 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-09-28 15:28:27 +02:00
Vasilije
be453dc850
fix: update cognee-mcp script alias and Dockerfile entrypoint (#1471)
<!-- .github/pull_request_template.md -->

## Description

Running cognee-mcp as a docker container currently fails when using
latest main version:
```
(cognee-mcp) daulet@Mac cognee-claude % docker run  -e TRANSPORT_MODE=sse -p 8001:8000 cognee/cognee-mcp:main     
Debug mode: 
Environment: 
Transport mode: sse
Debug port: 5678
HTTP port: 8000
Running database migrations...

2025-09-25T21:15:17.065171 [info     ] Logging initialized            [cognee.shared.logging_utils] cognee_version=0.3.2 database_path=/app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases graph_database_name= os_info='Linux 6.12.5-linuxkit (#1 SMP Tue Jan 21 10:23:32 UTC 2025)' python_version=3.12.11 relational_config=cognee_db structlog_version=25.4.0 vector_config=lancedb

2025-09-25T21:15:17.065330 [info     ] Database storage: /app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases [cognee.shared.logging_utils]

generated new fontManager     
Database migrations done.
Starting Cognee MCP Server with transport mode: sse

2025-09-25T21:15:24.204708 [info     ] Logging initialized            [cognee.shared.logging_utils] cognee_version=0.3.2 database_path=/app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases graph_database_name= os_info='Linux 6.12.5-linuxkit (#1 SMP Tue Jan 21 10:23:32 UTC 2025)' python_version=3.12.11 relational_config=cognee_db structlog_version=25.4.0 vector_config=lancedb

2025-09-25T21:15:24.204863 [info     ] Database storage: /app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases [cognee.shared.logging_utils]
Usage: cognee [-h] [--version] [--debug] [-ui]
              {add,search,cognify,delete,config} ...
cognee: error: argument command: invalid choice: 'sse' (choose from add, search, cognify, delete, config)
(cognee-mcp) daulet@Mac cognee-claude % 
```

This is due to both `cognee-mcp` and `cognee` (v0.3.2) projects defining
their CLI script aliases as `cognee`.

`entrypoint.sh` uses `cognee` cli, assuming it's `cognee-mcp`, which is
failing (see logs above).

While in later version of cognee we define `cognee-cli` instead of
`cognee`, it's still important to be safer and be more explicit in
`cognee-mcp` cli alias.

## Testing the fix

```
(cognee-mcp) daulet@Mac cognee-claude % docker run  -e TRANSPORT_MODE=sse -p 8001:8000 cognee/cognee-mcp:daulet-dev
Debug mode: 
Environment: 
Transport mode: sse
Debug port: 5678
HTTP port: 8000
Running database migrations...

2025-09-25T21:18:45.855092 [info     ] Logging initialized            [cognee.shared.logging_utils] cognee_version=0.3.2 database_path=/app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases graph_database_name= os_info='Linux 6.12.5-linuxkit (#1 SMP Tue Jan 21 10:23:32 UTC 2025)' python_version=3.12.11 relational_config=cognee_db structlog_version=25.4.0 vector_config=lancedb

2025-09-25T21:18:45.855270 [info     ] Database storage: /app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases [cognee.shared.logging_utils]

generated new fontManager     
Database migrations done.
Starting Cognee MCP Server with transport mode: sse

2025-09-25T21:18:53.188498 [info     ] Logging initialized            [cognee.shared.logging_utils] cognee_version=0.3.2 database_path=/app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases graph_database_name= os_info='Linux 6.12.5-linuxkit (#1 SMP Tue Jan 21 10:23:32 UTC 2025)' python_version=3.12.11 relational_config=cognee_db structlog_version=25.4.0 vector_config=lancedb

2025-09-25T21:18:53.188665 [info     ] Database storage: /app/.venv/lib/python3.12/site-packages/cognee/.cognee_system/databases [cognee.shared.logging_utils]

2025-09-25T21:18:54.272533 [info     ] Starting MCP server with transport: sse [cognee.shared.logging_utils]

2025-09-25T21:18:54.272661 [info     ] Running MCP server with SSE transport on 0.0.0.0:8000 [cognee.shared.logging_utils]
INFO:     Started server process [1]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
```

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

## Type of Change
<!-- Please check the relevant option -->
- [x] 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
- [ ] 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-09-28 15:26:19 +02:00
Vasilije
3b101ae8f1
refactor: Make relational database search more effective (#1477)
<!-- .github/pull_request_template.md -->

## Description
Enhance search results of relational db data by adding more information
on data type and content

PR also includes schema migration done by contributor ( Geoff-Robin )
from contribute to win competition

## 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
- [ ] Code refactoring
- [x] Performance improvement
- [ ] Other (please specify):

## 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**
- [x] My code follows the project's coding standards and style
guidelines
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added necessary documentation (if applicable)
- [x] All new and existing tests pass
- [x] I have searched existing PRs to ensure this change hasn't been
submitted already
- [x] I have linked any relevant issues in the description
- [x] 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-09-28 15:23:59 +02:00
Vasilije
af1603c8f9
Merge branch 'main' into feature/cog-2837-rework-limit0-for-vector-adapters 2025-09-28 15:23:27 +02:00
Vasilije
738935e9d9
feat: start mcp in ui cli command (#1472)
<!-- .github/pull_request_template.md -->

## Overall UI

<img width="1908" height="881" alt="Screenshot 2025-09-25 at 22 21 35"
src="https://github.com/user-attachments/assets/a3e26827-8e1a-47d1-8ac6-346387d6407f"
/>

## MCP connection - live

<img width="1519" height="691" alt="Screenshot 2025-09-25 at 22 22 02"
src="https://github.com/user-attachments/assets/2314242f-0998-4401-99e1-cfc745d40728"
/>

## MCP connection - disconnected

<img width="1520" height="698" alt="Screenshot 2025-09-25 at 22 22 11"
src="https://github.com/user-attachments/assets/ef13bb5e-6d50-4248-8d4c-8845becb1582"
/>


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

## 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
- [ ] 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-09-28 15:23:10 +02: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
c0d2abdf5e feat: implement MCP connection health check in header component 2025-09-27 19:31:56 +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
Vasilije
a70d2875ce
fix: Update README.md to change the URL issue of hosted solution (#1479)
<!-- .github/pull_request_template.md -->

## Description
Updated the README file to include the correct URL to the hosted
solution. Previously it tried to go as param after GitHub URL, instead I
included 'https'.

## 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)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [x] **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
- [x] 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-09-27 10:35:21 +02:00
Zameel Hassan
a97005ed90
fix: Update README.md to change the URL issue of hosted solution 2025-09-27 12:11:31 +05:30
shehab-badawy
de162cb491 feat: Add preview step to delete command
Signed-off-by: shehab-badawy <shehab.badawy001@gmail.com>
2025-09-26 22:38:16 -04:00
Igor Ilic
17fb3b49ef refactor: add visualization to schema migration 2025-09-27 01:15:30 +02:00
Igor Ilic
f93d30ae77 refactor: refactor schema migration 2025-09-27 00:41:58 +02:00
Igor Ilic
8ff58f0278 Merge branch 'enchanced_database_schema_ingestion_task' into relational-db-search 2025-09-27 00:19:33 +02:00
Igor Ilic
920bc78f15 refactor: Remove unused code 2025-09-27 00:18:57 +02:00
Geoff-Robin
2921021ca3 improved code readability by splitting code blocks under conditional statements into separate functions 2025-09-27 00:16:44 +02:00
Geoff-Robin
656894370e Edited test_relation_db_migration.py to include schema_only ingestion testcase 2025-09-27 00:16:44 +02:00
Geoff-Robin
67f948a145 solved nitpick comments 2025-09-27 00:16:44 +02:00
Geoff-Robin
e7bcf9043f solved more nitpick comments 2025-09-27 00:16:44 +02:00
Geoff-Robin
df8b80d4a9 solved more nitpick comments 2025-09-27 00:16:44 +02:00
Geoff-Robin
1e59f1594c solved more nitpick comments 2025-09-27 00:16:44 +02:00
Geoff-Robin
93c733e687 solved more nitpick comments 2025-09-27 00:16:44 +02:00
Geoff-Robin
7ec066111e Solved address configuration key inconsistency. 2025-09-27 00:16:44 +02:00
Geoff-Robin
60016a6b09 more nitpick comments solved 2025-09-27 00:16:44 +02:00
Geoff-Robin
7cf4a0daeb id mismatch risk negated 2025-09-27 00:16:44 +02:00
Geoff-Robin
1ba9e1df31 done with ruff checks 2025-09-27 00:16:44 +02:00
Geoff-Robin
51dfac359d Removed print statements used while debugging 2025-09-27 00:16:44 +02:00
Geoff-Robin
f5bb91e49d added description attribute to every schema model 2025-09-27 00:16:44 +02:00
Geoff-Robin
17df14363c integrated schema only ingestion 2025-09-27 00:16:44 +02:00
Geoff-Robin
a43f19cc59 ingest_database_schema with a slight alteration with return value as Dict[str,List[DataPoint] | DataPoint]] 2025-09-27 00:16:44 +02:00
Geoff-Robin
9d801f5fe0 Done creating models.py and ingest_database_schema.py 2025-09-27 00:16:44 +02:00
Igor Ilic
5528097e29 Merge branch 'main' into merge-main-vol6 2025-09-27 00:06:33 +02:00
Igor Ilic
39fa0180f3 refactor: Make relational database search more effective 2025-09-26 22:42:39 +02: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
Vasilije
241a4a1a66
Update README.md 2025-09-26 17:03:30 +02:00
Daulet Amirkhanov
d50455a1e6 ruff format 2025-09-26 15:14:47 +01:00
Daulet Amirkhanov
aaa9a750d3 refactor: keep "cognee" and "cognee-mcp", add deprecation warning for 'cognee' command 2025-09-26 15:13:41 +01:00
Daulet Amirkhanov
056da96995 feat: add logging distinction for mcp/backend/frontend processes for clearer output 2025-09-26 14:32:15 +01:00
Daulet Amirkhanov
c518f149f2 refactor: streamline UI server startup and port availability checks 2025-09-26 14:26:43 +01:00
Daulet Amirkhanov
a68401ee70 chore: update MCP status text to connected/disconnected 2025-09-26 13:08:14 +01:00
Igor Ilic
f44bb5dabf feat: Add update endpoint to Cognee 2025-09-26 12:44:05 +02:00
Nikoloz Turazashvili
2651b34e41 fix: Use CloudApiKeyMissingError for local mode consistency
Signed-off-by: Nikoloz Turazashvili <turazashvili@gmail.com>
2025-09-26 17:10:34 +07:00
Andrej Milicevic
bee16ea49d test: Use smaller files than Alice for tests. 2025-09-26 11:05:57 +02:00
Boris
8205734e04
Merge branch 'dev' into batch-document-handling 2025-09-26 10:35:59 +02:00
Boris
31d1be598f
Merge branch 'dev' into feat/add-mcp-to-saas-ui 2025-09-26 10:32:15 +02:00
Boris
726d4d8535
fix: limit onnxruntime version (#1473)
<!-- .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.
-->

## 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
- [ ] 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-09-26 10:21:20 +02:00
Boris Arzentar
1deab2d54e
fix: limit onnxruntime version 2025-09-26 09:57:53 +02:00
Daulet Amirkhanov
52d3870969 fix: update cognee-mcp script alias and Dockerfile entrypoint 2025-09-25 22:09:18 +01:00
Daulet Amirkhanov
80da553185 format: ruff format 2025-09-25 22:04:41 +01:00