github doobidoo/mcp-memory-service v8.62.8
v8.62.8 - Environment Configuration Loading Bug Fix

latest releases: v10.39.1, v10.39.0, v10.38.4...
3 months ago

Environment Configuration Loading Bug Fix

This patch release fixes a critical bug where the HTTP server wasn't loading .env configuration properly, causing it to default to incorrect settings.

Fixed

Environment Configuration Loading Bug (commit 626d7e8)

Problem: HTTP server wasn't loading .env configuration properly, defaulting to wrong settings:

  • OAuth enabled when it should be disabled
  • sqlite_vec backend selected instead of configured hybrid backend
  • Other environment variables not being loaded from .env files

Root Causes:

  1. python-dotenv was missing from dependencies in pyproject.toml, causing silent import failures
  2. .env loading only checked a single location (relative to config file), which failed for:
    • Source installations (pip install -e .)
    • Different working directories
    • Docker/containerized deployments
    • Windows environments with different path structures

Solution:

  • Added python-dotenv>=1.0.0 to dependencies
  • Implemented _find_and_load_dotenv() function with comprehensive multi-location search strategy:
    1. Current working directory (highest priority)
    2. Relative to config file (for source installs)
    3. Project root markers (searches for pyproject.toml)
    4. Common Windows project paths
    5. User home directory (~/.mcp-memory/.env)
  • Uses override=False to respect existing environment variables

Impact:

  • Fixes critical configuration loading issues across all deployment scenarios
  • Resolves incorrect backend selection in HTTP server
  • Ensures .env files are properly loaded in development, source installs, Docker, and Windows

Files Changed:

  • src/mcp_memory_service/config.py - Added _find_and_load_dotenv() with comprehensive search logic
  • pyproject.toml - Added python-dotenv dependency

Installation

pip install --upgrade mcp-memory-service

Upgrade Notes

No breaking changes. The fix is backward compatible. If you were experiencing configuration loading issues, this release should resolve them automatically.

Full Changelog: v8.62.7...v8.62.8

Don't miss a new mcp-memory-service release

NewReleases is sending notifications on new releases.