gograph_envs
Find environment variable reads in Go code, including key names, calling functions, and file locations. Use to document required env vars or audit secret usage.
Instructions
Find all environment variable reads in the codebase via os.Getenv, os.LookupEnv, and common config frameworks, with their enclosing function context. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise and precise_fallback graphs retry CHA/SSA after source changes. Read-only; no side effects. Optional term filters by key name substring (e.g., "DATABASE" matches DATABASE_URL and DATABASE_HOST). WHEN TO USE: When compiling a deployment configuration manifest, documenting required env vars, or auditing what secrets a service reads at startup. NOT TO USE: For reading actual runtime env values (this is static analysis); for database queries (use gograph_sql). RETURNS: List of env key names, calling function, and file/line; empty when no env reads match the filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | Optional filter term (e.g., 'DATABASE' matches DATABASE_URL, DATABASE_HOST, etc.) |