Configuration Overview
MCP JetBrains Code Inspections offers flexible configuration options to customize its behavior for your specific needs.
Configuration Topics
Environment Variables
Complete guide to all environment variables:
- Path configuration options
- Execution parameters
- Filter settings
- Output format control
MCP Setup
Learn how to configure the MCP server:
- Server setup in MCP clients
- Platform-specific configuration
- Development vs production setup
- Multiple server configurations
Inspection Profiles
Master inspection profile configuration:
- Using default profiles
- Creating custom profiles
- Profile precedence
- Cross-IDE compatibility
Quick Configuration Example
{
"mcpServers": {
"jetbrains-inspections": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"INSPECTION_TIMEOUT": "300000",
"FORCE_INSPECT_PATH": "/custom/path/to/inspect.sh"
}
}
}
}
Configuration Best Practices
- Start with Defaults: The default configuration works well for most projects
- Adjust Timeouts: Increase timeout for large codebases
- Use Appropriate Verbosity: Higher verbosity provides more details but takes longer
- Maintain Profiles: Keep inspection profiles in version control
- Test Changes: Verify configuration changes with test files
Environment Variables Reference
Variable | Default | Description |
---|---|---|
FORCE_INSPECT_PATH | Auto-detected | Force specific IDE inspect tool path |
FORCE_PROJECT_ROOT | Auto-detected | Force project root directory |
FORCE_PROFILE_PATH | Auto-detected | Force inspection profile path |
INSPECTION_TIMEOUT | 120000 | Timeout in milliseconds |
EXCLUDE_INSPECTIONS | - | Comma-separated inspection codes to exclude |
ONLY_INSPECTIONS | - | Comma-separated inspection codes to include |
RESPONSE_FORMAT | markdown | Output format: 'markdown' or 'json' |
DEBUG | false | Enable debug logging ('true' to enable) |
Configuration Files
The server looks for configuration in these locations:
- Environment variables (highest priority)
- MCP client configuration
- Project inspection profiles
- IDE default settings
Continue to specific configuration topics:
- Environment Variables for detailed configuration options
- MCP Setup for server setup
- Inspection Profiles for code analysis rules