mc_gradle
Run Gradle build, test, or client/server tasks in Minecraft projects using the gradlew wrapper. Reports exit codes in results instead of failing on non-zero exits.
Instructions
Run a Gradle task in a Minecraft project via its wrapper (gradlew). Reports exit code in result instead of failing on non-zero exits. Use to build, test, or run client/server tasks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>",
"task": "<task>"
},
"name": "mc_gradle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Extra arguments, e.g. --no-daemon, -Pfoo=bar | |
| task | Yes | Gradle task, e.g. build, clean, runClient, runServer | |
| tailChars | No | Output chars to keep, head+tail (default 12000) | |
| timeoutMs | No | Timeout in ms (default 600000) | |
| projectDir | Yes | Absolute path of the Gradle project root (must contain gradlew) |