Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GRADLE_WRAPPER | No | Path to gradlew script | auto-detected |
| GRADLE_PROJECT_ROOT | No | Path to Gradle project | current directory |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_projects | List all Gradle projects in the workspace. Returns: List of Gradle projects. |
| list_project_tasks | List all tasks available in a Gradle project. Returns a nested structure grouped by task group. This is more compact than a flat list and avoids repeating project/group information for each task. Args: project: Project path (e.g., ':app' or 'lib:module'). Use None, empty string, or ':' for root project. include_descriptions: If True, include task descriptions in the response. If False, return only task names for a more compact response. group: Optional group name to filter tasks (e.g., 'Build', 'Verification'). Case-insensitive. If not provided, all groups are returned. Returns: List of grouped tasks. Each group contains a group name and list of tasks. If include_descriptions is True, tasks include name and description. If include_descriptions is False, tasks are just name strings. |
| run_task | Run one or more Gradle tasks. Args: task: Task(s) to run. Single task, space-separated tasks, or list of tasks. Examples: 'build', ':app:build :core:build', [':core:build', ':app:assemble']. args: Optional Gradle arguments (e.g., ['--info', '-x', 'test']). Returns: TaskResult with success status and error message if failed. |
| clean | Clean build artifacts for a Gradle project. Args: project: Project path (e.g., ':app'). Use None, empty string, or ':' for root project. Returns: TaskResult with success status and error message if failed. |
| daemon_status | Get status of Gradle daemon(s). Returns current daemon status including running daemons and their info. Useful for monitoring daemon health and resource usage. Returns: DaemonStatusResult with running status, list of daemon info, and optional error. |
| stop_daemon | Stop all Gradle daemons. Stops all running Gradle daemons. Useful for freeing up memory or when experiencing daemon-related issues. Returns: TaskResult with success status and error message if failed. |
| get_gradle_config | Get current Gradle configuration including memory settings. Returns configuration from gradle.properties and gradle-wrapper.properties including JVM args, daemon settings, and Gradle version info. Useful for diagnosing memory issues or understanding project configuration. Returns: GradleConfigResult with JVM args, daemon/parallel/caching settings, max workers, distribution URL, and Gradle version. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |