Skip to main content
Glama

Bazel MCP Server

by nacgarg

bazel_build_target

Build specified Bazel targets by providing a list of targets and optional command line arguments, enabling AI agents to execute Bazel builds in restricted environments via the Bazel MCP Server.

Instructions

Build specified Bazel targets

Input Schema

NameRequiredDescriptionDefault
additionalArgsNoAdditional Bazel command line arguments (e.g. ['--verbose_failures', '--sandbox_debug'])
targetsYesList 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nacgarg/bazel-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server