1- # =============================================================================
2- # VIBE CODER MCP SERVER ENVIRONMENT CONFIGURATION
3- # =============================================================================
4- # This file contains all environment variables used by the Vibe Coder MCP Server.
5- # Copy this file to .env and configure the values according to your setup.
1+ # Vibe Coder MCP Configuration
2+ # Generated by setup wizard
63
7- # =============================================================================
8- # REQUIRED CONFIGURATION
9- # =============================================================================
4+ # Required: Your OpenRouter API key
5+ OPENROUTER_API_KEY = " YOUR_OPENROUTER_API_KEY_HERE"
106
11- # OpenRouter API Configuration (REQUIRED)
12- OPENROUTER_API_KEY = YOUR_OPENROUTER_API_KEY_HERE
13- # Get your API key from: https://openrouter.ai/
7+ # Directory Configuration
8+ VIBE_CODER_OUTPUT_DIR = " ./VibeCoderOutput"
149
15- # =============================================================================
16- # OPTIONAL LLM MODEL CONFIGURATION
17- # =============================================================================
10+ # Legacy Directory Configuration (Fallbacks)
11+ CODE_MAP_ALLOWED_DIR = " ."
12+ VIBE_TASK_MANAGER_READ_DIR = " ."
13+ VIBE_TASK_MANAGER_SECURITY_MODE = " strict"
1814
19- # OpenRouter Base URL (default: https://openrouter.ai/api/v1)
20- # OPENROUTER_BASE_URL="https://openrouter.ai/api/v1"
21-
22- # Preferred models for different tasks
23- # GEMINI_MODEL="google/gemini-2.5-flash-preview-05-20"
24- # PERPLEXITY_MODEL="perplexity/sonar-deep-research"
25-
26- # =============================================================================
27- # SERVER CONFIGURATION
28- # =============================================================================
29-
30- # Application Environment (development, production, test)
31- # NODE_ENV="production"
32-
33- # Logging Configuration
34- # LOG_LEVEL="info"
35-
36- # SSE Server Port (default: 3000)
37- # SSE_PORT=3000
38-
39- # HTTP Agent Port (default: 3011)
40- # HTTP_AGENT_PORT=3011
41-
42- # =============================================================================
43- # CLI CONFIGURATION
44- # =============================================================================
45-
46- # CLI Output Format (text, json, yaml)
47- # VIBE_CLI_DEFAULT_FORMAT="text"
48-
49- # CLI Verbosity Level (quiet, normal, verbose)
50- # VIBE_CLI_VERBOSITY="normal"
51-
52- # Enable CLI Colors (true, false)
53- # VIBE_CLI_COLORS="true"
54-
55- # CLI Session Persistence
56- # VIBE_CLI_PERSIST_SESSIONS="true"
57-
58- # Setup Wizard Configuration
59- # VIBE_SETUP_AUTO_RUN="true"
60- # VIBE_SETUP_SKIP_VALIDATION="false"
61-
62- # =============================================================================
63- # 🆕 UNIFIED PROJECT ROOT CONFIGURATION (v0.2.4+) - RECOMMENDED
64- # =============================================================================
65-
66- # Single variable for all project operations (replaces separate tool configurations)
67- # Set this to your project's root directory for unified configuration across all tools
68- # VIBE_PROJECT_ROOT="/path/to/your/project"
69-
70- # Enable automatic project root detection for CLI users
71- # Set to "true" for CLI usage (zero configuration), "false" for MCP client usage
72- # VIBE_USE_PROJECT_ROOT_AUTO_DETECTION="true"
73-
74- # =============================================================================
75- # DIRECTORY CONFIGURATION
76- # =============================================================================
77-
78- # Base output directory for all tools (default: ./VibeCoderOutput)
79- # VIBE_CODER_OUTPUT_DIR="/path/to/your/output/directory"
80-
81- # LLM Configuration File Path (default: ./llm_config.json)
82- # LLM_CONFIG_PATH="/absolute/path/to/llm_config.json"
83-
84- # Port Allocator Instance Tracking Directory (default: OS temp directory)
85- # VIBE_CODER_INSTANCE_DIR="/path/to/your/output/directory/.temp/instances"
86-
87- # =============================================================================
88- # LEGACY DIRECTORY CONFIGURATION (Still Supported for Backward Compatibility)
89- # =============================================================================
90- # These variables are used as fallbacks if VIBE_PROJECT_ROOT is not set
91-
92- # Task Manager Read Directory (for file operations)
93- # VIBE_TASK_MANAGER_READ_DIR="/path/to/your/project/directory"
94-
95- # Code Map Allowed Directory (for code analysis)
96- # CODE_MAP_ALLOWED_DIR="/path/to/your/codebase/directory"
97-
98- # =============================================================================
99- # SECURITY CONFIGURATION
100- # =============================================================================
101-
102- # Security Features
103- # VIBE_SECURITY_ENABLED="true"
104- # VIBE_SECURITY_STRICT_MODE="true"
105- # VIBE_SECURITY_LOG_VIOLATIONS="true"
106-
107- # Path Security
108- # VIBE_PATH_SECURITY_ENABLED="true"
109- # VIBE_PATH_ALLOW_SYMLINKS="false"
110-
111- # Data Sanitization
112- # VIBE_DATA_SANITIZATION_ENABLED="true"
113-
114- # Lock Management
115- # VIBE_LOCK_TIMEOUT="30000"
116- # VIBE_DEADLOCK_DETECTION="true"
117-
118- # Performance Monitoring
119- # VIBE_SECURITY_PERFORMANCE_THRESHOLD="50"
120-
121- # =============================================================================
122- # FEATURE FLAGS
123- # =============================================================================
124-
125- # Code Map Generator Features
126- # ENHANCED_FUNCTION_DETECTION="true"
127- # CONTEXT_ANALYSIS="true"
128- # FRAMEWORK_DETECTION="true"
129- # ROLE_IDENTIFICATION="true"
130- # HEURISTIC_NAMING="true"
131- # MEMORY_OPTIMIZATION="true"
132-
133- # =============================================================================
134- # DEVELOPMENT & DEBUGGING
135- # =============================================================================
136-
137- # Development Mode Settings (uncomment for development)
138- # NODE_ENV="development"
139- # LOG_LEVEL="debug"
140-
141- # Performance Monitoring
142- # ENABLE_PERFORMANCE_MONITORING="true"
143-
144- # =============================================================================
145- # CONFIGURATION NOTES
146- # =============================================================================
147- #
148- # 🆕 UNIFIED CONFIGURATION BENEFITS (v0.2.4+):
149- # - One variable (VIBE_PROJECT_ROOT) replaces multiple tool-specific variables
150- # - Zero configuration for CLI users with auto-detection enabled
151- # - Context-aware behavior for different usage modes (CLI vs MCP client)
152- # - Backward compatible with existing legacy configurations
153- #
154- # TRANSPORT-SPECIFIC BEHAVIOR:
155- # - CLI Transport: Uses auto-detection if enabled, otherwise VIBE_PROJECT_ROOT
156- # - STDIO/MCP Transport: Uses VIBE_PROJECT_ROOT from environment or client config
157- # - Legacy variables (CODE_MAP_ALLOWED_DIR, VIBE_TASK_MANAGER_READ_DIR) used as fallbacks
158- #
159- # DIRECTORY RESOLUTION PRIORITY:
160- # 1. Auto-detection (CLI only, if enabled)
161- # 2. VIBE_PROJECT_ROOT environment variable
162- # 3. MCP client configuration
163- # 4. Legacy environment variables
164- # 5. Current working directory (fallback)
165- #
166- # GENERAL NOTES:
167- # 1. OPENROUTER_API_KEY is required for the server to function
168- # 2. Most other variables have sensible defaults and are optional
169- # 3. Directory paths should be absolute paths for best compatibility
170- # 4. Security settings are enabled by default in production
171- # 5. Feature flags allow you to enable/disable specific functionality
172- # 6. For development, set NODE_ENV=development and LOG_LEVEL=debug
173- #
174- # For more information, see:
175- # - README.md: Complete setup guide
176- # - VIBE_CODER_MCP_SYSTEM_INSTRUCTIONS.md: System documentation
177- # - docs/: Additional documentation
15+ # Advanced Configuration
16+ OPENROUTER_BASE_URL = " https://openrouter.ai/api/v1"
17+ GEMINI_MODEL = " google/gemini-2.5-flash-preview-05-20"
18+ PERPLEXITY_MODEL = " perplexity/sonar"
0 commit comments