---
title: "MCP tools"
description: "Every tool the Baz MCP server exposes, its key arguments, the code review skill, and client configuration."
canonical: "https://baz.ai/docs/reference/mcp-tools"
---

# MCP tools

Every tool the Baz MCP server exposes, its key arguments, the code review skill, and client configuration.

The Baz MCP server gives coding agents your organization's review guidelines, review discussions, memories, plans, evaluation metrics, and indexed code search. It runs at `https://baz.ai/mcp` (or `/mcp` on your own Baz host) over streamable HTTP. Clients sign in through the browser, or with an API key when they cannot open one.

## Tools

| Tool | Purpose | Key arguments |
| --- | --- | --- |
| `organizational_review_guidelines` | The organization's built-in and custom reviewers for a repository, each with `title`, `guidelines`, `globPatternsToReview`, and `globPatternsToSkip`. | `repository` (root folder name of the repo), optional `page`, `pageSize` (1 to 10) |
| `get_review_discussions` | Review discussions on the latest PR for a branch: file, commented code, status (`open`, `resolved`, `addressed`), reviewer, and the full thread. | `repository`, `branch`, optional `status` (`open` or `all`) |
| `get_evaluations` | Evaluation metrics: acceptance summary and breakdown, coverage, SDLC agent metrics, and a page of findings. | optional `timeWindow` (`1 week`, `2 weeks`, `1 month`, `6 months`, `all time`), `from`, `to`, `repoIds`, `reviewerIds`, `logins`, `groupBy` (`agent`, `repository`, `author`), `page`, `pageSize` |
| `list_memories` | Lists memories visible to you. | optional `agentId` or `agentName`, `status` (`active`, `disabled`), `page`, `pageSize` (up to 100, default 20) |
| `get_memory` | Reads one memory. | `memoryId` |
| `update_memory` | Changes a memory's text or status. Admin only. | `memoryId`, `text` and/or `status` |
| `repo_search` | Searches architecture summaries across every repository in the organization, or across the domains of one monorepo. Returns `repoId`, `repoName`, `domain`, `summary`. | `keywords`, optional `domains` (for example `API`, `DATABASES`, `SECURITY`) |
| `remote_grep` | Regex search inside one repository, scoped to a path, with about 2 lines of context per match. Up to 1000 matched lines. | `repository`, `pattern`, `path` (`.` for the whole repo), optional `ref` |
| `remote_file_search` | Finds files by glob in one repository. Up to 50 matches. | `repository`, `pattern` (include a naming token such as `**/*router*`), optional `ref` |
| `update_plan` | Uploads the plan for the current agent session to Baz, as a new version. Returns a shareable `/plans/<id>` link. Call only after the user agrees, because teammates can read it. | optional `sessionId`, `content`, `agentVendor`, `modelId`, `tokensUsed`, `repoIds` or `repoNames` |
| `link_plan_to_pr` | Records that a PR implements a plan and marks the plan implemented. | `planId`, `repository`, `prNumber` |
| `get_plan` | Reads a plan's body, status, linked PRs, and version history. | `planId` (plan URL or UUID), optional `version` |
| `get_plan_comments` | Reads teammates' comments on a plan, grouped as open, already replied, or dismissed. | `planId` |
| `respond_to_plan_comment` | Posts a threaded reply on a plan comment and notifies its author. | `planId`, `commentId`, `body`, optional `triageState` (`open`, `dismissed`) |
| `load_resources` | Returns all Baz skill documents, for clients that do not support MCP resources. | none |

The code search tools (`repo_search`, `remote_grep`, `remote_file_search`) read Baz's indexed copy of your repositories, so they work on repositories you have not cloned and do not count against your Git provider's rate limits. `repository` accepts a short name (`api`) or `owner/repo` when the short name is ambiguous. `ref` is a branch or a commit SHA and defaults to the default branch.

The search and plan tools also take optional `sessionId`, `sessionRepository`, and `agentVendor` arguments. The [Planner plugin](/docs/integrations/developer-tools/planner-plugin) fills them in so tool calls appear on your session in Baz.

## The code review skill

The server publishes one skill as an MCP resource, `baz-code-reviewer-skill` (`skill://baz/baz-code-reviewer-skill`). It tells the agent how to run a local review against your team's standards:

1. Get the repository name with `basename $(git rev-parse --show-toplevel)` and call `organizational_review_guidelines`.
2. For each reviewer, review only files that match `globPatternsToReview` and skip files that match `globPatternsToSkip`.
3. Report findings grouped by reviewer title, with file and line, the guideline that was violated, and a concrete fix.

## Client configuration

### Browser sign-in

<Tabs>
  <Tab title="Claude Code">
    ```bash title="Terminal"
    claude mcp add --transport http baz https://baz.ai/mcp
    ```
  </Tab>
  <Tab title="Cursor">
    Use **Add to Cursor** on the MCP integration page in Baz, or add this to `~/.cursor/mcp.json`:

    ```json title="~/.cursor/mcp.json"
    {
      "mcpServers": {
        "baz": { "url": "https://baz.ai/mcp" }
      }
    }
    ```
  </Tab>
  <Tab title="VS Code">
    ```json title=".vscode/mcp.json"
    {
      "servers": {
        "baz": { "type": "http", "url": "https://baz.ai/mcp" }
      }
    }
    ```
  </Tab>
  <Tab title="Windsurf">
    ```json title="~/.codeium/windsurf/mcp_config.json"
    {
      "mcpServers": {
        "baz": { "serverUrl": "https://baz.ai/mcp" }
      }
    }
    ```
  </Tab>
  <Tab title="Claude Desktop">
    Open **Settings → Connectors → Add custom connector** and enter `https://baz.ai/mcp`. Claude Desktop connectors support browser sign-in only.
  </Tab>
</Tabs>

### API key

For clients that cannot open a browser, such as an agent in CI, send an [API key](/docs/admin/api-keys) in the `x-api-key` header. Send the key itself, not a token exchanged from it.

<Tabs>
  <Tab title="Claude Code">
    ```bash title="Terminal"
    claude mcp add --transport http baz https://baz.ai/mcp --header "x-api-key: <your-api-key>"
    ```
  </Tab>
  <Tab title="Cursor">
    ```json title="~/.cursor/mcp.json"
    {
      "mcpServers": {
        "baz": {
          "url": "https://baz.ai/mcp",
          "headers": { "x-api-key": "<your-api-key>" }
        }
      }
    }
    ```
  </Tab>
  <Tab title="VS Code">
    ```json title=".vscode/mcp.json"
    {
      "servers": {
        "baz": {
          "type": "http",
          "url": "https://baz.ai/mcp",
          "headers": { "x-api-key": "<your-api-key>" }
        }
      }
    }
    ```
  </Tab>
  <Tab title="Windsurf">
    ```json title="~/.codeium/windsurf/mcp_config.json"
    {
      "mcpServers": {
        "baz": {
          "serverUrl": "https://baz.ai/mcp",
          "headers": { "x-api-key": "<your-api-key>" }
        }
      }
    }
    ```
  </Tab>
</Tabs>

## Related

<CardGroup cols={2}>
  <Card title="MCP integration" href="/docs/integrations/developer-tools/mcp" icon="plug">
    Set up the MCP server from the Baz app.
  </Card>
  <Card title="Planner plugin" href="/docs/integrations/developer-tools/planner-plugin" icon="terminal">
    Plan with Baz in Claude Code, Codex, or Cursor.
  </Card>
  <Card title="REST API" href="/docs/reference/api" icon="code">
    The same data over HTTP.
  </Card>
</CardGroup>
