
tarbrief
io.github.CloudCorpRecords/tarbrief
eDiscovery news briefs and TAR calculators: recall, elusion, sample size, richness, cutoffs.
Documentation
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 supportededd://resource (demo guide, TAR learning path, glossary, or news). Requiresuri.get_prompt_template— Render one of the server's guided prompts by name. Requiresprompt_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. Requirestrue_positives,false_positives,false_negatives,true_negatives.calculate_elusion— Elusion rate and a Wilson confidence interval for a sampled discard set. Requiresrelevant_found_in_sample,sample_size.calculate_sample_size— How many documents to sample for a target confidence level and margin of error. Requirespopulation_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. Requiresresponsive_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. Requirespositive_hits,sample_size.calculate_control_set_recall— Recall against a known control set. Requiresrelevant_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. Requiresscored_document_count,cutoffs.validate_sample_design— QC a TAR validation sampling plan and flag missing or inconsistent elements. Requirespopulation_size,sample_size.
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.
@reneturcios/tarbriefnpm install @reneturcios/tarbriefghcr.io/cloudcorprecords/tarbrief:0.1.0docker pull ghcr.io/cloudcorprecords/tarbrief:0.1.0:undefinedRelated Servers
io.github.CloudCorpRecords/a11yscan
WCAG accessibility audits for URLs and HTML: scans, stored reports and the full rule list.
io.github.CloudCorpRecords/abandoncheck
Judge whether a dependency is maintained, from factual signals: releases, commits, archival.
io.github.CloudCorpRecords/actionbridge
Zapier exposed actions as MCP tools via a generic action runner.