UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

52 lines 2.15 kB
/** * Smart Git Push MCP Tool - Knowledge Graph Enhanced * * AI-powered git push with full knowledge graph integration and architectural awareness * Leverages the complete .mcp-adr-cache system for intelligent decision making * * IMPORTANT FOR AI ASSISTANTS: This tool is deeply integrated with the knowledge graph * and cache system. It performs comprehensive analysis before allowing pushes: * * Knowledge Graph Integration: * - Analyzes active intents and their progress toward goals * - Checks ADR compliance of changes being pushed * - Verifies architectural alignment with project decisions * - Tracks tool execution chains and their impacts * * Cache System Dependencies: * - REQUIRES: .mcp-adr-cache/knowledge-graph-snapshots.json (for context analysis) * - REQUIRES: .mcp-adr-cache/todo-data.json (for task dependency checking) * - UPDATES: .mcp-adr-cache/todo-sync-state.json (after successful pushes) * - UPDATES: .mcp-adr-cache/project-health-scores.json (continuous scoring) * * Architectural Intelligence: * - Blocks pushes that violate architectural decisions * - Ensures critical tasks are completed before deployment-related pushes * - Validates that changes advance stated project goals * - Provides context-aware recommendations based on project state * * Use this tool when you want AI-powered git push decisions based on project context. */ interface SmartGitPushArgs { branch?: string; message?: string; skipValidation?: boolean; allowedArtifacts?: string[]; sensitivityLevel?: 'strict' | 'moderate' | 'permissive'; interactiveMode?: boolean; dryRun?: boolean; projectPath?: string; checkReleaseReadiness?: boolean; releaseType?: 'major' | 'minor' | 'patch'; skipKnowledgeGraphAnalysis?: boolean; } /** * Exported smart git push function with JSON-safe content escaping */ export declare function smartGitPush(args: SmartGitPushArgs): Promise<any>; /** * MCP-safe wrapper for smart git push that never throws */ export declare function smartGitPushMcpSafe(args: SmartGitPushArgs): Promise<any>; export {}; //# sourceMappingURL=smart-git-push-tool.d.ts.map