Gradle MCP server enables AI tools to interact with Gradle projects through a standardized interface built on the Gradle Tooling API. It exposes tools for retrieving project metadata and executing Gradle tasks remotely, with support for both stdio and SSE transport modes. Particularly valuable for developers who want to automate Gradle project management and builds through conversational AI without manual configuration.
No reviews yet. Be the first to review!
Sign in to join the conversation
Retrieves specific details about a Gradle project, returning structured JSON. Allows requesting only necessary information categories (`buildStructure`, `tasks`, `environment`, `projectDetails`). If `requestedInfo` is omitted, all categories are fetched. Key Inputs: `projectPath` (string, required), `requestedInfo` (array of strings, optional).
Executes general Gradle tasks (like `build`, `clean`). Returns formatted text output summarizing execution and including captured stdout/stderr. Key Inputs: `projectPath` (string, required), `tasks` (array of strings, required), `arguments` (array of strings, optional), `jvmArguments` (array of strings, optional), `environmentVariables` (object, optional).
Executes Gradle test tasks and returns results as a structured JSON hierarchy (Suite > Class > Test). Provides options for output inclusion and log limits. Key Inputs: `projectPath` (string, required), `gradleTasks` (array of strings, optional), `arguments` (array of strings, optional), `environmentVariables` (object, optional), `testPatterns` (array of strings, optional), `includeOutputForPassed` (boolean, optional), `maxLogLines` (integer, optional), `defaultMaxLogLines` (integer, optional).