projectPath
(string, required): Absolute path to the Gradle project root.
How to use it
projectPath is exposed by the Gradle MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the projectPath tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL GRADLE MCP SERVER LISTINGOther tools in Gradle MCP Server (10)
(array of strings, optional): Gradle command-line arguments (e.g., ["--info", "-PmyProp=value"]).
(integer, optional): Set the default output line limit (defaults internally to 100).
(object, optional): Environment variables for the build (e.g., {"CI": "true"}).
(array of strings, optional): Test tasks to run (defaults to ["test"]).
(boolean, optional): Set to true to include output for passed tests (default false).
(array of strings, optional): JVM arguments for Gradle (e.g., ["-Xmx4g"]).
(integer, optional): Override the default limit on output lines per test (0 for unlimited).
(array of strings, optional): List of categories to retrieve (e.g., ["tasks", "environment"]).
(array of strings, required): List of task names to execute (e.g., ["clean", "assemble"]).
(array of strings, optional): Test filter patterns passed via --tests (e.g., [".MyTestClass"]).