Overview
Theget_env_map tool provides a comprehensive overview of all environment variables in your project. It scans the codebase, resolves variable definitions and usages, and returns a complete map with optional filtering by status.
Parameters
Path to the project directory. Defaults to current working directory.
Filter variables by status. Defaults to “all”.Options:
all- Show all environment variablesmissing- Variables used in code but not defined anywhereunused- Variables defined in .env files but never usedrisky- Variables with critical or high risk levelundocumented- Variables used in code but not documented
Response
Statistical summary of environment variables
Array of environment variable summaries
Scan metadata
Example Response
Usage Example
AI assistants can call this tool to get a comprehensive overview of all environment variables:Use Cases
- Environment Audit: Get a complete overview of all environment variables and their status
- Finding Missing Variables: Identify variables used in code but not defined in .env files
- Cleanup: Find unused variables that can be safely removed
- Security Review: Filter for risky or undocumented variables
- Documentation: Discover which variables need to be added to .env.example