Skip to main content
Glama

tarbrief

Keeping up with eDiscovery news is one job; defending the numbers behind a technology-assisted review is another. tarbrief is a local forwarding client for the hosted eDiscovery Decoder MCP service that covers both: it answers tools/list locally from the captured tool definitions and forwards every call to the service, returning the answers exactly as the service sends them back.

On the news side there is a health check, a full capability catalogue, a demo walkthrough, readers for the service's own published resources and prompt templates, a searchable news index, and a ready-made news brief with a week-in-review breakdown. On the numbers side sit the TAR calculators: review metrics from a confusion matrix, elusion for a discard set, sample-size planning with finite-population correction, an overall TAR recall estimate, prevalence/richness, control-set recall, side-by-side cutoff comparisons, and a sample-design quality check. Every tool is read-only and works from aggregate counts or published content; there is no write, signup, or send tool in this surface.

The tools

  • ping — Health check confirming the upstream server is reachable. No inputs.

  • list_capabilities — The full upstream surface (tools, prompts, resources), the suggested demo flow, and an example prompt for each entry. No inputs.

  • get_demo_guide — A short human-readable walkthrough for testing the server. No inputs.

  • get_resource_content — Fetch the JSON behind a supported edd:// resource (demo guide, TAR learning path, glossary, or news). Requires uri.

  • get_prompt_template — Render one of the server's guided prompts by name. Requires prompt_name.

  • search_news — Search recent eDiscovery / legal-AI / TAR news by topic, tag, or date range. All inputs optional.

  • get_news_brief — The current news brief: top stories plus a Week in Review breakdown, as structured data and display-ready Markdown. All inputs optional.

  • calculate_review_metrics — Recall, precision, F1, accuracy, and in-sample elusion from a confusion matrix. Requires true_positives, false_positives, false_negatives, true_negatives.

  • calculate_elusion — Elusion rate and a Wilson confidence interval for a sampled discard set. Requires relevant_found_in_sample, sample_size.

  • calculate_sample_size — How many documents to sample for a target confidence level and margin of error. Requires population_size, margin_of_error.

  • calculate_tar_recall_estimate — Overall TAR recall and an estimate of missed responsive documents, combining found counts with an elusion sample. Requires responsive_found, excluded_population_size, elusion_responsive_hits, elusion_sample_size.

  • calculate_prevalence_richness — Prevalence/richness estimate with a Wilson interval from positive hits in a sample. Requires positive_hits, sample_size.

  • calculate_control_set_recall — Recall against a known control set. Requires relevant_found, relevant_missed.

  • compare_tar_cutoffs — Candidate TAR cutoffs side by side: documents above each, share of the scored set, and estimated precision where responsive counts are given. Requires scored_document_count, cutoffs.

  • validate_sample_design — QC a TAR validation sampling plan and flag missing or inconsistent elements. Requires population_size, sample_size.

Related MCP server: Local KAPA MCP adapter

Install and run

As an MCP server via npm:

npx -y @reneturcios/tarbrief mcp

MCP client configuration:

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

As a container:

docker run -i ghcr.io/cloudcorprecords/tarbrief
docker run --rm ghcr.io/cloudcorprecords/tarbrief calculate_elusion '{"relevant_found_in_sample":2,"sample_size":400}'

CLI

One binary serves both the command line and the MCP server. Each tool is a subcommand taking a single JSON string with that tool's arguments:

tarbrief ping '{}'
tarbrief get_news_brief '{}'
tarbrief calculate_review_metrics '{"true_positives":80,"false_positives":20,"false_negatives":10,"true_negatives":890}'
tarbrief --version

Exit codes: 0 when the forwarded call succeeds, 1 when the upstream result is an error, and 2 for usage problems such as an unknown subcommand or a malformed JSON argument.

Configuration

  • TARBRIEF_MCP_URL — Overrides the upstream endpoint. The default is the pinned hosted endpoint, https://mcp.ediscoverydecoder.com/mcp. (The override variable is a reconstruction added by this rebuild.)

The upstream registry record declares no headers and the endpoint answers keyless, so no authentication header is ever sent.

Upstream failures — a JSON-RPC error from the service, a non-2xx response, an unreadable body, or a request that fails outright — are reported to the caller as an error result whose text starts with tarbrief error:.

How forwarding works

The first forwarded call opens a session: an initialize request (protocol version 2025-03-26), followed by a notifications/initialized notification, then the tools/call itself. If the service answers the initialize request with an Mcp-Session-Id header, that value is carried on every later request, and the open session is reused for the rest of the process. Replies are accepted either as plain JSON or as server-sent events. Successful results pass through verbatim, including any isError flag and any extra fields the service includes.

Development

npm install
npm run build   # tsc -> dist/ (dist/cli.js is the bin)
npm test        # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev     # run the CLI from source

The test suite checks the served tool list against the captured surface (all 15 tools, deep-equal, with titles, required lists, and schema details exactly as captured), exercises the session handshake and its reuse, verifies that no Authorization or X-API-Key header is ever sent under any environment, and verifies that arguments go upstream untouched and results come back untouched.

License

MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables XTend developers and agents to search and retrieve canonical XTend documentation, recipes, and kit resources through read-only MCP tools, resources, and prompts served over stateless HTTP.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Bridges MCP clients to a hosted service exposing 64 read-only tools over US public records, covering SEC filings and insider trades, congressional trades and campaign finance, lobbying, federal contracts and grants, FDA and other regulatory enforcement, company fundamentals, prices, and cross-collection search. Every call is forwarded upstream so published disclosures can be queried by ticker, CIK, name, or date range without storing anything locally.
      277 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to access statutory DSAR and breach guidance, including deadlines, notification clocks, triage, letter templates, AI-tool checks, HR retention periods, and scoping helpers by forwarding tool calls to a hosted service.
      310 npm
      MIT