Skip to main content

Environment Variables Configuration

Environment variables provide the primary way to configure MCP JetBrains Code Inspections.

Quick Reference

The most commonly used environment variables:

  • INSPECTION_TIMEOUT - Set inspection timeout (default: 120000ms)
  • EXCLUDE_INSPECTIONS - Exclude specific inspections
  • RESPONSE_FORMAT - Choose output format (markdown/json)
  • DEBUG - Enable debug logging

Basic Usage

Configure environment variables in your .mcp.json file:

{
"mcpServers": {
"mcp-jetbrains-code-inspections": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"INSPECTION_TIMEOUT": "180000",
"EXCLUDE_INSPECTIONS": "SpellCheckingInspection",
"RESPONSE_FORMAT": "markdown"
}
}
}
}

Common Configurations

Increase Timeout for Large Projects

{
"env": {
"INSPECTION_TIMEOUT": "300000" // 5 minutes
}
}

Exclude Noisy Inspections

{
"env": {
"EXCLUDE_INSPECTIONS": "SpellCheckingInspection,TodoComment"
}
}

Force Specific IDE

{
"env": {
"FORCE_INSPECT_PATH": "/Applications/WebStorm.app/Contents/bin/inspect.sh"
}
}

Enable Debugging

{
"env": {
"DEBUG": "true"
}
}

Complete Reference

For a complete list of all environment variables with detailed descriptions, types, defaults, and advanced usage examples, see the * *Environment Variables Reference**.

See Also