Bazel icon

Bazel

Creatednacgarg

Exposes Bazel build system functionality to MCP-enabled AI agents.

About

Bazel provides a local MCP server that allows AI agents to interact with the Bazel build system. This is especially useful in environments lacking command-line tools or when the shell environment is misconfigured, preventing direct Bazel usage. The server exposes functionalities such as building targets, querying the dependency graph, running tests, listing targets, and fetching dependencies, enabling AI agents to effectively manage and utilize Bazel within their workflows.

Key Features

  • Build specified Bazel targets.
  • List all available targets in the workspace.
  • Query the dependency graph for targets matching a pattern.
  • Fetch external dependencies.
  • Run tests for specified targets.
  • Change the Bazel workspace path at runtime.

Use Cases

  • Integrating Bazel build system with AI-powered development environments.
  • Managing dependencies in Bazel projects through AI interactions.
  • Automating build and test processes using MCP agents.
Craft Better Prompts with AnyPrompt