The Memory Core MCP server entry point (mcp-stdio.mjs) has been refactored to implement a more robust and informative startup sequence, leveraging the recent enhancements to the HealthService.
Key Changes:
- Proactive Startup Health Check: The server now performs a comprehensive health check immediately upon starting.
- Detailed Status Logging: Based on the health status (
healthy, degraded, unhealthy), the server logs detailed, user-friendly messages, including actionable tips for resolving issues (e.g., how to start the ChromaDB if it's not running).
- Automatic Session Summarization: If the health check passes and the
GEMINI_API_KEY is configured, the server automatically triggers a background task to summarize any previously unsummarized sessions.
- Tool Execution Gatekeeper: The main tool handler now calls
HealthService.ensureHealthy() before executing most tools. This prevents operations from failing with cryptic errors if a dependency is down.
- Precise Health Check Exemptions: The logic for skipping the health check has been refined from a broad string match (
.includes('database')) to a specific allow-list (['healthcheck', 'start_database', 'stop_database']), making it safer and more explicit.
These changes improve the server's resilience, provide better feedback to the user, and automate routine maintenance tasks.
The Memory Core MCP server entry point (
mcp-stdio.mjs) has been refactored to implement a more robust and informative startup sequence, leveraging the recent enhancements to theHealthService.Key Changes:
healthy,degraded,unhealthy), the server logs detailed, user-friendly messages, including actionable tips for resolving issues (e.g., how to start the ChromaDB if it's not running).GEMINI_API_KEYis configured, the server automatically triggers a background task to summarize any previously unsummarized sessions.HealthService.ensureHealthy()before executing most tools. This prevents operations from failing with cryptic errors if a dependency is down..includes('database')) to a specific allow-list (['healthcheck', 'start_database', 'stop_database']), making it safer and more explicit.These changes improve the server's resilience, provide better feedback to the user, and automate routine maintenance tasks.