1. Conduid
  2. Browser
  3. Crab
MCP server · Browser

Crab

CRAB (Clean Rebuild of Anything's Behavior): rebuild software from behavior, not source code. An MCP-powered toolkit for black-box observation, clean-room reimplementation, and behavioral verification.

78Good

Scored 17 hours ago · breakdown

About Crab

Crab is an MCP server published by lemonadesaltbagel in the Browser category: cRAB (Clean Rebuild of Anything's Behavior): rebuild software from behavior, not source code. An MCP-powered toolkit for black-box observation, clean-room reimplementation, and behavioral verification. Conduid read 36 tools from its source: add_quote, answer_ticket, api_contract, approve_observed_output, ask_question, audit_verify and 30 more. No package is published for it, so it installs from a source checkout.

The repository has 519 stars and 100 forks, is licensed Apache-2.0, and its last commit was on 14 Nov 2026. The latest release is v0.4.0. The release before it was v0.3.0. It passes all 5 static checks Conduid ran on the repository. Its topics include behavioral-testing, black-box-testing, clean-room-reimplementation, playwright, reverse-enginnering and sandboxing.

Install

From source
git clone https://github.com/lemonadesaltbagel/crab

Tools (36)

add_quoteStandard mode only: allow one literal through the gate, with the reason it is functionally necessary.
ParameterTypeDescription
approved_by *string
compat_reason *string
text *string
answer_ticketAnswer a clean-side question; the answer is gate-checked.
ParameterTypeDescription
answer *string
ticket_id *string
api_contractWeb: the value-free backend contract observed so far (paths, methods, statuses, body shapes). Fold data-bearing path segments with target_options.api_templates.
approve_observed_outputStandard mode only: approve byte-exact output the behavior requires (default: help/usage/version output) as functional quotes. Records who approved it.
ParameterTypeDescription
action_idsarray
approved_by *string
feature *string
ask_questionAsk the observer a behavioral question. Answers are gate-checked before you see them.
ParameterTypeDescription
question *string
audit_verifyVerify the audit log's hash chain.
blocked_hostsWeb: third-party hosts the app tried to load during one episode (reset + actions); candidates for target_options.profile.asset_hosts when layout depends on them.
ParameterTypeDescription
actionsarray
check_rulesCheck observer-authored rules against the original. Each rule: {statement (your own words), origin: documented|inferred-intent|observed, kind, checks: [{kind: outcome|same|differs, a: invocation, b: invocation (same/differs), expect: subset (outcome), keys: [..] (optional)}]}. Falsified documented rules are reported as documentation/behavior conflicts.
ParameterTypeDescription
feature *string
max_secondsnumber
rules *array
compile_specCompile a spec draft (model + claims + unknowns) for a feature.
ParameterTypeDescription
feature *string
coverageCoverage of a feature inventory {item: [patterns]} by probes and rule checks (options are added automatically). Uncovered items become unknowns.
ParameterTypeDescription
feature *string
inventoryobject
define_actionsDefine named actions (CLI invocations: argv, stdin, files, env, stdin_mode, stdout_mode, timeout_s) for learning flows of stateful CLIs.
ParameterTypeDescription
actions *object
discover_cliDiscover a CLI's interface: help structure confirmed by behavior probes. Help prose is kept as dirty-side evidence only; the result is structure (options, arity, value types).
ParameterTypeDescription
cmd *string
takes_filesboolean
discover_uiUI targets: crawl from the start screen (or after the named `start` actions, e.g. a sign-in) clicking every enabled control; screens are identified by route, headings and controls. Defines a click[role:name] action for every control found and records the inventory that coverage and suggest_probes use. Start here, then probe fields and state rules.
ParameterTypeDescription
feature *string
fillboolean
max_depthinteger
max_secondsnumber
max_statesinteger
startarray
falsify_claimTry to falsify a claim with fresh, uncached probes.
ParameterTypeDescription
claim_id *string
repeatsinteger
get_specGet the released behavioral specification (latest unless a release id is given).
ParameterTypeDescription
release_idstring
get_ticketCheck whether a question you asked has been answered.
ParameterTypeDescription
ticket_id *string
ingest_docsRegister public documentation you read (dirty side). Its paragraphs join the gate corpus so copied wording is flagged; write rules in your own words.
ParameterTypeDescription
source *string
text *string
learn_flowLearn a state machine for a feature with KV or L# under an explicit oracle budget.
ParameterTypeDescription
algorithmstring
alphabet *array
feature *string
walk_leninteger
walks_per_stateinteger
list_claimsList claims, optionally for one feature.
ParameterTypeDescription
featurestring
list_feature_unknownsList unknowns (yours and the ones coverage generated) with id, question and status, so they can be answered with update_unknown.
ParameterTypeDescription
featurestring
list_rulesList the rules recorded for a feature: id, statement, status, failed checks.
ParameterTypeDescription
feature *string
list_ticketsList questions from the clean side.
list_unknownsList the open questions the observer could not answer (missing coverage).
open_targetOpen a target and record intake (declared purpose, jurisdiction, ToS snapshot). target: cli:docker:<image> | cli:build:<dir> | cli:local | web:<url> | android:<serial>:<package> | desktop:docker:<image>. strict: every release needs a person's approval at a terminal. target_options (web): reset_command, reset_check_url, contract_selectors {source, selectors}, api_templates, profile {asset_hosts, ...}; see the observer guide.
ParameterTypeDescription
accountstring
jurisdictionstring
max_actions_per_secondnumber
owner_declarationstring
purpose *string
real_namesarray
strictboolean
target *string
target_optionsobject
terms_textstring
probe_cliProbe a CLI feature: one-factor sweep, pairwise over accepted classes, noise calibration (rerun + env variations), probe table, mined decision-table claims and unknowns. `hints` = {cmd, base, selector_options, takes_files, default_input, sweep_inputs, inputs, pair_inputs, operand_type, unicode_argv, skip_options, extra_inputs, extra_values}.
ParameterTypeDescription
env_sampleinteger
feature *string
hints *object
pairwiseboolean
probe_web_fieldProbe one form field (web, Android or desktop UI): equivalence classes for its kind (text/email/password/number or custom `classes`), a length-boundary search, per-class outcomes and folded claims. `prefix` = named actions that reach the form; `submit` = the named action that submits it. Boundary classes become named actions you can add to learn_flow's alphabet. When accepted values change the outcome (computed results), say what acceptance looks like: accepted_if = {subset: {...}} and/or {text_contains: '...'}. Number fields skip the length search (their limits are ranges). Without submit, the outcome is read right after typing (live previews, totals, counters).
ParameterTypeDescription
accepted_ifobject
boundaryboolean
classesobject
feature *string
kindstring
name *string
prefix *array
role *string
submitstring
validstring
propose_claimState a falsifiable claim as a trace check (expect: symbol per step, null = any).
ParameterTypeDescription
expectarray
feature *string
inputs *array
kind *string
layerstring
originstring
statement *string
strictnessstring
record_unknownRecord something that could not be observed (missing coverage is unknown, not absence).
ParameterTypeDescription
feature *string
question *string
recommended_probesarray
release_specRelease a draft through the gate. Strict mode: succeeds only once a person has approved every finding and acknowledged coverage gaps (`crab approve`); rewrite prose findings instead of waiting for approval. Standard mode: refused while measured coverage items are neither exercised nor explained, unless accept_gaps gives the reason they ship as unknowns.
ParameterTypeDescription
accept_gapsstring
draft_id *string
retract_ruleRetract one of your rules (e.g. superseded by a reworded version), with a reason. Rule ids are in check_rules results.
ParameterTypeDescription
feature *string
reason *string
rule_id *string
review_specRun the gate on a draft without releasing it: findings grouped by class (expected-output / interface / prose), which are approved, and prose findings in full.
ParameterTypeDescription
draft_id *string
run_sequenceReset the target, apply the inputs, and return raw observations and symbols. symbols_only drops the raw observations; keys (e.g. ["path", "status", "alerts"]) keeps only those parts of each symbol.
ParameterTypeDescription
inputs *array
keysarray
symbols_onlyboolean
set_mapperReplace the mapper rules (drop/mask/rename/classify). Creates a new mapper version.
ParameterTypeDescription
notestring
paramsobject
rulesarray
suggest_probesConcrete next steps for the feature's coverage gaps: fault actions with a path that makes the call, probe_web_field arguments for unprobed fields, click paths for unexercised controls. Run after discover_ui and after each batch of rules.
ParameterTypeDescription
feature *string
limitinteger
update_unknownMark an unknown resolved / out-of-scope / investigating (or reopen it) with a note. Resolved unknowns leave the release; the audit log keeps the history.
ParameterTypeDescription
notestring
status *string
unknown_id *string
verify_against_originalRun the spec's conformance suite against your implementation and the original. Returns pass/fail/inconclusive per test with expected and observed abstract symbols only. For UI targets pass an `adapter` {actions, rules} mapping your UI onto the spec's action names and output vocabulary. only='failed' re-runs just the tests your build did not pass last time (fast; finish with a full run).
ParameterTypeDescription
adapterobject
clone_target *string
onlystring

Security checks

Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.0K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 62 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
Streamable HTTPsrc/crab/mcp/http.py:37
Starts other programs
36 callssrc/crab/cleanroom.py:260, src/crab/cleanroom_runtime.py:60, src/crab/cleanroom_runtime.py:80
Outbound network calls
3 callssrc/crab/cleanroom_runtime.py:172, src/crab/drivers/web/driver.py:475, src/crab/gate/service.py:112
Writes or deletes files
44 callssrc/crab/cleanroom.py:100, src/crab/cleanroom.py:110, src/crab/cleanroom.py:112
Lockfile
uv.lock

Pattern matches on the source text of 62 files: places to read, not proof of what the code does at run time.

Releases

v0.4.0v0.4.0
v0.3.0v0.3.0

README

The repository's README runs to about 2.0K words, fetched 3 days ago. The original in the repository is authoritative.

Read full README
Questions

About Crab

How do I install Crab?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Crab safe to use with an AI agent?

Its trust score is 78 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. Conduid's scan of 62 source files found that it serves MCP over Streamable HTTP, starts other programs (36 calls), makes outbound network calls (3 calls) and writes or deletes files (44 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Crab still maintained?

Yes — the last commit was 17 days ago. The repository has 519 stars and 100 forks and 3 open issues.

What tools does Crab provide?

Conduid read 36 tools from the source: add_quote, answer_ticket, api_contract, approve_observed_output, ask_question, audit_verify, blocked_hosts, check_rules and 28 more. 32 of them publish their parameters, listed under Tools above.

What license is Crab released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v0.4.0, as well.