# ============================================================================
# DevDocs MCP Server Configuration
# ============================================================================
# Copy this file to .env and adjust values as needed for your environment.
# Network Configuration
# Set PORT to expose the MCP server via HTTP (SSE transport).
# If PORT is NOT set, the server defaults to stdio transport.
PORT=3000
# Documentation Storage Path
# Inside Docker, these are typically overridden to point inside /app/data
DEVDOCS_DATA_PATH=./data
# Docker Volume Configuration
# Used by docker-compose.yml to determine where data is persisted.
# Mode 1: Named volume (default)
# DEVDOCS_VOLUME_SOURCE=devdocs_data
# Mode 2: Host machine path (relative or absolute)
# DEVDOCS_VOLUME_SOURCE=./my-docs-data
# Mode 3: Existing docker volume
# DEVDOCS_VOLUME_SOURCE=my_preexisting_volume
DEVDOCS_VOLUME_SOURCE=devdocs_data
# SQLite Database Path
# Where the MCP server stores project metadata, search indices, and relationships
# This file should be committed to git (it's metadata, not content)
# Relative paths are relative to the project root directory
MCP_DB_PATH=mcp.db
# Optional: Logging Level
# Controls verbosity of console output
# Options: debug (most verbose), info, warn, error (least verbose)
# Default: info
LOG_LEVEL=info
# Optional: DevDocs.io API Timeout
# How long to wait for DevDocs API responses (in milliseconds)
# Default: 30000 (30 seconds)
# DEVDOCS_TIMEOUT=30000
# Optional: Maximum Concurrent Downloads
# How many documentation packages to download in parallel during ingestion
# Higher values = faster ingestion but more network load
# Default: 3
# MAX_CONCURRENT_DOWNLOADS=3
# Optional: HTTP Server Port
# Only used if you're running HTTP transport (currently not implemented)
# Default: 3001
# PORT=3001