What is MCP?
The Model Context Protocol is a standardized way for AI assistants to access tools and context from external systems. When you configure Envark as an MCP server, your AI assistant gains the ability to:- Scan your entire codebase for environment variable usage
- Analyze risk levels and detect missing variables
- Validate
.envfiles against actual code requirements - Generate
.env.exampletemplates automatically - Track variable dependencies and usage patterns
Why Use Envark via MCP?
Catch Issues Early
AI can proactively detect missing variables, security risks, and configuration drift before deployment
Faster Debugging
Ask your AI “What environment variables are missing?” and get instant answers
Documentation Help
AI can help keep your
.env.example in sync with actual code usageSecurity Analysis
Detect secrets in committed files and variables with security risks
Supported IDEs
Envark integrates with all major AI-powered development environments:| IDE | Support Level | Configuration |
|---|---|---|
| VS Code | Full | .vscode/mcp.json |
| Claude Desktop | Full | ~/.claude/mcp.json |
| Cursor | Full | ~/.cursor/mcp.json |
| Windsurf | Full | ~/.windsurf/mcp.json |
Quick Start
Auto-configure for your IDE
Envark can automatically set up the MCP configuration for you:This creates the appropriate configuration file with the correct settings.
Available Tools
When configured as an MCP server, Envark exposes 9 powerful tools to AI assistants:get_env_map
Complete environment variable inventory
get_env_risk
Risk analysis with severity levels
get_missing_envs
Variables that will cause crashes
get_duplicates
Conflicting definitions finder
get_undocumented
Variables missing from .env.example
get_env_usage
Deep dive into specific variables
get_env_graph
Dependency graph visualization
validate_env_file
Validate .env files against code
generate_env_template
Auto-generate .env.example files
Example Conversations
Once configured, you can ask your AI assistant natural questions:How It Works
- Your IDE starts and loads the MCP configuration
- Envark launches as a child process via
npx envark - AI assistant requests analysis using MCP tools
- Envark scans your codebase and returns structured data
- AI formats the results in human-readable format
Performance
- Caching: Results are cached in
.envark/cache.jsonwith smart invalidation - Speed: Targets < 2s for 500-file projects
- Private: Pure static analysis, no data leaves your machine
Next Steps
Setup Guide
Detailed configuration for each IDE
Tool Reference
Complete documentation of all MCP tools