sonar-mcp

v1.1.0
sonar-mcp Checked 1 day ago Published 10 months ago

MCP server for SonarQube code quality platform

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sonar_list_categories

Discover available SonarQube tools by category. Returns tool names and descriptions. Categories: instance, project, issue, quality, metrics, rules, task Args: category: Optional category name to filter (e.g., "project", "issue"). If provided, returns only that category's tools. Returns: Dictionary with: - success: bool - Operation success status - categories: list - Available categories (when no filter) - category: dict - Single category details (when filtered) - total_tools: int - Total number of tools - er…

ParameterTypeDescription
category

sonar_get_tool_schema

Get the full JSON schema for a specific SonarQube tool. Use after list_categories to get parameter details before calling execute_tool. Args: tool_name: Name of the tool (e.g., 'sonar_list_issues', 'sonar_get_project') Returns: Dictionary with: - success: bool - Operation success status - tool_name: str - The tool name - schema: dict - JSON schema for tool parameters - description: str - Tool description from docstring - error: str - Error message (if success is False)

ParameterTypeDescription
tool_name *string

sonar_execute_tool

Execute any SonarQube tool by name with the provided arguments. Use after getting the schema to understand required parameters. Args: tool_name: Name of the tool to execute (e.g., 'sonar_list_issues') arguments: Tool-specific arguments (optional). See sonar_get_tool_schema for details. Returns: The tool's return value, or error dict if tool not found or execution fails.

ParameterTypeDescription
tool_name *string
arguments