# Hierarchical Documentation MCP Server Configuration
# Documentation root directory (required)
# Path to the root directory containing your documentation
DOCS_ROOT=./docs
# Cache TTL in seconds (optional, default: 3600)
# How long to cache parsed documentation before re-reading from disk
MCP_DOCS_CACHE_TTL=3600
# Maximum cache memory in MB (optional, default: 500)
# Maximum memory to use for caching parsed documents
MCP_DOCS_MAX_CACHE_MB=500
# OpenAPI specification files (optional)
# Comma-separated list of paths to OpenAPI spec files
MCP_DOCS_OPENAPI_SPECS=./docs/api/openapi.yaml
# Search result limit (optional, default: 10)
# Maximum number of results to return from search queries
MCP_DOCS_SEARCH_LIMIT=10
# Log level (optional, default: INFO)
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# File watching enabled (optional, default: true)
# Enable automatic cache invalidation when files change
MCP_DOCS_WATCH_FILES=true
# Maximum directory depth (optional, default: 10)
# Maximum depth to traverse when scanning documentation directories
MCP_DOCS_MAX_DEPTH=10
# Hidden file access (optional, default: false)
# Allow access to hidden files (starting with '.')
# WARNING: Setting this to true may expose sensitive files
MCP_DOCS_ALLOW_HIDDEN=false
# Security audit logging (optional, default: true)
# Enable logging of all file access attempts for security auditing
MCP_DOCS_AUDIT_LOG=true
# Configuration file path (optional)
# Path to YAML configuration file for multi-source setups
# MCP_DOCS_CONFIG_FILE=./.mcp-docs.yaml