pycharm-code-quality-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SONAR_IDE_PORT | No | 显式指定 Sonar 端口 | |
| JETBRAINS_MCP_URL | No | JetBrains MCP 端点(覆盖配置文件) | |
| JETBRAINS_MAX_FILES | No | 单次调用最大文件数(上限 200) | 200 |
| SONAR_WORKSPACE_ROOTS | No | 允许的工作区根(os.pathsep 分隔) | |
| JETBRAINS_MCP_HEADERS_JSON | No | 附加 headers(JSON) | |
| JETBRAINS_INSPECTION_TIMEOUT_MS | No | 单文件 inspection 超时(默认 30000) | 30000 |
| PYCHARM_CODE_QUALITY_MCP_LOG_LEVEL | No | 日志级别(DEBUG/INFO/WARNING/ERROR) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| code_quality_statusA | Report availability and status of both analysis backends: the JetBrains MCP Server (PyCharm inspections, default) and SonarQube for IDE (optional). Use this first to see which backends are configured and ready. |
| code_quality_analyze_filesA | Analyze 1 to 200 absolute file paths with the default backend strategy (backend_mode=auto: JetBrains first, Sonar auto-added if installed). Returns unified findings after deterministic cross-backend deduplication. Errors-only filtering and deduplication mode are configurable. |
| code_quality_analyze_git_changesA | Collect changed files in the git repository under project_root (staged, unstaged, untracked; relative to base_ref) and analyze them with the unified backend strategy. Deleted files are excluded. Same deduplication and backend_mode options as code_quality_analyze_files. |
| code_quality_analyze_projectA | Scan all files in the git repository under project_root (default: all .py files, tracked + untracked, .gitignore-respected) and analyze them with the unified backend strategy. Use this when you want the whole repo rather than just git changes. Pass |
| code_quality_clear_cacheA | Clear in-memory caches for all backends (Sonar port discovery, JetBrains session). Pass project_root to clear only one Sonar project's port mapping. |
| jetbrains_ide_statusA | Probe the locally-configured JetBrains MCP Server (PyCharm) and report whether it is configured, reachable, project-ready, and whether the required tool (get_file_problems) is exposed. get_project_status is reported as optional (absent on PyCharm 2026.1+). Use this for diagnostics. |
| jetbrains_inspect_filesA | Inspect 1 to 200 absolute file paths with PyCharm's built-in JetBrains inspections via the local JetBrains MCP Server. Reuses one MCP session for all files; a single file failure does not abort the others. Returns inspection problems (1-based ranges). |
| jetbrains_inspect_git_changesA | Collect changed files in the git repository under project_root (staged, unstaged, untracked; relative to base_ref) and inspect them with JetBrains inspections. Deleted files are excluded. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yingsf/pycharm-code-quality-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server