Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

ci(deps): added installation + import of spacy and other deps with poetry

Christian78bd2b94c635
diff --git a/Dockerfile b/Dockerfile
index 215242b..a69975c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,6 +31,8 @@ COPY --chown=appuser:appuser entrypoint.sh ./
RUN chmod +x /app/entrypoint.sh && \
mkdir -p /app/.cache && \
+ poetry config virtualenvs.in-project true && \
+ poetry install --no-root --sync && \
chown -R appuser:appuser /app
USER appuser
diff --git a/README.md b/README.md
index d110608..f173ec8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://discord.gg/VTngQTaeDf"><img src="https://img.shields.io/badge/Discord-Join%20Lumen%20Brain-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord"/></a>
- <img src="https://img.shields.io/badge/version-2.7.1--dev-blue?style=for-the-badge" alt="Version"/>
+ <img src="https://img.shields.io/badge/version-2.7.2--dev-blue?style=for-the-badge" alt="Version"/>
<img src="https://img.shields.io/badge/python-3.11+-green?style=for-the-badge&logo=python&logoColor=white" alt="Python"/>
<img src="https://img.shields.io/badge/license-AGPLv3%20%2B%20Commons%20Clause-purple?style=for-the-badge" alt="License"/>
</p>
diff --git a/entrypoint.sh b/entrypoint.sh
index a1767f2..5127c23 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-if [ ! -f "/app/.venv/bin/python" ] || ! /app/.venv/bin/python -c "import torch; import sentence_transformers" 2>/dev/null; then
+if [ ! -f "/app/.venv/bin/python" ] || ! /app/.venv/bin/python -c "import torch; import sentence_transformers; import spacy" 2>/dev/null; then
echo "Installing dependencies..."
poetry config virtualenvs.in-project true
poetry lock
diff --git a/example-docker-compose.yaml b/example-docker-compose.yaml
index 22d0fb1..4cd7e81 100644
--- a/example-docker-compose.yaml
+++ b/example-docker-compose.yaml
@@ -253,6 +253,39 @@ services:
retries: 3
start_period: 60s
+ brainapi-mcp:
+ image: ghcr.io/lumen-labs/brainapi:latest
+ container_name: brainapi-mcp
+ ports:
+ - "8001:8001"
+ env_file:
+ - .env
+ command: >
+ -m uvicorn src.services.mcp.app:app
+ --host 0.0.0.0
+ --port 8001
+ --timeout-keep-alive 30
+ depends_on:
+ redis:
+ condition: service_healthy
+ neo4j:
+ condition: service_started
+ mongo:
+ condition: service_healthy
+ milvus:
+ condition: service_healthy
+ networks:
+ - appnet
+ restart: unless-stopped
+ mem_limit: 512m
+ cpus: 0.5
+ healthcheck:
+ test: ["CMD-SHELL", "code=$(curl -s -o /dev/null -w '%{http_code}' http://localhost:8001/); test \"$code\" = '200' || test \"$code\" = '405'"]
+ interval: 30s
+ timeout: 10s
+ retries: 3
+ start_period: 60s
+
networks:
appnet:
driver: bridge
diff --git a/pyproject.toml b/pyproject.toml
index ac1ea0c..745052c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "brainapi2"
-version = "2.7.1-dev"
+version = "2.7.2-dev"
description = "Version 2.x.x of the BrainAPI memory layer."
authors = [
{name = "Christian",email = "[email protected]"}
@@ -66,6 +66,8 @@ python-multipart = ">=0.0.20,<0.0.21"
sympy = ">=1.12.1,<1.14.0"
spacy = ">=3.0.0,<4.0.0"
spacy_langdetect = ">=0.1.2,<0.2.0"
+langid = ">=1.1.6,<2.0.0"
+mcp = ">=1.26.0,<2.0.0"
[tool.pylint.messages_control]
enable = ["abstract-method"]