mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

Enable debug for Openmemory mcp server

Open HelloJelly2021 opened this issue 2 months ago • 3 comments

🐛 Describe the bug

How to enable Debug for openmemory mcp server in docker-compose.yaml? services: openmemory-mcp: image: mem0/openmemory-mcp:latest build: api/ environment: - OPENAI_BASE_URL=https://api.siliconflow.cn/v1 - OPENAI_API_KEY=sk-... - USER=worker - MILVUS_HOST=x.x.x.x - MILVUS_PORT=19530 - MILVUS_DB_NAME=default ports: - "8765:8765" volumes: - ./api/:/usr/src/openmemory openmemory-ui: image: mem0/openmemory-ui:latest build: ui/ ports: - "3000:3000" environment: - NEXT_PUBLIC_API_URL=http://openmemory-mcp:8765 - NEXT_PUBLIC_USER_ID=worker

HelloJelly2021 avatar Oct 16 '25 06:10 HelloJelly2021

Hey @HelloJelly2021 in the command: > of the docker-compose file you can add in uvicorn main:app --host 0.0.0.0 --port 8765 --log-level debug --reload this to enable logging, this will help you in debugging.

parshvadaftari avatar Oct 16 '25 16:10 parshvadaftari

Thanks for your feedbacks. I updated the docker-compose.yml as you saied, but it didn't work.

services: openmemory-mcp: image: mem0/openmemory-mcp:latest build: api/ environment: - OPENAI_BASE_URL=https://api.siliconflow.cn/v1 - OPENAI_API_KEY=sk-... - USER=worker - MILVUS_HOST=10.x.x.x - MILVUS_PORT=19530 - MILVUS_DB_NAME=default ports: - "8765:8765" volumes: - ./api/:/usr/src/openmemory command: sh -c "uvicorn main:app --host 0.0.0.0 --port 8765 --log-level debug --reload"

Openmemory mc server logs as flow:

openmemory-mcp-1 | INFO: Started server process [9] openmemory-mcp-1 | INFO: Waiting for application startup. openmemory-mcp-1 | INFO: Application startup complete. openmemory-mcp-1 | INFO: 10.x.x.x:52523 - "GET /mcp/openmemory/sse/worker HTTP/1.1" 200 OK openmemory-mcp-1 | INFO: 10.x.x.x:52524 - "POST /mcp/messages/?session_id=758c392177d94a19a926713ab09c1bf2 HTTP/1.1" 200 OK openmemory-mcp-1 | INFO: 10.x.x.x:52525 - "POST /mcp/messages/?session_id=758c392177d94a19a926713ab09c1bf2 HTTP/1.1" 200 OK openmemory-mcp-1 | INFO: 10.x.x.x:64829 - "POST /mcp/messages/?session_id=758c392177d94a19a926713ab09c1bf2 HTTP/1.1" 200 OK openmemory-mcp-1 | [10/17/25 02:18:41] INFO Processing request of type server.py:664 openmemory-mcp-1 | CallToolRequest

HelloJelly2021 avatar Oct 17 '25 02:10 HelloJelly2021

This is the best way you can get the logs when using openmemory, as there's no proper debugger support for the same. Sorry for the trouble.

parshvadaftari avatar Oct 18 '25 16:10 parshvadaftari