envalid
Validate .env files against a schema
How to use it
Project documentation lists envalid for the When MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install When
npx @whenlabs/when when-mcpOther tools in When (13)
Auto-detect stack and generate AI context files (CLAUDE.md, .cursorrules, …)
Detect stack and regenerate AI context files
Detect port conflicts before starting dev servers
Scan project for port conflicts
Validate .env files against schema
Detect documentation drift between docs and code
Detect documentation drift
Time coding tasks and learn from historical data
End timing and record results
Start timing a coding task
Scan dependency licenses and validate against policy
Scan licenses and validate against policy
Unified rollup across all five scanners in one call