---
title: "An MCP server that tells your AI agent why your app broke"
description: "Connect your AI agent to the LogBrew MCP server. It reads the errors, logs, and traces of the projects you approve, and can triage issues if you allow it."
canonical: "https://logbrew.co/en/agents"
last_updated: "2026-11-23"
---

# An MCP server that tells your AI agent why your app broke
Connect your AI agent to the LogBrew MCP server. It reads the errors, logs, and traces of the projects you approve, and can triage issues if you allow it.

## Connect your agent
Pick your agent and copy one line. Then approve the projects it can read.

```text
https://logbrew.co/mcp
```

- **Claude Code (Terminal)**: `claude mcp add --transport http logbrew https://logbrew.co/mcp` Requires Claude Code 2.1.300 or later. Run the command, pick the projects in your browser, then select “Approve”.
- **Claude (Chat app)**: `https://logbrew.co/mcp` Open Settings > Connectors, select Add custom connector, and enter the server URL.
- **Codex (Terminal)**: `codex mcp add logbrew --url https://logbrew.co/mcp` Then run codex mcp login logbrew.
- **ChatGPT (Chat app)**: `https://logbrew.co/mcp` Open chatgpt.com/plugins, select + > Add custom MCP server, enter the server URL, and choose OAuth. Then pick the projects in your browser and select “Approve”.
- **GitHub Copilot (Editor)**: `{"servers":{"logbrew":{"type":"http","url":"https://logbrew.co/mcp"}}}` Add this to .vscode/mcp.json. Then pick the projects in your browser and select “Approve”.
- **Cursor (Editor)**: `{"mcpServers":{"logbrew":{"url":"https://logbrew.co/mcp"}}}` Add this to ~/.cursor/mcp.json. Then pick the projects in your browser and select “Approve”.
- **Antigravity (Editor)**: `{"mcpServers":{"logbrew":{"serverUrl":"https://logbrew.co/mcp"}}}` Add this to ~/.gemini/config/mcp_config.json. Then pick the projects in your browser and select “Approve”.
- **Gemini CLI (Terminal)**: `gemini mcp add --transport http logbrew https://logbrew.co/mcp` Then run /mcp auth logbrew.
- **OpenCode (Terminal)**: `{"mcp":{"logbrew":{"type":"remote","url":"https://logbrew.co/mcp"}}}` Add this to opencode.json. Then run opencode mcp auth logbrew.
- **Windsurf (Editor)**: `{"mcpServers":{"logbrew":{"serverUrl":"https://logbrew.co/mcp"}}}` Add this to ~/.codeium/windsurf/mcp_config.json. Then pick the projects in your browser and select “Approve”.
- **Warp (Terminal)**: `https://logbrew.co/mcp` Add the server URL as a remote (HTTP) MCP server in Warp. Then pick the projects in your browser and select “Approve”.
- **Cline (Editor)**: `https://logbrew.co/mcp` Add the server URL as a remote (HTTP) MCP server in Cline. Then pick the projects in your browser and select “Approve”.
- **Kiro (Editor)**: `{"mcpServers":{"logbrew":{"url":"https://logbrew.co/mcp"}}}` Add this to ~/.kiro/settings/mcp.json. Then pick the projects in your browser and select “Approve”.
- **Mistral Vibe (Terminal)**: `vibe mcp add logbrew --url https://logbrew.co/mcp` Run the command, pick the projects in your browser, then select “Approve”.
- **Le Chat (Chat app)**: `https://logbrew.co/mcp` Add the server URL as a remote (HTTP) MCP server in Le Chat. Then pick the projects in your browser and select “Approve”.
- **Kilo Code (Editor)**: `https://logbrew.co/mcp` Add the server URL as a remote (HTTP) MCP server in Kilo Code. Then pick the projects in your browser and select “Approve”.
- **Amp (Terminal)**: `amp mcp add logbrew https://logbrew.co/mcp` Run the command, pick the projects in your browser, then select “Approve”.
- **Droid (Terminal)**: `droid mcp add logbrew https://logbrew.co/mcp --type http` Run the command, pick the projects in your browser, then select “Approve”.
- **goose (Terminal)**: `https://logbrew.co/mcp` Add the server URL as a remote (HTTP) MCP server in goose. Then pick the projects in your browser and select “Approve”.
- **Qwen Code (Terminal)**: `qwen mcp add --transport http logbrew https://logbrew.co/mcp` Run the command, pick the projects in your browser, then select “Approve”.
- **Zed (Editor)**: `{"context_servers":{"logbrew":{"url":"https://logbrew.co/mcp"}}}` Add this to ~/.config/zed/settings.json. Then pick the projects in your browser and select “Approve”.
- **Other clients**: `https://logbrew.co/mcp` Any client that follows the MCP authorization standard works, such as GitHub Copilot CLI, MCP Inspector, Docker MCP Toolkit, and Smithery. Add the server URL as a remote (HTTP) MCP server, then select “Approve” on the LogBrew consent page.

### Then ask
- List my LogBrew projects.
- Why did checkout fail after the last release?
- Which errors are new since yesterday?

## Set up with 1 command
Run it in your app folder. It detects the framework, signs you in, installs the SDK, writes the key, adds the init code, and sends a test event. It asks before it changes a file.

```bash
npx logbrew-cli@latest setup
```

For coding agents:

