Skip to main content
Glama

Gradle MCP Server

by jermeyyy

run_task

Execute Gradle build tasks like compiling code, running tests, or packaging applications. Specify task names and optional arguments to control the build process.

Instructions

Run a Gradle task.

This tool cannot run cleaning tasks (clean, cleanBuild, etc.). Use the clean tool for cleaning tasks instead.

Args: task: Task name to run. Can be simple (e.g., 'build', 'test') for root project or qualified with project path (e.g., ':app:build', ':core:test'). args: Additional arguments to pass to Gradle (e.g., ['-x', 'test']).

Returns: TaskResult with success status and error message if failed.

Raises: ValueError: If the task is a cleaning task.

Input Schema

NameRequiredDescriptionDefault
argsNo
taskYes

Input Schema (JSON Schema)

{ "properties": { "args": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null }, "task": { "type": "string" } }, "required": [ "task" ], "type": "object" }

Other Tools from Gradle MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/jermeyyy/gradle-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server