function review
review(
options: ReviewOptions,
files: string[]
): Promise<void>

Trigger automated code review using MCP server

Uses the Aichaku MCP (Model Context Protocol) server to perform security and standards reviews on specified files. The MCP server analyzes code for OWASP vulnerabilities, best practices, and project-specific standards.

Examples

Example 1

// Review a single file
await review({ file: "src/main.ts" }, []);

// Review multiple files
await review({}, ["src/main.ts", "src/utils.ts"]);

// Show review statistics
await review({ stats: true }, []);

Parameters

options: ReviewOptions

Review command options

files: string[]

List of files to review

Return Type

Promise<void>

Usage

import { review } from ".";