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.
Nessuna recensione ancora. Sii il primo a recensire!
Accedi per unirti alla conversazione
Retrieves specific details about a Gradle project, returning structured JSON. Allows requesting only necessary information categories (e.g., buildStructure, tasks, environment, projectDetails). Key Inputs: projectPath (string, required), requestedInfo (array of strings, optional). Output: JSON object containing the requested data fields and potential errors.
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). Output: Formatted text response with execution summary and final status.
Executes Gradle test tasks and returns results as a structured JSON hierarchy (Suite > Class > Test). Provides options to include output for passed tests and control 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). Output: JSON object containing execution details and the test hierarchy.