mcp-adr-analysis-server
Version:
MCP server for analyzing Architectural Decision Records and project architecture
69 lines • 2.15 kB
TypeScript
/**
* Smart Git Push MCP Tool - Version 2.0 (Clean)
*
* A focused git push tool that ensures security and tracks deployment readiness
*
* IMPORTANT FOR AI ASSISTANTS: This tool focuses on:
* 1. Security: Preventing credential leaks and sensitive data exposure
* 2. Repository Hygiene: Blocking irrelevant files (temp, build artifacts)
* 3. Deployment Readiness: Tracking real metrics (test failures, deploy success rate)
*
* Cache Dependencies:
* - CREATES/UPDATES: .mcp-adr-cache/deploy-history.json (deployment metrics)
* - USES: Enhanced sensitive detector for security scanning
*
* This tool does NOT:
* - Analyze architectural compliance
* - Update TODO tasks
* - Check knowledge graph intents
* - Make complex AI decisions
*
* Use this tool for safe, metric-driven git pushes.
*/
interface SmartGitPushArgs {
branch?: string;
message?: string;
testResults?: TestResults;
skipSecurity?: boolean;
dryRun?: boolean;
projectPath?: string;
forceUnsafe?: boolean;
humanOverrides?: HumanOverride[];
requestHumanConfirmation?: boolean;
checkDeploymentReadiness?: boolean;
targetEnvironment?: 'staging' | 'production' | 'integration';
enforceDeploymentReadiness?: boolean;
strictDeploymentMode?: boolean;
}
interface TestResults {
success: boolean;
testsRun: number;
testsPassed: number;
testsFailed: number;
duration?: number;
command?: string;
output?: string;
failureDetails?: string[];
testTypes?: Record<string, {
passed: number;
failed: number;
}>;
}
interface HumanOverride {
path: string;
purpose: string;
userConfirmed: boolean;
timestamp: string;
overrideReason: 'security-exception' | 'business-requirement' | 'deployment-necessity' | 'temporary-debug' | 'other';
additionalContext?: string;
}
/**
* Exported smart git push function
*/
export declare function smartGitPush(args: SmartGitPushArgs): Promise<any>;
/**
* MCP-safe wrapper
*/
export declare function smartGitPushMcpSafe(args: SmartGitPushArgs): Promise<any>;
export {};
//# sourceMappingURL=smart-git-push-tool-v2.d.ts.map