obra-cto

v0.3.0
com.get-obra/obra-cto Checked 17 hours ago Published 5 months ago

Local-first MCP that scores your codebase's build readiness.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_project Scan project

Read a local project and return mechanical Build Readiness signals: file and line counts, languages, test files, CI config, lockfile, docs, and a redacted scan for hardcoded secrets. Returns signals only, never your source. Run this first.

ParameterTypeDescription
pathstringAbsolute path to the project root. Defaults to the current working directory.

run_tests Run tests

Run the project's test suite on this machine and parse pass/fail counts. This EXECUTES the project's own test command (for example `npm test`, which runs whatever that script defines), so only approve it for a project you trust to run. Your host asks before it runs. A green suite is the strongest grade-A reliability evidence the Obra CTO Score can use. Pass the result numbers to score_build_readiness.

ParameterTypeDescription
acknowledge_riskbooleanOnly relevant if the malware tripwire flagged this repo as dangerous. Running the test command would execute the flagged code. Set true ONLY after you have inspected the findings and are running in a…
commandstringOverride the test command (e.g. "pytest -q"). Defaults to the detected command.
pathstringProject root. Defaults to the current working directory.

check_dependencies Check dependencies for known CVEs

Query OSV.dev for known vulnerabilities in the project's locked dependencies, using exact versions from package-lock.json. Only package names and versions are sent, never your code. Real, current CVE data. Feed any findings into your security assessment.

ParameterTypeDescription
pathstringProject root. Defaults to the current working directory.

prepare_code_review Prepare code review

Select the highest-signal files (security-relevant paths, entry points, large files) and return their contents on this machine, with a review checklist. YOU, the host model, then read them and produce a structured security and architecture assessment, which you pass to score_build_readiness as `qualitative`. This is what upgrades those dimensions from inferred (grade C) to verified (grade A). Files stay local.

ParameterTypeDescription
max_filesnumberMaximum files to return (default 12).
pathstringProject root. Defaults to the current working directory.

score_build_readiness Score Build Readiness

Produce the Obra CTO Score (0 to 100) with a per-dimension breakdown, evidence grades, and a Top Risks register. Scan runs automatically. If you ran run_tests first, pass its numbers so reliability becomes grade-A evidence.

ParameterTypeDescription
pathstringProject root. Defaults to the current working directory.
qualitativeobjectYour structured security and architecture assessment from prepare_code_review. Supplying it upgrades those dimensions to grade A.
stagestringCalibrate expectations to your stage: prototype, mvp, or growth. Defaults to a detected guess.
tests_failednumberFailing tests, from a prior run_tests call.
tests_passednumberPassing tests, from a prior run_tests call.
tests_totalnumberTotal tests, from a prior run_tests call.
write_reportbooleanWrite the report to .obra/ in the project (default true), so the Obra CFO can read it later. Set false to skip writing.