# Envpreflight

> Check your machine can actually run this project — before you waste a day finding out it can't. Zero-config dev environment preflight checker.

- **Type:** MCP server
- **Install:** `agentstack add mcp-prvthmpcypher-envpreflight`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [prvthmpcypher](https://agentstack.voostack.com/s/prvthmpcypher)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [prvthmpcypher](https://github.com/prvthmpcypher)
- **Source:** https://github.com/prvthmpcypher/envpreflight
- **Website:** https://www.npmjs.com/package/@envpreflight/cli

## Install

```sh
agentstack add mcp-prvthmpcypher-envpreflight
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# envpreflight

> **Check your machine can actually run this project — before you waste a day finding out it can't.**

One command, one report. `envpreflight` reads the manifests already in the repository and verifies your local runtime versions, service availability, Docker state, port bindings, and environment variables in under 3 seconds with zero network calls and zero configuration.

[](https://github.com/prvthmpcypher/envpreflight/actions)
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/@envpreflight/cli)

---

## Quickstart

Run directly from any project root without installation:

```bash
npx @envpreflight/cli
```

Or install globally to use the direct `envpreflight` command anywhere:

```bash
npm install -g @envpreflight/cli

# Then run anywhere:
envpreflight
```

---

## Terminal Output Sample

```
envpreflight · my-fullstack-app

Runtime
  ✓ Node.js          20.11.0        (.nvmrc wants 20)
  ✗ Python           3.9.6          pyproject.toml wants >=3.11
    → pyenv install 3.11.7 && pyenv local 3.11.7

Services
  ✓ PostgreSQL       reachable on 5432
  ✗ Redis            nothing listening on 6379
    → docker compose up -d redis

Environment
  ! .env              2 keys in .env.example are missing:
                      STRIPE_SECRET_KEY, RESEND_API_KEY

Ports
  ✗ 3000             in use by node (pid 48213)
    → kill 48213

3 failed · 1 warning · 2 passed · 0.8s
```

---

## Core Checks

| Check Area | Supported Manifests & Detection | Fix Suggestions |
| :--- | :--- | :--- |
| **Node.js** | `.nvmrc`, `package.json` (`engines.node`) | `nvm install  && nvm use ` |
| **Python** | `pyproject.toml` (`requires-python`), `.python-version` | `pyenv install  && pyenv local ` |
| **Go** | `go.mod` | `brew install go@` |
| **Rust** | `rust-toolchain.toml`, `rust-toolchain` | `rustup toolchain install ` |
| **Services** | Postgres (5432), Redis (6379), MySQL (3306), MongoDB (27017) | `docker compose up -d ` / `brew services start ` |
| **Docker** | Docker daemon responsiveness, `docker-compose.yml` service states | `open -a Docker`, `docker compose up -d` |
| **Environment** | Keys diff between `.env.example` and `.env` | `cp .env.example .env` or missing key names |
| **Ports** | Application ports from `.env.example` / compose / configs | `kill ` |

---

## CLI Flags

| Flag | Description |
| :--- | :--- |
| *(default)* | Run all detected checks against the current working directory |
| `--json` | Emit pure machine-readable `Report` JSON (ideal for CI / scripts) |
| `--only ` | Comma-separated list of check IDs or categories (e.g. `--only runtime,services`) |
| `--skip ` | Comma-separated list of check IDs or categories to skip |
| `--fix` | Interactively prompt before executing suggested fix commands |
| `-q, --quiet` | Display failures and warnings only |
| `--cwd ` | Target a specific project directory |
| `--version` | Print current version |
| `--help` | Show help manual |

---

## Exit Codes for CI

`envpreflight` is designed for build pipelines and pre-commit hooks:

- **`0`**: All checks passed (or no project manifests detected)
- **`1`**: Blocking failure detected (e.g. wrong runtime version, missing service, occupied port)
- **`2`**: Warnings only (e.g. non-blocking env key drift)

---

## Three Surfaces, One Core

`envpreflight` is architected as a modular monorepo:

1. **CLI (`envpreflight`)**: Utilitarian terminal runner with aligned columns, distinct symbols (`✓`, `!`, `✗`, `-`, `→`), and `NO_COLOR` support.
2. **VS Code Extension (`envpreflight-vscode`)**: Silent status bar item on launch, interactive report panel with native theme tokens and "Run in terminal" fix buttons.
3. **MCP Server (`@envpreflight/mcp`)**: Model Context Protocol tool `envpreflight_check` for AI coding agents (Claude Code, Cursor, Windsurf).

### MCP Server Setup

Add to your `mcpServers` configuration:

```json
{
  "mcpServers": {
    "envpreflight": {
      "command": "npx",
      "args": ["-y", "@envpreflight/mcp"]
    }
  }
}
```

---

## Security & Privacy Guarantee

- **Zero Network Calls**: `envpreflight` runs entirely locally with zero telemetry, zero analytics, and zero remote registry lookups.
- **Strict Zero Value Leakage**: `.env` and `.env.example` files are parsed for variable **keys only**. Secret values are never read, stored, printed, logged, or transmitted under any condition.

---

## Platform Support

- **macOS & Linux**: Full native support.
- **Windows**: Full support within WSL (Windows Subsystem for Linux) and native Node/PowerShell environments.

---

## License

MIT License. Crafted for developers who value fast, frictionless repo setup.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [prvthmpcypher](https://github.com/prvthmpcypher)
- **Source:** [prvthmpcypher/envpreflight](https://github.com/prvthmpcypher/envpreflight)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/@envpreflight/cli

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-prvthmpcypher-envpreflight
- Seller: https://agentstack.voostack.com/s/prvthmpcypher
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
