Skip to main content
Glama

Bazel MCP Server

by nacgarg

bazel_list_targets

Discover all available Bazel build targets within a specified workspace path using the MCP server, simplifying project navigation and management for developers and AI agents.

Instructions

List all available Bazel targets under a given path

Input Schema

NameRequiredDescriptionDefault
additionalArgsNoAdditional Bazel command line arguments (e.g. ['--output=build', '--keep_going'])
pathYesPath within the workspace to list targets for (e.g. '//path/to' or '//' for all targets)

Input Schema (JSON Schema)

{ "properties": { "additionalArgs": { "description": "Additional Bazel command line arguments (e.g. ['--output=build', '--keep_going'])", "items": { "type": "string" }, "type": "array" }, "path": { "description": "Path within the workspace to list targets for (e.g. '//path/to' or '//' for all targets)", "type": "string" } }, "required": [ "path" ], "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