envspeak

v0.1.0
io.github.Patrizzos/envspeak Checked 3 days ago Published 3 months ago

MCP server and CLI that resolves config/env-var cascade across .env, docker-compose, and Kubernetes

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

resolve_variable

Resolves what a config/env variable actually evaluates to across dotenv, docker-compose, and Kubernetes sources, and which source wins.

ParameterTypeDescription
files *arrayPaths (relative to projectRoot) to .env*, compose, and k8s manifest files to consider
variable *stringThe variable name, e.g. DATABASE_URL
containerstringKubernetes container name within the workload
environmentstringTarget NODE_ENV-style value for dotenv resolution, e.g. "production"
projectRootstringDirectory the file paths are relative to
servicestringdocker-compose service name to resolve for
workloadstringKubernetes workload (Deployment/Pod/etc.) name to resolve for

trace_variable

Lists every place a variable is defined or read across dotenv, compose, k8s, and code, and what wins in each discovered environment/service/workload context.

ParameterTypeDescription
files *array
variable *string
projectRootstring

impact_preview

Predicts which environments/services/workloads are actually affected if a variable's value in one file is changed (or removed) — including which contexts are shielded by a higher-precedence source.

ParameterTypeDescription
file *stringThe file that would be edited
files *array
variable *string
newValuestringOmit to simulate removing the assignment entirely
projectRootstring

config_manifest

Compressed, project-wide summary of every config variable found — sources, domains, and risk hotspots (likely secrets in tracked files, variables read in code with no source). Load once per session instead of repeated resolve_variable calls.

ParameterTypeDescription
files *array
maxVariablesnumber
projectRootstring

diff_environments

Resolves every variable under two different environment/service/workload selectors and reports what differs between them.

ParameterTypeDescription
environmentA *object{ nodeEnv?, service?, workload?, container?, label? }
environmentB *object{ nodeEnv?, service?, workload?, container?, label? }
files *array
projectRootstring
variablesarrayOptional subset; defaults to every variable discovered