Repo Test Architect

v1.5.0
io.github.RepoAssay/repo-test-architect Checked 1 hour ago Published 12 days ago

Audit-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.

ParameterTypeDescription
repoRoot *stringRepository root path.
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before the review.
goTargetobject
limitintegerMaximum ranked candidates and plan items to return. Defaults to 25.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
repoRoot *stringRepository root path.
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before analysis.
goTargetobject
swiftSchemesobjectOptional 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.

ParameterTypeDescription
repoRoot *stringReadable repository directory whose project markers should be inspected.
excludeProjectRootsarrayOptional 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.

ParameterTypeDescription
repoRoot *stringRepository root path.
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing detected projects.
goTargetobject
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing.
goTargetobject
projectAuditsobjectA project-audits/v1 artifact; or pass repoRoot instead.
repoRootstringRepository root to audit instead of passing projectAudits.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing.
goTargetobject
projectAuditsobjectA project-audits/v1 artifact; or pass repoRoot instead.
repoRootstringRepository root to audit instead of passing projectAudits.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing.
goTargetobject
projectAuditsobjectA project-audits/v1 artifact; or pass repoRoot instead.
repoRootstringRepository root to audit instead of passing projectAudits.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing.
goTargetobject
projectAuditsobjectA project-audits/v1 artifact; or pass repoRoot instead.
repoRootstringRepository root to audit instead of passing projectAudits.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing.
goTargetobject
projectAuditsobjectA project-audits/v1 artifact; or pass repoRoot instead.
repoRootstringRepository root to audit instead of passing projectAudits.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before auditing.
goTargetobject
projectAuditsobjectA project-audits/v1 artifact; or pass repoRoot instead.
repoRootstringRepository root to audit instead of passing projectAudits.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
repoRoot *stringRepository root path.
adapterIdstringOptional adapter id. Defaults to javascript.
changedPathsarrayOptional repository-relative source paths to limit target selection.
goTargetobject
swiftSchemesobjectOptional 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.

ParameterTypeDescription
auditobjectAn audit/v1 artifact; or pass repoRoot plus projectRoot instead.
changedPathsarrayOptional repository-relative source paths to limit target selection.
goTargetobject
projectRootstringProject root relative to repoRoot as detected, such as . or packages/api.
repoRootstringRepository root to audit instead of passing audit; requires projectRoot.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
auditobjectAn audit/v1 artifact; or pass repoRoot plus projectRoot instead.
changedPathsarrayOptional repository-relative source paths to limit target selection.
goTargetobject
itemIdstringOptional exact plan item id to return; omit it to return the complete deterministic plan.
projectRootstringProject root relative to repoRoot as detected, such as . or packages/api.
repoRootstringRepository root to audit instead of passing audit; requires projectRoot.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
changedPathsarrayOptional repository-relative source paths to limit target selection.
excludeProjectRootsarrayOptional project roots or subtree patterns such as examples/** to exclude before planning.
goTargetobject
itemIdstringOptional stable plan item or project item id to select.
planobjectA plan/v1 or project-test-plan/v1 artifact. Omit it and pass repoRoot to plan the repository instead.
repoRootstringRepository root to audit and plan instead of passing plan.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
targetId *stringExact stable id from an audit target in untestedCandidates, coveredButRisky, recommended, or skipped.
auditobjectAn audit/v1 artifact; or pass repoRoot plus projectRoot instead.
changedPathsarrayOptional repository-relative source paths to limit target selection.
goTargetobject
projectRootstringProject root relative to repoRoot as detected, such as . or packages/api.
repoRootstringRepository root to audit instead of passing audit; requires projectRoot.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
auditobjectAn audit/v1 artifact; or pass repoRoot plus projectRoot instead.
changedPathsarrayOptional repository-relative source paths to limit target selection.
goTargetobject
projectRootstringProject root relative to repoRoot as detected, such as . or packages/api.
repoRootstringRepository root to audit instead of passing audit; requires projectRoot.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
auditobjectAn audit/v1 artifact; or pass repoRoot plus projectRoot instead.
changedPathsarrayOptional repository-relative source paths to limit target selection.
goTargetobject
ownerstringOptional owner label for the audited project. Defaults to audit.profile.root.
projectRootstringProject root relative to repoRoot as detected, such as . or packages/api.
repoRootstringRepository root to audit instead of passing audit; requires projectRoot.
swiftSchemesobjectOptional 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.

ParameterTypeDescription
planItemId *stringStable plan item id selected for future generation.