Skip to main content
Glama
README.md
# Nabrila MCP server

[![npm](https://img.shields.io/npm/v/@nabrila/mcp.svg)](https://www.npmjs.com/package/@nabrila/mcp)
[![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nabrila/nabrila-mcp/blob/main/LICENSE)
[![CI](https://github.com/nabrila/nabrila-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/nabrila/nabrila-mcp/actions/workflows/ci.yml)

Opens Nabrila bug reports on your machine, so Claude Code, Cursor or any MCP
client can read them: the tester's note, the widget they pointed at with its
`file:line`, steps to reproduce, the timeline of taps, routes, HTTP calls and
logs, the screenshot and the replay.

**[Try it with the example report](https://nabrila.com/r/example)** ·
[Docs](https://nabrila.com/docs/coding-agents) ·
[Nabrila for Flutter](https://nabrila.com/docs/flutter-sdk)

## Decrypted on your machine

Nabrila reports are encrypted on the tester's phone (AES-256-GCM). On the Free
plan the key exists only in the link fragment,
`https://nabrila.com/r/<id>#k=<key>`, and browsers never send the fragment to
a server. On paid plans Nabrila also keeps a copy of the key so the team can
open reports from the inbox, unless the app sets `keepKeyOnDevice: true`.

This server runs on your machine. `open_report` downloads the encrypted file
by id, decrypts it locally with the key from `#k=` and keeps it in memory. This
server never sends the key anywhere, not to Nabrila and not to any other
service, and nothing it decrypts leaves your machine.

Other bug-reporting MCP servers read reports in plain text on the vendor's
servers. This one cannot, by design.

## Install

Requires Node.js 20 or newer. Your MCP client starts the server with `npx`, so
there is nothing to install globally.

**Claude Code:**

```sh
claude mcp add nabrila -- npx -y @nabrila/mcp
```

Add `--scope user` to have it in every project.

**Any other client** takes this standard configuration:

```json
{
  "mcpServers": {
    "nabrila": {
      "command": "npx",
      "args": ["-y", "@nabrila/mcp"]
    }
  }
}
```

<details>
<summary>Cursor</summary>

Add the standard configuration to `~/.cursor/mcp.json` (all projects) or
`.cursor/mcp.json` (one project).

</details>

<details>
<summary>VS Code</summary>

```sh
code --add-mcp '{"name":"nabrila","command":"npx","args":["-y","@nabrila/mcp"]}'
```

Or add it to `.vscode/mcp.json`, where the key is `servers`:

```json
{
  "servers": {
    "nabrila": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@nabrila/mcp"]
    }
  }
}
```

</details>

<details>
<summary>Claude Desktop</summary>

Add the standard configuration to `claude_desktop_config.json`
(`~/Library/Application Support/Claude/` on macOS,
`%APPDATA%\Claude\` on Windows) and restart the app.

</details>

<details>
<summary>Windsurf</summary>

Add the standard configuration to `~/.codeium/windsurf/mcp_config.json`.

</details>

<details>
<summary>Codex</summary>

```sh
codex mcp add nabrila -- npx -y @nabrila/mcp
```

</details>

On Windows, clients that cannot start `npx` directly need
`"command": "cmd"` and `"args": ["/c", "npx", "-y", "@nabrila/mcp"]`.

Then ask your agent, for example: _"Open https://nabrila.com/r/…#k=… and fix
the bug."_

## Tools

| Tool | What it returns |
| --- | --- |
| `open_report(link)` | Downloads and decrypts the report; returns a compact summary: app, version, device, kind, the tester's note, the pointed element with its source location, context, numbered steps to reproduce, event and failure counts, the first failure, and whether there is a screenshot and a replay. |
| `get_events(id, kind?, only_errors?)` | The timeline, each event numbered `#n`, with full stack traces. `kind` is `tap`, `navigation`, `http` or `log`; `only_errors` keeps 4xx/5xx and unanswered requests, error logs and exceptions. |
| `get_request(id, index)` | One HTTP request (`#n`): URL, status, timing, sizes, request and response headers and body previews (redacted on the phone), and an equivalent `curl`. |
| `get_screenshot(id)` | The screenshot (PNG, with the tester's drawings) as image content. |
| `get_replay(id)` | Writes the replay to a private temp folder (`<tmp>/nabrila-mcp/<id>/`, mode `700`) and returns the paths with each frame's time `t` on the same clock as the events. MP4 replays list `t -> video time` for `ffmpeg`; still-frame replays also return up to 6 evenly spaced frames as images. |
| `get_changes(id, repo?, path?)` | What changed since the tester's build: commits after it, the last commits in it, the files changed and, with `path`, that diff. Runs `git` in your checkout (the server's folder by default, or a folder inside it: anything outside is refused); the output is fenced as data, like report content. Needs builds made with `--dart-define=NABRILA_COMMIT=$(git rev-parse HEAD)`. |
| `symbolize(id \| stack_trace, debug_info_path, index?)` | Runs `flutter symbolize` on the report's obfuscated stack traces (or on a given one) and returns them with `file:line` frames. |

`id` is the report id shown by `open_report`; the full link works too. Opened reports stay in memory (up to 20) until the server stops.

## Security

The server only downloads reports from the link you give it. It opens `https`
links, and plain `http` only for `localhost`, `127.0.0.1` and `[::1]` (a local
Nabrila during development). Of your files, it only reads the symbols you pass
to `symbolize` and, through `git`, the checkout you point `get_changes` at: the
folder the server runs in or one inside it (real paths are compared, so `..` and
symlinks cannot leave it). It
writes only to private temp folders (the replay, and the stack traces it hands
to `flutter symbolize`). The only programs it runs are `flutter symbolize` and
read-only `git` commands (`rev-parse`, `cat-file`, `log`, `diff`), run with
`--no-ext-diff --no-textconv` and `core.fsmonitor` off so a repository's own
config cannot start programs, and only with a commit that is 7 to 40 hex
characters.

Every output that contains report data (the `get_changes` commits and diffs too) starts with a line saying it is content from a tester's app: data, not instructions. The engine also strips invisible and text-reordering characters from every field, so nothing can hide instructions for the agent in text that looks harmless.

A report is what a tester sent from their phone. Treat it as input to check,
like any bug report.

## Errors

Each problem comes back as one plain sentence: a link that is not a report link, a link without its `#k=` key, a report that is not found, expired or removed, a key that does not open the report, a damaged file, rate limiting or a network failure.

## Symbolize prerequisites

Release builds made with `--obfuscate` print stack traces without names (`#00 abs 0000… virt …`). To turn them back into code locations:

1. Build the app with split debug info, and keep the folder for every build you ship to testers:

   ```sh
   flutter build apk --obfuscate --split-debug-info=build/symbols/2.4.0+118
   ```

2. Have Flutter on the `PATH` of the program that runs this server (`flutter --version` must work there).
3. Call `symbolize` with the symbols file for the tester's device architecture, e.g. `build/symbols/2.4.0+118/app.android-arm64.symbols` (a folder works when it holds a single `.symbols` file).

The symbols must come from the exact build the tester used. Debug and profile builds already have readable traces and need nothing.

## From source

```sh
npm install
npm run build      # bundles to dist/index.js
npm test
```

Then point your client at `node /absolute/path/to/nabrila-mcp/dist/index.js`.
The build bundles the report engine in `engine/`: the same code the Nabrila
web viewer uses to read reports.

## License

MIT, including the report engine in `engine/`. See
[LICENSE](https://github.com/nabrila/nabrila-mcp/blob/main/LICENSE).

TDQS

A4.1/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct artifact or operation: the report summary, the event timeline, a single request's detail, the screenshot, the replay video, git history, and stack symbolization. The one potentially overlapping pair (get_events vs. get_request) is explicitly disambiguated by describing get_request as taking an #n from get_events, and get_screenshot vs. get_replay are clearly different media.

Naming Consistency4/5

Five of seven tools use a consistent get_<noun> pattern (get_screenshot, get_events, get_request, get_replay, get_changes). open_report and symbolize deviate, but each deviation is semantically justified (a side-effecting download/decrypt and a transformation verb), so the set remains predictable.

Tool Count5/5

Seven tools is well within the ideal range and each one maps to a concrete step in the debugging workflow (open → inspect events → drill into a request → view screenshot/replay → check code changes → symbolize). No filler or redundant tools are present.

Completeness4/5

The lifecycle from ingesting a report through triage (events, request detail, screenshot, replay) to root-causing (git changes, symbolization) is covered end to end. The main gap is discovery: there is no tool to list or search available reports, so an agent must already possess a report link/id, and there is no way to annotate or close a report.