Project Dependency Tools
Tools for querying Gradle dependencies and checking for updates.
inspect_dependencies
Inspects the project's resolved dependency graph, checks for updates, and audits plugins; use instead of manually parsing build files which misses transitive deps and dynamic versions.
- Update Check:
checkUpdates=true(default) detects newer versions — individual lines show[UPDATE AVAILABLE: X.Y.Z]; useupdatesOnly=truefor a flat summary:group:artifact: current → latestwith the project paths where each dep is used (forcescheckUpdates=true). UsestableOnly=trueto exclude pre-release versions. - [UPDATE CHECK SKIPPED]: Appears only for dependencies that were in scope for update checking but whose resolution genuinely failed — not for dependencies intentionally excluded from the update-check scope (e.g., transitive deps when
onlyDirect=true). - Plugin Auditing: Use
configuration="buildscript:classpath"to audit plugins. - Targeted: Use
dependency="org:artifact"to target a single library — significantly faster. - Use
lookup_maven_versionsto find released versions;gradlefordependencyInsight.
Input schema
{
"properties": {
"projectRoot": {
"type": "string",
"description": "Absolute path to Gradle project root. Auto-detected from MCP roots or GRADLE_MCP_PROJECT_ROOT when present, must be specified otherwise (usually)."
},
"projectPath": {
"type": "string",
"description": "Specifying the Gradle project path (e.g., ':app'). Defaults to root project (':').",
"examples": [
":",
":my-project",
":my-project:subproject"
]
},
"configuration": {
"type": [
"string",
"null"
],
"description": "Filtering the report by a specific configuration (e.g., 'runtimeClasspath')."
},
"sourceSet": {
"type": [
"string",
"null"
],
"description": "Filtering the report by a specific source set (e.g., 'test')."
},
"dependency": {
"type": [
"string",
"null"
],
"description": "Filtering reported components to those matching a GAV coordinate (`group:name:version:variant`, `group:name:version`, `group:name`, or `group`). Transitive children of matched components are shown when `onlyDirect=false`."
},
"checkUpdates": {
"type": "boolean",
"description": "Checking project repositories for newer versions of all dependencies authoritatively. Always `true` when `updatesOnly=true`."
},
"onlyDirect": {
"type": "boolean",
"description": "Showing only direct dependencies in the summary. Set to false for the full tree. Also controls update-check scope: only direct deps are checked when `true`."
},
"updatesOnly": {
"type": "boolean",
"description": "Returning a flat list of upgradeable dependencies: `group:artifact: current → latest` with project paths. Forces `checkUpdates=true`. Note: format changed from earlier versions — the dep key no longer includes the version and the separator changed from ASCII `->` to Unicode `→`."
},
"stableOnly": {
"type": "boolean",
"description": "Ignoring pre-release versions (alpha, beta, rc, etc.) when checking for updates."
},
"versionFilter": {
"type": [
"string",
"null"
],
"description": "Regex filter for considered update versions (e.g., '^1\\.' to match versions starting with 1)."
},
"pagination": {
"type": "object",
"required": [],
"properties": {
"offset": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"limit": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"description": "Pagination. offset = zero-based start index (default 0); limit = max items/lines to return."
}
},
"required": [],
"type": "object"
}