# MCP Prompt Manager Environment Configuration
# Copy this file to .env and update the values as needed
# Git Repository source (required)
# Local path example:
PROMPT_REPO_URL=/Users/yourname/Desktop/my-local-prompts
# Or remote Git URL examples:
# PROMPT_REPO_URL=https://github.com/yourusername/my-prompts.git
# PROMPT_REPO_URL=git@github.com:yourusername/my-prompts.git
# Multiple repository URLs (optional, comma-separated)
# PROMPT_REPO_URLS=https://github.com/user1/repo1.git,https://github.com/user2/repo2.git
# System repository URL (optional, for common group prompts)
# SYSTEM_REPO_URL=https://github.com/yourusername/system-prompts.git
# Output language setting (optional, default: en)
# Options: en, zh
MCP_LANGUAGE=en
# Group filter setting (optional)
# When not set, system defaults to loading only common group
# Example: MCP_GROUPS=laravel,vue,react
# Note: System will log a message about using default groups when not set
# MCP_GROUPS=laravel,vue
# Custom storage directory (optional, default: ~/.cache/mcp-prompt-manager)
# This avoids polluting project directories with cache files
# STORAGE_DIR=/custom/path
# Git branch (optional, default: main)
# GIT_BRANCH=main
# Git retry count (optional, default: 3)
# GIT_MAX_RETRIES=3
# Git polling interval for watch mode (optional, default: 300000 milliseconds = 5 minutes)
# GIT_POLLING_INTERVAL=300000
# Cache cleanup interval (optional, default: 10000 milliseconds = 10 seconds)
# Set the interval time (in milliseconds) for periodic cleanup of expired cache items
# Recommended values: 5000-30000 milliseconds, adjust based on usage frequency
# CACHE_CLEANUP_INTERVAL=10000
# Watch mode (optional, default: false)
# Enable file watching and Git polling for automatic reload
# WATCH_MODE=false
# Log level (optional)
# Options: fatal, error, warn, info, debug, trace, silent
# Notes:
# - stderr only outputs warn/error/fatal level logs (to avoid being marked as error)
# - info/debug/trace level logs only output to file (if LOG_FILE is set)
# - If LOG_FILE is not set, info level logs are completely suppressed (to avoid confusion)
# - Production environment defaults to warn (only warnings and errors), development defaults to info
# - Setting silent completely disables log output
LOG_LEVEL=info
# Log file path (optional, strongly recommended)
# After setting this variable, all level logs will be written to file (JSON format)
# stderr still only outputs warn/error/fatal (to avoid being marked as error)
# Can be absolute or relative path (relative to project root)
# Examples:
# LOG_FILE=/tmp/mcp-prompt-manager.log
# LOG_FILE=logs/mcp.log
# Note: File is written in append mode, will not overwrite existing content
# Recommendation: Set this variable to view complete logs (including info level)
# LOG_FILE=logs/mcp.log
# Transport type (optional, default: stdio)
# Options: stdio, http, sse
# TRANSPORT_TYPE=stdio