# ============================================================================= # MCP Server - Environment Variables # ============================================================================= # Copy this file to .env and fill in the values. # cp .env.example .env # ============================================================================= # DATABASE (REQUIRED) # ============================================================================= # Local development (if sharing SQLite with memento-note): # DATABASE_URL="file:../memento-note/prisma/dev.db" # PostgreSQL: DATABASE_URL="postgresql://memento:memento@localhost:5432/memento" # ============================================================================= # MCP SERVER MODE # ============================================================================= # 'stdio' = Standard I/O (Claude Desktop, Cline, etc.) # 'sse' = Server-Sent Events / HTTP (N8N, remote access, port 3001) MCP_MODE="stdio" # ============================================================================= # SSE MODE SETTINGS (only if MCP_MODE="sse") # ============================================================================= # Port for HTTP/SSE mode # PORT=3001 # Request timeout in milliseconds (default: 30000) # MCP_REQUEST_TIMEOUT=30000 # Log level: debug, info, warn, error (default: info) # MCP_LOG_LEVEL=info # ============================================================================= # AUTHENTICATION (SSE mode only) # ============================================================================= # Enable authentication (default: false in dev mode) # MCP_REQUIRE_AUTH=false # Static API key for authentication (if MCP_REQUIRE_AUTH=true) # MCP_API_KEY="your-secret-api-key" # ============================================================================= # APPLICATION # ============================================================================= # Base URL of the Memento web app (for generating links in responses) # APP_BASE_URL="http://localhost:3000" # Filter data to a specific user ID (optional, null = all users) # USER_ID=""