Task Wrapper Tools
Tools that wrap Gradle's reporting tasks, e.g. :tasks.
get_dependencies
Gets all dependencies of a Gradle project, optionally filtered by configuration. Use get_resolvable_configurations to get all configurations. Use get_build_dependencies to get the Gradle build dependencies (i.e. plugins and buildscript dependencies).
In the output, a (*) indicates that the dependency tree is repeated because the dependency is used multiple times. Only the first occurence in the report expands the tree.
A (c) indicates that a dependency is only a constraint, not an actual dependency, and a (n) indicates that it could not be resolved.
WARNING: The response can be quite large. Prefer specifying a configuration and/or using get_dependency_resolution_information when possible. Works by executing the dependencies task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"configuration": {
"type": [
"string",
"null"
],
"description": "The configuration to get dependencies from. Defaults to all."
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}
get_dependency_resolution_information
Gets detailed information about the resolution of the specific dependencies. Any dependencies with a group:artifact that start with the dependencyPrefix will be included in the report.
The configuration. Works by executing the dependencyInsight task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"configuration": {
"type": "string",
"description": "The configuration that resolves the dependency. Required. Use `get_dependencies` to see which dependencies are present in which configurations, and `get_resolvable_configurations` to see all configurations."
},
"dependencyPrefix": {
"type": "string",
"description": "The prefix used to select dependencies to report about. Required. Compared to the dependency's `group:artifact` - if it is a prefix, that dependency will be included."
},
"singlePath": {
"type": "boolean",
"description": "If true (false is default), only show a single requirement path for the reported on dependencies."
},
"allVariants": {
"type": "boolean",
"description": "If true (false is default), show all variants of the dependency, not just variant that was selected."
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [
"configuration",
"dependencyPrefix"
],
"type": "object"
}
get_build_dependencies
Gets the Gradle build dependencies of a Gradle project, as well as some information about the JVM used to execute the build. Works by executing the buildEnvironment task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}
get_resolvable_configurations
Gets all resolvable configurations of a Gradle project. Works by executing the resolvableConfigurations task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}
get_available_toolchains
Gets all available Java/JVM toolchains for a Gradle project. Also includes whether auto-detection and auto-downloading are enabled. Works by executing the javaToolchains task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}
get_properties
Gets all properties of a Gradle project. WARNING: may return sensitive information like configured credentials. Works by executing the properties task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}
get_artifact_transforms
Gets all artifact transforms of a Gradle project. Works by executing the artifactTransforms task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}
get_outgoing_variants
Gets all outgoing variants of a Gradle project. These are configurations that may be consumed by other projects or published. Works by executing the outgoingVariants task of the given project.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "The file system path of the Gradle project's root directory, where the gradlew script and settings.gradle(.kts) files are located. REQUIRED IF NO MCP ROOTS CONFIGURED, or more than one. If MCP roots are configured, it must be within them, may be a root name instead of path, and if there is only one root, will default to it."
},
"projectPath": {
"type": "string",
"description": "The Gradle project path, e.g. :project-a:subproject-b. ':' is the root project. Defaults to ':'",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"invocationArgs": {
"type": "object",
"required": [],
"properties": {
"additionalEnvVars": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables to set for the Gradle process. Optional. The process inherits the MCP server's env vars unless `doNotInheritEnvVars` is set to true. Note that the MCP server may not have the same env vars as the MCP Host - you may need to pass sone."
},
"additionalSystemProps": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional system properties to set for the Gradle process. Optional. No system properties are inherited from the MCP server."
},
"additionalJvmArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional JVM arguments to set for the Gradle process. Optional."
},
"additionalArguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the Gradle process. Optional."
},
"publishScan": {
"type": "boolean",
"description": "Whether to attempt to publish a Develocity Build Scan by using the '--scan' argument. Optional, defaults to false. Using Build Scans is the best way to investigate failures, especially if you have access to the Develocity MCP server. Publishing build scans to scans.gradle.com requires the MCP client to support elicitation."
},
"doNotInheritEnvVars": {
"type": "boolean",
"description": "Defaults to true. If false, will not inherit env vars from the MCP server."
}
},
"description": "Additional arguments to configure the Gradle process."
}
},
"required": [],
"type": "object"
}