mcp-codesentry
Version:
CodeSentry MCP - AI-powered code review assistant with 5 specialized review tools for security, best practices, and comprehensive code analysis
115 lines • 2.77 kB
TypeScript
/**
* TypeScript interfaces and types for the Software Architect MCP Server
*/
export interface ReviewPlanParams {
taskId: string;
taskDescription: string;
implementationPlan: string;
codebasePath: string;
}
export interface ReviewImplementationParams {
taskId: string;
taskDescription: string;
originalPlan: string;
implementationSummary: string;
beforePath: string;
afterPath: string;
}
export interface GeminiReviewPlanParams {
taskId: string;
taskDescription: string;
implementationPlan: string;
codebaseContext: string;
}
export interface GeminiReviewImplementationParams {
taskId: string;
taskDescription: string;
originalPlan: string;
implementationSummary: string;
codebaseSnapshot: string;
}
export interface CodeReviewParams {
codebaseContext: string;
reviewFocus?: string;
}
export interface SecurityReviewParams {
codebaseContext: string;
securityFocus?: string;
}
export interface BestPracticesReviewParams {
codebaseContext: string;
practicesFocus?: string;
language?: string;
}
export interface ReviewFeedback {
summary: string;
strengths: string[];
concerns: string[];
suggestions: string[];
risks?: string[];
}
export interface ReviewMetadata {
codebaseSize: number;
reviewTimestamp: string;
modelUsed: string;
processingTimeMs?: number;
}
export interface ReviewResponse {
approved: boolean;
reviewType: 'plan' | 'implementation';
feedback: {
summary: string;
issues: string[];
suggestions: string[];
strengths: string[];
};
metadata: {
taskId: string;
reviewedAt: string;
modelUsed: string;
confidence: number;
};
}
export interface StoredTask {
taskId: string;
plan?: string;
preSnapshot?: string;
postSnapshot?: string;
createdAt: Date;
updatedAt: Date;
}
export interface GeminiConfig {
apiKey: string;
proModel: string;
flashModel: string;
}
export interface ServerConfig {
name: string;
version: string;
gemini: GeminiConfig;
}
export interface StorageConfig {
basePath: string;
encrypt?: boolean;
maxSizeMB?: number;
}
export interface TaskContext {
taskId: string;
taskDescription: string;
plan?: string;
implementation?: string;
preSnapshot?: string;
postSnapshot?: string;
preReviewSnapshotId?: string;
postReviewSnapshotId?: string;
reviews: ReviewResponse[];
createdAt: string;
updatedAt: string;
}
export interface RepomixConfig {
style?: 'plain' | 'markdown' | 'html';
excludePatterns?: string[];
includePatterns?: string[];
maxFileSize?: number;
}
//# sourceMappingURL=index.d.ts.map