Skip to main content
bryel runs a remote MCP server so your coding agent can work with your own data: query trace runs with BQL, inspect a fine-tune dataset’s quality, and build datasets without leaving the editor. It’s OAuth-gated, scoped to one project, and read-only by default.

Connect

1

Add the MCP server

2

Authorize

The first time your agent uses the server, a browser opens. Sign in to bryel and pick the project the agent may use. That project is bound to the connection; it’s the only one this agent can ever see.Leave Allow write off for read-only access (query and inspect). Turn it on only if you want the agent to create datasets and add records.
3

Ask away

Try “Using bryel, how many traces errored in the last 7 days, and which intents cost the most?” or “Inspect my good-berlin-runs dataset — is it balanced enough to fine-tune on?”

Tools

Ten tools, scoped to the single project you picked at consent. The agent can never name another project.

Traces

Datasets

The two write tools require Allow write at consent; otherwise they return a clear “read-only” error telling you to reconnect.

BQL in 30 seconds

BQL is a filter expression over your traces. Strings use single quotes; combine clauses with and, or, and not.
Call bryel_get_schema to see every field, operator, and your project’s actual intent labels and model names. See Concepts for what a trace and intent are.

Inspecting dataset quality

bryel_inspect_dataset returns the same metrics bryel uses to judge whether a dataset will train a good model, so your agent can curate before you export.
report
Distribution per intent, top share, and an imbalanced flag (one intent dominating means the fine-tune overfits it).
report
Unique vs duplicate inputs and the largest duplicate clusters (near-identical records waste capacity).
report
Clean vs looping / errored trajectories, overall and per intent (errored or looping runs teach the model bad behavior).
report
Token and step distributions, with a count of records at risk of truncating at the fine-tune context limit.
report
Which source models the records came from.

Building a dataset

With write enabled, an agent builds a fine-tune set without leaving the editor. The usual path curates your real runs — find good traces, then add the ones matching a filter:
That maps to bryel_create_datasetbryel_add_from_query (e.g. intent = 'add_pricing' and status = 'ok') → bryel_inspect_dataset. Adding from a query is idempotent per trace, so you can widen the filter and re-run without duplicating. See Datasets for the full curation and export flow. To add records from outside bryel instead, bryel_add_records takes the chat-with-tools shape directly:
input (the readable prompt) is derived from the first user message when you omit it. Add up to 500 records per bryel_add_records call.

Give your agent the playbook

Paste this into your AGENTS.md / CLAUDE.md (or .cursorrules) so the agent uses bryel well.
One connection equals one project, chosen at consent, and read-only unless you turned on Allow write. To use a different project — or to change the read/write choice — reconnect and re-consent. Removing the connection (or losing access to the project) cuts off the agent immediately.