Spaces:
Runtime error
Runtime error
deploy YourMemory MCP server
Browse files- Dockerfile +26 -0
- README.md +2 -9
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
LABEL io.modelcontextprotocol.server.name="io.github.sachitrafa/yourmemory"
|
| 4 |
+
|
| 5 |
+
ENV PYTHONIOENCODING=utf-8 \
|
| 6 |
+
PYTHONDONTWRITEBYTECODE=1 \
|
| 7 |
+
PYTHONUNBUFFERED=1
|
| 8 |
+
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
|
| 11 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 12 |
+
build-essential \
|
| 13 |
+
curl \
|
| 14 |
+
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 15 |
+
&& apt-get install -y nodejs \
|
| 16 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
+
|
| 18 |
+
RUN pip install --no-cache-dir yourmemory && \
|
| 19 |
+
python -m spacy download en_core_web_sm && \
|
| 20 |
+
python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('multi-qa-mpnet-base-dot-v1')"
|
| 21 |
+
|
| 22 |
+
RUN mkdir -p /root/.yourmemory
|
| 23 |
+
|
| 24 |
+
EXPOSE 8000
|
| 25 |
+
|
| 26 |
+
CMD ["npx", "-y", "supergateway", "--stdio", "yourmemory --stdio", "--port", "8000"]
|
README.md
CHANGED
|
@@ -1,12 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji: 📉
|
| 4 |
-
colorFrom: green
|
| 5 |
-
colorTo: yellow
|
| 6 |
sdk: docker
|
| 7 |
-
|
| 8 |
-
license: cc-by-nc-4.0
|
| 9 |
-
short_description: YourMemory MCP
|
| 10 |
---
|
| 11 |
-
|
| 12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: YourMemory MCP
|
|
|
|
|
|
|
|
|
|
| 3 |
sdk: docker
|
| 4 |
+
app_port: 8000
|
|
|
|
|
|
|
| 5 |
---
|
|
|
|
|
|