Skip to main content
Glama

Bazel MCP Server

by nacgarg

bazel_query_target

Query Bazel dependency graph targets using a specified pattern to analyze and manage project dependencies efficiently. Supports additional command-line arguments for custom outputs.

Instructions

Query the Bazel dependency graph for targets matching a pattern

Input Schema

NameRequiredDescriptionDefault
additionalArgsNoAdditional Bazel command line arguments (e.g. ['--output=label_kind', '--noimplicit_deps'])
patternYesBazel query pattern (e.g. 'deps(//path/to:target)')

Input Schema (JSON Schema)

{ "properties": { "additionalArgs": { "description": "Additional Bazel command line arguments (e.g. ['--output=label_kind', '--noimplicit_deps'])", "items": { "type": "string" }, "type": "array" }, "pattern": { "description": "Bazel query pattern (e.g. 'deps(//path/to:target)')", "type": "string" } }, "required": [ "pattern" ], "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