bazel_build_target
Use this tool to build specified Bazel targets by providing a list of targets and optional command-line arguments, enabling efficient project compilation within the Bazel MCP Server environment.
Instructions
Build specified Bazel targets
Input Schema
Name | Required | Description | Default |
---|---|---|---|
additionalArgs | No | Additional Bazel command line arguments (e.g. ['--verbose_failures', '--sandbox_debug']) | |
targets | Yes | List of Bazel targets to build (e.g. ['//path/to:target']) |
Input Schema (JSON Schema)
{
"properties": {
"additionalArgs": {
"description": "Additional Bazel command line arguments (e.g. ['--verbose_failures', '--sandbox_debug'])",
"items": {
"type": "string"
},
"type": "array"
},
"targets": {
"description": "List of Bazel targets to build (e.g. ['//path/to:target'])",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"targets"
],
"type": "object"
}