Loading...
{
"mcpServers": {
"gradle-mcp-server": {
"command": "java",
"args": [
"-jar",
"<absolute_path_to_home>/mcp-servers/gradle-mcp-server/gradle-mcp-server-all.jar"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}get_gradle_project_infoRetrieves structured information about a Gradle project, including build structure, tasks, environment, and project details.
Read-only operation with no side effects.
execute_gradle_taskExecutes specified Gradle tasks with custom arguments, JVM arguments, and environment variables.
Executes arbitrary Gradle tasks, potentially leading to code execution.
run_gradle_testsExecutes Gradle test tasks and returns structured results in a hierarchical JSON format.
Executes test tasks; failure output is filtered/truncated, but arbitrary code execution is still possible.
The Gradle MCP server is relatively safe for read-only operations like project inspection. However, executing tasks carries inherent risks due to the potential for arbitrary code execution within the Gradle environment. Exercise caution when using task execution tools, especially with untrusted projects.