cognee-mcp 0.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,206 @@
1
+ .data
2
+ .env
3
+ .local.env
4
+ .prod.env
5
+ cognee/.data/
6
+
7
+ code_pipeline_output*/
8
+
9
+ # Test output files
10
+ test_outputs/
11
+
12
+ *.lance/
13
+ .DS_Store
14
+ # Byte-compiled / optimized / DLL files
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+
19
+ full_run.ipynb
20
+
21
+ # C extensions
22
+ *.so
23
+
24
+ # Distribution / packaging
25
+ .Python
26
+ build/
27
+ develop-eggs/
28
+ dist/
29
+ downloads/
30
+ eggs/
31
+ .eggs/
32
+ lib/
33
+ lib64/
34
+ parts/
35
+ sdist/
36
+ var/
37
+ wheels/
38
+ share/python-wheels/
39
+ *.egg-info/
40
+ .installed.cfg
41
+ *.egg
42
+ .python-version
43
+ cognee-mcp/.python-version
44
+ MANIFEST
45
+
46
+ # PyInstaller
47
+ # Usually these files are written by a python script from a template
48
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
49
+ *.manifest
50
+ *.spec
51
+
52
+ # Installer logs
53
+ pip-log.txt
54
+ pip-delete-this-directory.txt
55
+
56
+ # Unit test / coverage reports
57
+ htmlcov/
58
+ .tox/
59
+ .nox/
60
+ .coverage
61
+ .coverage.*
62
+ .cache
63
+ nosetests.xml
64
+ coverage.xml
65
+ *.cover
66
+ *.py,cover
67
+ .hypothesis/
68
+ .pytest_cache/
69
+ cover/
70
+
71
+ # Translations
72
+ *.mo
73
+ *.pot
74
+
75
+ # Django stuff:
76
+ *.log
77
+ local_settings.py
78
+ db.sqlite3
79
+ db.sqlite3-journal
80
+
81
+ # Cognee logs directory - keep directory, ignore contents
82
+ logs/*
83
+ !logs/.gitkeep
84
+ !logs/README.md
85
+
86
+ # Flask stuff:
87
+ instance/
88
+ .webassets-cache
89
+
90
+ # Scrapy stuff:
91
+ .scrapy
92
+
93
+ # Sphinx documentation
94
+ docs/_build/
95
+
96
+ # PyBuilder
97
+ .pybuilder/
98
+ target/
99
+
100
+ # Jupyter Notebook
101
+ .ipynb_checkpoints
102
+
103
+ # IPython
104
+ profile_default/
105
+ ipython_config.py
106
+
107
+ # pyenv
108
+ # For a library or package, you might want to ignore these files since the code is
109
+ # intended to run in multiple environments; otherwise, check them in:
110
+ # .python-version
111
+
112
+ # pipenv
113
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
114
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
115
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
116
+ # install all needed dependencies.
117
+ #Pipfile.lock
118
+
119
+ # poetry
120
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
121
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
122
+ # commonly ignored for libraries.
123
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
124
+ #poetry.lock
125
+
126
+ # pdm
127
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
128
+ #pdm.lock
129
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
130
+ # in version control.
131
+ # https://pdm.fming.dev/#use-with-ide
132
+ .pdm.toml
133
+
134
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
135
+ __pypackages__/
136
+
137
+ # Celery stuff
138
+ celerybeat-schedule
139
+ celerybeat.pid
140
+
141
+ # SageMath parsed files
142
+ *.sage.py
143
+
144
+ # Environments
145
+ .env
146
+ .env.local
147
+ .venv
148
+ env/
149
+ venv/
150
+ ENV/
151
+ env.bak/
152
+ venv.bak/
153
+ mise.toml
154
+ deployment/helm/values-local.yml
155
+
156
+ # Spyder project settings
157
+ .spyderproject
158
+ .spyproject
159
+
160
+ # Rope project settings
161
+ .ropeproject
162
+
163
+ # mkdocs documentation
164
+ /site
165
+
166
+ # mypy
167
+ .mypy_cache/
168
+ .dmypy.json
169
+ dmypy.json
170
+
171
+ # Pyre type checker
172
+ .pyre/
173
+
174
+ # pytype static type analyzer
175
+ .pytype/
176
+
177
+ # Cython debug symbols
178
+ cython_debug/
179
+
180
+ # PyCharm
181
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
182
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
183
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
184
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
185
+ .idea/
186
+
187
+ .vscode/
188
+ cognee/data/
189
+ cognee/cache/
190
+
191
+ # Default cognee system directory, used in development
192
+ .cognee_system/
193
+ .data_storage/
194
+ .cognee_cache/
195
+ .artifacts/
196
+ .anon_id
197
+
198
+ node_modules/
199
+
200
+ # Evals
201
+ SWE-bench_testsample/
202
+
203
+ # ChromaDB Data
204
+ .chromadb_data/
205
+
206
+ deployment/helm/values-local.yml
@@ -0,0 +1,60 @@
1
+ # Use a Python image with uv pre-installed
2
+ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
3
+
4
+ # Install the project into `/app`
5
+ WORKDIR /app
6
+
7
+ # Enable bytecode compilation
8
+ # ENV UV_COMPILE_BYTECODE=1
9
+
10
+ # Copy from the cache instead of linking since it's a mounted volume
11
+ ENV UV_LINK_MODE=copy
12
+
13
+ # Set build argument
14
+ ARG DEBUG
15
+
16
+ # Set environment variable based on the build argument
17
+ ENV DEBUG=${DEBUG}
18
+
19
+ # Copy pyproject.toml and lockfile first for better caching
20
+ COPY ./cognee-mcp/pyproject.toml ./cognee-mcp/uv.lock ./cognee-mcp/entrypoint.sh ./
21
+
22
+ # Install the project's dependencies using the lockfile and settings
23
+ RUN --mount=type=cache,target=/root/.cache/uv \
24
+ uv sync --frozen --no-install-project --no-dev --no-editable
25
+
26
+ # Then, add the rest of the project source code and install it
27
+ # Installing separately from its dependencies allows layer caching
28
+ COPY ./cognee-mcp /app
29
+ RUN --mount=type=cache,target=/root/.cache/uv \
30
+ uv sync --frozen --no-dev --no-editable
31
+
32
+ FROM python:3.12-slim-bookworm
33
+
34
+ RUN apt-get update && apt-get install -y \
35
+ libpq5 \
36
+ && rm -rf /var/lib/apt/lists/*
37
+
38
+ WORKDIR /app
39
+
40
+ # Copy the virtual environment from the uv stage
41
+ COPY --from=uv /usr/local /usr/local
42
+ COPY --from=uv /app /app
43
+
44
+ # Strip Windows carriage returns (fixes "no such file" on Windows Docker)
45
+ RUN sed -i 's/\r$//' /app/entrypoint.sh && chmod +x /app/entrypoint.sh
46
+
47
+ # Place executables in the environment at the front of the path
48
+ ENV PATH="/app/.venv/bin:$PATH"
49
+
50
+ # Set environment variables for MCP server
51
+ ENV PYTHONUNBUFFERED=1
52
+ ENV MCP_LOG_LEVEL=DEBUG
53
+ ENV PYTHONPATH=/app
54
+
55
+ # Add labels for API mode usage
56
+ LABEL org.opencontainers.image.description="Cognee MCP Server with API mode support"
57
+
58
+ # Use the application name from pyproject.toml for normal operation
59
+ # For testing, we'll override this with a direct command
60
+ ENTRYPOINT ["/app/entrypoint.sh"]