envguard-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use envguard-mcp to compare .env parsing across Node dotenv v16, docker run --env-file, and POSIX sh/Docker Compose, detect NEXT_PUBLIC_/VITE_ client-bundle secret leaks, audit 4-way configuration drift, and generate zero-secret .env.example templates without ever exposing raw secret values.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| compare_env_runtime_parsersA | Compares exact parsed byte lengths and FNV-1a hashes across Node dotenv v16, docker run --env-file, and POSIX sh / docker compose, catching inline # truncation, literal quotes, $ bcrypt corruption, and CRLF \r bugs while strictly redacting raw secret values. |
| detect_client_bundle_secret_leaksA | Audits .env files and frontend source configs for private keys, Supabase service_role JWTs, API secrets, or database URIs accidentally prefixed with NEXT_PUBLIC_, VITE_, NUXT_PUBLIC_, REACT_APP_, EXPO_PUBLIC_, or PUBLIC_, redacting all secret values. |
| audit_env_compose_code_driftB | 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. |
| generate_sanitized_env_exampleA | Generates a zero-secret .env.example template (automatically renaming leaked NEXT_PUBLIC_/VITE_ server secrets) and an escaped fail-fast docker-compose.yml snippet from local config structure without leaking any secret values. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| predeploy-env-compose-audit | Run a full 4-way production readiness audit across .env, .env.example, docker-compose.yml, and source code without exposing raw secrets. |
| triage-client-bundle-secret-exposure | Inspect frontend .env files and source code for NEXT_PUBLIC_, VITE_, NUXT_PUBLIC_, REACT_APP_, or EXPO_PUBLIC_ secret leaks. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| 3-Runtime .env Parser Divergence Matrix | Exact behavioral comparison across Node dotenv v16, docker run --env-file, and POSIX sh / Docker Compose. |
| Client-Bundle Public Env Prefix Security Rules | Catalog of framework prefixes that inline environment variables directly into public browser/mobile JavaScript bundles. |
TDQS
Scored across 4 tools
Each tool targets a distinct env-security workflow: parser comparison, leak detection, config drift auditing, and sanitized template generation. The first and third tools both analyze env/compose configuration, so an agent may need to read descriptions carefully to choose between them, but their outputs and purposes differ.
All four names use snake_case and are verb-led or action-oriented, with clear domain-specific nouns. The pattern is consistent, though names are unusually long and the first tool is slightly more noun-heavy than the others.
Four tools is a tight, well-scoped set for an env-security auditing server. Each tool maps to a distinct step in the workflow, with no filler or redundant tools.
The surface covers comparison, leak detection, drift auditing, and safe example generation, which form a coherent lifecycle. It lacks a direct remediation or fix-application tool, but generation of sanitized examples partially fills that gap.