About Gradle Tapi MCP Server
Gradle Tapi MCP Server is an MCP server in the Commerce category: mCP server that exposes Gradle Tooling API operations to MCP clients.
Install
git clone https://github.com/nise-nabe/gradle-tapi-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (23)
gradle_cancel_buildCancel a background build via Tooling API `CancellationToken` (`buildId` required)
Parameters not published.
gradle_connectConnect to a project directory (keeps other projects connected)
Parameters not published.
gradle_connection_statusConnection state for one project or all active connections (`connections[]`, `defaultProjectDirectory`). Cache-only by default; set `refresh: true` when `runtimeStackAvailable` is false and you need `gradleVersion` / `javaHome`. Listing all connections with `refresh: true` fetches once per connected project
Parameters not published.
gradle_disconnectClose one project (`projectDirectory`) or all connections (omit)
Parameters not published.
gradle_get_build_cache_statusBuild cache / configuration cache settings and local cache summaries
Parameters not published.
gradle_get_build_environmentGradle/Java environment including `javaVersion` and `versionInfo` (`gradle --version` text on Gradle 9.4+; lightweight)
Parameters not published.
gradle_get_build_invocationsRunnable tasks; selectors omitted by default; optional `projectPath` or `buildTreePath`. Gradle 9.4+ may return `partial` + capped `failures`
Parameters not published.
gradle_get_build_statusPoll status/output for a background build (`buildId` required); set `includeProgress: true` for detailed progress
Parameters not published.
gradle_get_dependency_resolutionResolved dependency graph via Tooling API `ResolutionResult` (no task run). Omit `configuration` to list resolvable/consumable names (optional `includeAttributes` / `includeOutgoingVariants`; catalog cap 200). With `configuration`: optional `projectPath`, `dependency` filter, `maxDependencies` / `maxComponents` (default 500). Unknown names return `suggestedConfigurations`
Parameters not published.
gradle_get_dependency_sources_index_statusPoll a background/detached dependency-sources index job (`indexId` required)
Parameters not published.
Show all 23 tools
gradle_get_gradle_buildGradleBuild structure (root project tree, all projects, included/editable builds); optional `maxDepth` / `maxChildren`. Gradle 9.4+ may return `partial` + capped `failures`
Parameters not published.
gradle_get_helpGradle CLI help text (`gradle --help` equivalent); optional `maxChars` / `tailOutput`; requires Gradle 9.4+
Parameters not published.
gradle_get_java_runtimesDaemon Java from BuildEnvironment plus detected local JDKs via `javaToolchains -q` (set `includeToolchains: false` for daemon only)
Parameters not published.
gradle_get_project_modelProject model; tasks omitted by default; optional `projectPath` or `buildTreePath`. Gradle 9.4+ may return `partial` + capped `failures`
Parameters not published.
gradle_get_project_overviewProject hierarchy and task counts only; optional `projectPath`, `buildTreePath`, `maxDepth` / `maxChildren`. Gradle 9.4+ may return `partial` + capped `failures`
Parameters not published.
gradle_get_project_publicationsPublications; optional `buildTreePath` for included/`buildSrc`. Gradle 9.4+ may return `partial` + capped `failures`
Parameters not published.
gradle_index_dependency_sourcesIndex sources for exact simple-name locate (project Idea keep-set **or** any Maven GAV via `artifacts[]`, including versions not in the graph). `tokenMode`: `all` (default; includes comments/strings) or `idents`. Keep-set: Idea sources by default (optional `projectPath` to scope a Gradle project subtree), or explicit `artifacts[]` / `sourcePaths[]`. `background: true` returns `indexId` immediately; foreground auto-detaches after ~45s with `detached: true` + `indexId`. Poll with `gradle_get_dependency_sources_index_status`. The **server** looks up `artifacts[]` jars via optional `gradleUserHome`, else the connected project's Gradle user home, else process `GRADLE_USER_HOME`/`~/.gradle` — do not list those directories. Optional `downloadSources: true` fetches missing `*-sources.jar` (default Maven Central; override with `sourcesRepositories` for corporate mirrors) into `.gradle/mcp-dependency-sources/jars/`. Persists under `.gradle/mcp-dependency-sources/<tokenMode>/`
Parameters not published.
gradle_list_buildsList recent MCP builds from memory and `.gradle/mcp-builds/` (no Tooling API required)
Parameters not published.
gradle_read_dependency_sourceRead a UTF-8 snippet from a dependency `*-sources.jar` **or** dir/file via `sourceRoot`, using `gav`/`group`+`name`+`version` and `path`. Optional `line` + `contextLines` (default 10, max 100); omit `line` to read from the start up to `maxLines` (default 200, max 2000). Cache jars resolve by coordinates; Idea directories / `sourcePaths` use indexed `sourceRoot` (or an explicit arg)
Parameters not published.
gradle_run_tasksExecute tasks; stdout/stderr truncated by default
Parameters not published.
gradle_run_testsExecute JVM tests by class, method, pattern, or task scope; stdout/stderr truncated by default
Parameters not published.
gradle_search_dependency_sourcesExact simple-name locate against a prior index (does not reindex). Optional `limit` (omit = unlimited; `0` = empty)
Parameters not published.
gradle_search_dependency_sources_multiMulti-name OR locate with dedup and `matchedQueries`; optional `limit` and `perQueryLimit` (`per_query_limit` alias)
Parameters not published.
Ask AI
Ask AI about Gradle Tapi MCP Server
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.