gradle-mcp-server

gradle-mcp-server

3.5

If you are the rightful owner of gradle-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that enables AI tools to interact with Gradle projects programmatically.

The Gradle MCP Server is a specialized server that facilitates the interaction between AI tools and Gradle projects using the Model Context Protocol (MCP). It leverages the Gradle Tooling API to provide detailed project information and execute tasks programmatically. This server is particularly useful for developers and AI applications that need to automate or analyze Gradle-based projects. It supports inspecting project structures, executing tasks, and running tests with detailed hierarchical results. The server is designed to be integrated with MCP clients, such as VSCode extensions or desktop applications, allowing seamless interaction with Gradle projects.

Features

  • Inspecting Projects: Retrieve detailed, structured information about a Gradle project, including build structure, available tasks, and environment details.
  • Executing Tasks: Run specific Gradle tasks with custom arguments and environment variables, returning formatted output.
  • Running Tests Hierarchically: Execute Gradle test tasks and receive detailed, structured results in a hierarchical JSON format.

Tools

  1. Get Gradle Project Info

    Retrieves specific details about a Gradle project, returning structured JSON.

  2. Execute Gradle Task

    Executes general Gradle tasks and returns formatted text output.

  3. Run Gradle Tests

    Executes Gradle test tasks and returns results as a structured JSON hierarchy.