Repository avatar
Other Tools
v0.1.5
active

nabrila-mcp

io.github.nabrila/nabrila-mcp

Opens encrypted Nabrila bug reports from Flutter apps locally so coding agents can read them.

Documentation

Nabrila MCP server

npm license: MIT CI

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 · Docs · Nabrila for Flutter

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:

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

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

Any other client takes this standard configuration:

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

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

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

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

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

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

Windsurf

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

Codex
codex mcp add nabrila -- npx -y @nabrila/mcp

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

ToolWhat 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:

    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

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.

NPM
@nabrila/mcp
Install Command
npm install @nabrila/mcp