Repo Test Architect
v1.5.0Audit-first test strategy MCP server for repository-native test planning.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
review_repository Review Repository
Start here for an unfamiliar repository or a general test-architecture review. Detect and audit all project roots once, then return a bounded deterministic review: summary counts, blockers, top findings, the top-ranked candidates and plan items with execution hints, verification commands, and stats. limit caps the ranked lists (default 25) and per-test evidence is reduced to counts, so the result stays small on large monorepos. Use explain_target with repoRoot and projectRoot for one target's evidence, and analyze_repository only when the complete bundle is explicitly needed.
| Parameter | Type | Description |
|---|---|---|
repoRoot * | string | Repository root path. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before the review. |
goTarget | object | |
limit | integer | Maximum ranked candidates and plan items to return. Defaults to 25. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
analyze_repository Analyze Repository
Return the complete repository-analysis/v1 bundle: every project audit with per-target test evidence plus the derived summary, findings, ranking, plan, execution hints, and stats. The result grows with repository size and can exceed client limits on large monorepos, so prefer review_repository first and use this only when the complete bundle is explicitly needed or the repository is small.
| Parameter | Type | Description |
|---|---|---|
repoRoot * | string | Repository root path. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before analysis. |
goTarget | object | |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
list_adapters List Adapters
List registered language adapters available to audit repositories.
list_project_detection_rules List Project Detection Rules
List deterministic project marker rules and ignored directories used during project detection.
detect_projects Detect Projects
Discover project roots, support status, and matching adapters without auditing source targets. Use this when project boundaries are needed before a specialized workflow; use review_repository for a general review. Reads local repository markers and returns project-detection/v1 without executing tests or writing files.
| Parameter | Type | Description |
|---|---|---|
repoRoot * | string | Readable repository directory whose project markers should be inspected. |
excludeProjectRoots | array | Optional exact project roots or subtree patterns such as examples/** to exclude before returning detected projects. |
audit_projects Audit Projects
Return raw per-project audit artifacts for all detected supported roots, report unsupported roots, and list roots whose adapter failed in failedProjects. Use when a downstream specialist tool needs project-audits/v1; for a general first-pass review, prefer review_repository. The result can be large; specialist tools also accept repoRoot directly, so the artifact rarely needs to be passed back.
| Parameter | Type | Description |
|---|---|---|
repoRoot * | string | Repository root path. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing detected projects. |
goTarget | object | |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
summarize_project_audits Summarize Project Audits
Summarize an existing project-audits/v1 artifact. Use only when a compact coverage view is needed separately; review_repository returns a bounded version of this result; pass repoRoot here for the complete artifact.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing. |
goTarget | object | |
projectAudits | object | A project-audits/v1 artifact; or pass repoRoot instead. |
repoRoot | string | Repository root to audit instead of passing projectAudits. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
rank_project_candidates Rank Project Test Candidates
Rank candidates from an existing project-audits/v1 artifact while preserving project identity. review_repository returns a bounded version of this result; pass repoRoot here for the complete artifact.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing. |
goTarget | object | |
projectAudits | object | A project-audits/v1 artifact; or pass repoRoot instead. |
repoRoot | string | Repository root to audit instead of passing projectAudits. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
generate_project_test_plan Generate Project Test Plan
Generate a project-aware plan from an existing project-audits/v1 artifact. review_repository returns a bounded version of this result; pass repoRoot here for the complete artifact.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing. |
goTarget | object | |
projectAudits | object | A project-audits/v1 artifact; or pass repoRoot instead. |
repoRoot | string | Repository root to audit instead of passing projectAudits. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
collect_project_findings Collect Project Findings
Collect concise top findings from an existing project-audits/v1 artifact. review_repository returns a bounded version of this result; pass repoRoot here for the complete artifact.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing. |
goTarget | object | |
projectAudits | object | A project-audits/v1 artifact; or pass repoRoot instead. |
repoRoot | string | Repository root to audit instead of passing projectAudits. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
analyze_project_test_placement Analyze Project Test Placement
Derive advisory test-placement findings across audited projects while preserving project identity, from a project-audits/v1 artifact or, with repoRoot, from a fresh audit. Use analyze_test_placement for one project. Does not execute tests or create, move, or modify files.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing. |
goTarget | object | |
projectAudits | object | A project-audits/v1 artifact; or pass repoRoot instead. |
repoRoot | string | Repository root to audit instead of passing projectAudits. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
collect_project_stats Collect Project Stats
Aggregate coverage, counts, risk and signal distributions, frameworks, and adapter usage from a project-audits/v1 artifact or, with repoRoot, from a fresh audit. Use this for separate reporting or comparisons; review_repository already includes the same stats. Returns project-stats/v1 without executing tests or writing files.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before auditing. |
goTarget | object | |
projectAudits | object | A project-audits/v1 artifact; or pass repoRoot instead. |
repoRoot | string | Repository root to audit instead of passing projectAudits. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
audit_repo Audit Repository
Audit one explicitly selected project root and return audit/v1. Use only when the caller selected a single adapter or project boundary; adapterId defaults to javascript. For an unfamiliar repository or a general review, use review_repository.
| Parameter | Type | Description |
|---|---|---|
repoRoot * | string | Repository root path. |
adapterId | string | Optional adapter id. Defaults to javascript. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
goTarget | object | |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Key "." names the audited root. |
get_audit_graph Get Audit Graph
Return one project's audit/v1 artifact: validate and return a saved audit unchanged, or pass repoRoot plus projectRoot to audit that detected project. Use audit_repo when the adapter is selected explicitly, and review_repository for a general review.
| Parameter | Type | Description |
|---|---|---|
audit | object | An audit/v1 artifact; or pass repoRoot plus projectRoot instead. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
goTarget | object | |
projectRoot | string | Project root relative to repoRoot as detected, such as . or packages/api. |
repoRoot | string | Repository root to audit instead of passing audit; requires projectRoot. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
generate_test_plan Generate Test Plan
Create a deterministic plan/v1 for one project, optionally selecting one exact plan item; use generate_project_test_plan for multiple audited projects. Pass an existing audit/v1 artifact, or pass repoRoot plus projectRoot to audit that project deterministically. Does not execute tests or generate or write test code.
| Parameter | Type | Description |
|---|---|---|
audit | object | An audit/v1 artifact; or pass repoRoot plus projectRoot instead. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
goTarget | object | |
itemId | string | Optional exact plan item id to return; omit it to return the complete deterministic plan. |
projectRoot | string | Project root relative to repoRoot as detected, such as . or packages/api. |
repoRoot | string | Repository root to audit instead of passing audit; requires projectRoot. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
get_plan_execution_hints Get Plan Execution Hints
Derive provider-neutral execution, context, parallel-safety, and repository-reasoning hints from a plan without invoking models or subagents. Pass an existing plan/v1 or project-test-plan/v1 artifact, or pass repoRoot to derive hints for the project-aware plan of that repository.
| Parameter | Type | Description |
|---|---|---|
changedPaths | array | Optional repository-relative source paths to limit target selection. |
excludeProjectRoots | array | Optional project roots or subtree patterns such as examples/** to exclude before planning. |
goTarget | object | |
itemId | string | Optional stable plan item or project item id to select. |
plan | object | A plan/v1 or project-test-plan/v1 artifact. Omit it and pass repoRoot to plan the repository instead. |
repoRoot | string | Repository root to audit and plan instead of passing plan. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
explain_target Explain Audit Target
Explain the evidence, risk, testability, and recommendation for one audited target, including its complete existing-test evidence. Use this after review_repository when one target needs detail: pass repoRoot plus the projectRoot and targetId from the review, or pass an existing audit/v1 artifact. Returns target-explanation/v1 without executing tests or writing files.
| Parameter | Type | Description |
|---|---|---|
targetId * | string | Exact stable id from an audit target in untestedCandidates, coveredButRisky, recommended, or skipped. |
audit | object | An audit/v1 artifact; or pass repoRoot plus projectRoot instead. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
goTarget | object | |
projectRoot | string | Project root relative to repoRoot as detected, such as . or packages/api. |
repoRoot | string | Repository root to audit instead of passing audit; requires projectRoot. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
rank_test_candidates Rank Test Candidates
Rank testable audit targets of one project by risk reduction and maintenance cost. Pass an existing audit/v1 artifact, or pass repoRoot plus projectRoot to audit that project deterministically.
| Parameter | Type | Description |
|---|---|---|
audit | object | An audit/v1 artifact; or pass repoRoot plus projectRoot instead. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
goTarget | object | |
projectRoot | string | Project root relative to repoRoot as detected, such as . or packages/api. |
repoRoot | string | Repository root to audit instead of passing audit; requires projectRoot. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
analyze_test_placement Analyze Test Placement
Derive advisory test-placement findings for one project; use analyze_project_test_placement for multiple audited projects. Pass an existing audit/v1 artifact, or pass repoRoot plus projectRoot to audit that project deterministically. Does not execute tests or create, move, or modify files.
| Parameter | Type | Description |
|---|---|---|
audit | object | An audit/v1 artifact; or pass repoRoot plus projectRoot instead. |
changedPaths | array | Optional repository-relative source paths to limit target selection. |
goTarget | object | |
owner | string | Optional owner label for the audited project. Defaults to audit.profile.root. |
projectRoot | string | Project root relative to repoRoot as detected, such as . or packages/api. |
repoRoot | string | Repository root to audit instead of passing audit; requires projectRoot. |
swiftSchemes | object | Optional shared Xcode scheme per Swift project root. Keys are detected project roots. |
generate_selected_test Generate Selected Test (Deferred)
Return a structured deferred result. This tool does not generate or write test code while native generation remains disabled.
| Parameter | Type | Description |
|---|---|---|
planItemId * | string | Stable plan item id selected for future generation. |