```bash
npx logbrew-cli@latest setup --yes --json
```

## Check your setup
```bash
logbrew status --json
```

## AI assistant context
Give an agent the public LogBrew map before it edits your app or setup command.

installation prompt

```text
Read https://logbrew.co/llms.txt, then choose the matching SDK card at https://logbrew.co/en/docs#docs-sdk-choice-title. Use npm install @logbrew/sdk @logbrew/node only for a server-side Node.js service. For Next.js, React, iOS, Android, or React Native, use the selected card and Add Project prompt. Ask the signed-in user to open Add Project and place credentials only in the matching app environment. For server-side Node.js, the env var is LOGBREW_SERVER_API_KEY. Run node node_modules/@logbrew/node/examples/first-useful-telemetry.mjs only for Node services, then verify with logbrew logs info --json. Do not ask for credentials in chat or commits.
```

# Setup steps for your agent
Give your agent these 5 steps when it sets up LogBrew or reads your data.

## Step 1: Read the public map
Load the public route index before changing app code so the assistant starts from current LogBrew context.

```bash
curl -L https://logbrew.co/llms.txt
```

Next: Use the linked Markdown mirrors for deeper public context.

## Step 2: Choose the SDK card
Read the SDK chooser before installing anything, then use Copy Installation Prompt in Add Project so the assistant follows the selected platform.

```bash
curl -L https://logbrew.co/en/docs.md
```

Next: Ask the signed-in user to open Add Project, copy the installation prompt, and keep ingest credentials out of chat.

## Step 3: Check local status
Confirm API reachability and auth source before reading private projects, logs, issues, actions, traces, or releases.

```bash
logbrew status --json
```

Next: Follow the token-safe next field instead of guessing.

## Step 4: Verify the first signal
After setup sends a safe SDK signal, read one scoped result and keep tokens, cookies, and project data out of prompts.

```bash
logbrew logs info --json
```

Next: Use issue, action, trace, release, and project reads only after auth is ready.

## Step 5: Investigate a failure
List issues with logbrew issues --json. Then read one issue's affected users, ordered evidence, likely cause, and data limits.

```bash
logbrew investigate issue <issue_id> --json
```

Next: Report who was affected and what the data cannot show.

## Use predictable public URLs
Agents should find public LogBrew context through stable localized pages, Markdown mirrors, llms.txt, robots.txt, and sitemap.xml.

- Use /en/agents.md when plain text is the safest input.
- Use /en/docs.md for command and API route context.
- Use /llms.txt to discover public agent-readable resources.

## Start with token-safe status
The CLI should tell agents whether local auth, API reachability, and recovery steps are ready without exposing token material.

- Run logbrew status --json before project reads.
- Follow next steps from JSON and human output instead of guessing.
- Keep token material out of prompts, logs, screenshots, and public pages.
- Install the CLI with npm install -g logbrew-cli, npx logbrew-cli, or Homebrew. There is no @logbrew/cli package.
- Without a browser, sign in with logbrew login --device.
- To use a read key from .env, run set -a; . ./.env; set +a before logbrew status --json.

## Prefer resource-specific reads
Agents should read logs, issues, actions, traces, releases, and projects through the same resource vocabulary used by humans.

- Use filters for release, environment, project, trace, severity, status, name, and user.
- Use issue and trace detail routes when an identifier is known.
- Use Markdown mirrors for public context and the authenticated API for private project data.

## Keep private data behind auth
Use public documentation for product guidance. Use authenticated reads for private project data.

- Do not scrape dashboard data without a valid user session.
- Do not publish private project names, tokens, traces, or deployment details.
- Use public pages for general learning and authenticated routes for scoped user data.

## Answer product questions with analytics
Use logbrew analytics or the MCP analytics.* operations for traffic sources, funnels, conversion, drop-off, and returning users. Don't rebuild them from raw actions.

- The browser SDK tags every visit with tag.utm_source, tag.utm_medium, tag.utm_campaign, and tag.referrer_domain. No attribution code is needed.
- logbrew read actions lists actions only. Count page views with logbrew analytics overview, and read them with logbrew read trace.
- Each answer shows the change from the previous period, the sample size, and example session or user IDs.
- To split a funnel by source, run logbrew analytics funnel --project <id> --since 24h --step page-view / --step interaction signup_completed --breakdown tag.utm_source --json

## Guides for AI coding agents
Setup steps for every agent, and fixes for Claude Code and Codex. Each page names its source.

- [Claude Code MCP and Codex MCP server setup](https://logbrew.co/en/guides/mcp-server-claude-code-codex)
- [Use AGENTS.md in Claude Code and Codex](https://logbrew.co/en/guides/agents-md)
- [Fix the Claude overloaded error 529 and rate limit error 429](https://logbrew.co/en/guides/claude-overloaded-rate-limit-error)
- [How to fix errors and set up logs, traces, metrics & releases](https://logbrew.co/en/guides)

## Public agent links
- Agents: https://logbrew.co/en/agents
- Agents Markdown: https://logbrew.co/en/agents.md
- Docs Markdown: https://logbrew.co/en/docs.md
- Home Markdown: https://logbrew.co/en/page.md
- Authenticate: https://logbrew.co/auth.md
- OpenAPI: https://logbrew.co/openapi.json
- llms.txt: https://logbrew.co/llms.txt
- Sitemap: https://logbrew.co/sitemap.xml