Automatic Setup
The fastest way to set up Envark is using the built-in initialization command:- Create the appropriate configuration directory
- Generate the correct MCP configuration
- Display instructions for the next steps
Manual Configuration
If you prefer to configure manually or need to add Envark to an existing MCP setup, follow the instructions for your IDE:- VS Code
- Claude Desktop
- Cursor
- Windsurf
VS Code with GitHub Copilot
Create MCP configuration
Create or edit
.vscode/mcp.json in your project root:.vscode/mcp.json
VS Code uses a project-local configuration (
.vscode/mcp.json) rather than a global one.Install Envark globally (optional)
For faster startup, install Envark globally:Then update your configuration:
.vscode/mcp.json
Troubleshooting VS Code
Copilot doesn't see Envark tools
Copilot doesn't see Envark tools
- Check that
.vscode/mcp.jsonexists in your project root - Verify the file has valid JSON syntax
- Restart VS Code completely (close all windows)
- Check VS Code’s Output panel for MCP errors
Command not found error
Command not found error
If using If using global install, verify:
npx envark, ensure Node.js and npm are in your PATH:Slow first run
Slow first run
The first time Envark runs via
npx, it downloads the package. Subsequent runs use the cached version.For faster startup, install globally:Advanced Configuration
Using a Specific Node Version
If you use a Node version manager (nvm, fnm, etc.), specify the full path:Setting a Working Directory
Some IDEs support setting a working directory for MCP servers:Environment Variables
You can pass environment variables to Envark:Verifying Your Setup
After configuration, verify Envark is working:Test via AI Assistant
Ask your AI assistant:“Can you list the available MCP tools?”You should see Envark’s 9 tools listed.
Test via Terminal
Run Envark directly to ensure it works:Check MCP Logs
Most IDEs log MCP server activity. Check:- VS Code: Output panel → “MCP” or “Language Server”
- Claude Desktop: Help → Developer Console
- Cursor: View → Output → “MCP”
Common Issues
Error: Cannot find module 'envark'
Error: Cannot find module 'envark'
This means npx couldn’t download or find Envark. Solutions:
- Install globally:
npm install -g envark - Clear npm cache:
npm cache clean --force - Use full npx path:
/usr/local/bin/npx envark
MCP server times out
MCP server times out
Envark might be scanning a very large project:
- Check that
.gitignoreexcludesnode_modules,.git, etc. - Run
npx envark scanmanually to see scan time - Increase timeout in IDE settings (if available)
Tools return empty results
Tools return empty results
This usually means Envark is running in the wrong directory:
- Verify your IDE opened the correct project folder
- Check the
cwdsetting in MCP config - Run
npx envark scanin your project directory to verify results
Permission denied on macOS/Linux
Permission denied on macOS/Linux
Fix file permissions:
Next Steps
Tool Reference
Learn about all available MCP tools and their parameters
Usage Examples
See real-world examples of using Envark with AI assistants