nacgarg_bazel-mcp-server

nacgarg_bazel-mcp-server

0

Bazel MCP Server is a local server that links the Bazel build system with MCP-enabled AI environments. It provides tools for building, querying, and testing Bazel targets, and can be configured for different setups.

Bazel MCP Server

A local MCP server for integrating Bazel with MCP-enabled AI agents. Useful when no command-line tool is available or when environments are misconfigured.

Tools

  • bazel_build_target: Build Bazel targets
  • bazel_query_target: Query dependency graph
  • bazel_test_target: Run target tests
  • bazel_list_targets: List all workspace targets
  • bazel_fetch_dependencies: Fetch dependencies
  • bazel_set_workspace_path: Change workspace path

Optional additionalArgs for further Bazel command configurations.

Usage

Installation

  • With Cursor: Add configuration to .cursor/mcp.json. Specify paths if needed.
  • With Claude Desktop: Similar setup as Cursor.
  • Standalone Launch: Use npx or clone from GitHub and build.

Configuration

Configurations via Command line, Environment variables, or Config file.