audit_env_compose_code_drift
Detect configuration drift across .env, .env.example, docker-compose.yml, and source code environment references, then return redacted findings with a 0–100 deployment safety score.
Instructions
Computes deterministic 4-way configuration cross-drift across .env, .env.example, docker-compose.yml, and polyglot source code references (process.env, import.meta.env, os.environ), returning redacted findings and a 0-100 deployment safety score.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_env_compose_code_drift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envText | No | Optional raw .env content string. | |
| codeText | No | Optional source code text to extract environment variable references from. | |
| codePaths | No | Optional array of source files or directories to scan for environment variable references. | |
| targetEnv | No | Target deployment environment profile (defaults to production). | |
| composeText | No | Optional raw docker-compose.yml / compose.yaml content string. | |
| envFilePath | No | Optional explicit path to .env file. | |
| workspaceDir | No | Optional project root directory to auto-discover .env, .env.example, docker-compose.yml, and source files. | |
| envExamplePath | No | Optional explicit path to .env.example file. | |
| envExampleText | No | Optional raw .env.example content string. | |
| composeFilePath | No | Optional explicit path to docker-compose.yml / compose.yaml. |