@@ -203,33 +203,23 @@ arguments = [
203203 { name = " framework_mode" , type = " boolean" , required = false , default = false , description = " Enable framework extensibility documentation" }
204204]
205205
206- # MCP servers for comprehensive analysis
206+ # MCP servers for comprehensive analysis (using npx)
207207mcpServers = """
208208{
209- "filesystem": {
210- "command": "uvx",
211- "args": ["mcp-server-filesystem", "."],
212- "env": {}
213- },
214- "git": {
215- "command": "uvx",
216- "args": ["mcp-server-git", "--repository", "."],
217- "env": {}
218- },
219209 "memory": {
220- "command": "uvx ",
221- "args": ["mcp- server-memory"],
210+ "command": "npx ",
211+ "args": ["@modelcontextprotocol/ server-memory"],
222212 "env": {}
223213 },
224214 "sequential-thinking": {
225- "command": "uvx ",
226- "args": ["mcp- server-sequential-thinking"],
215+ "command": "npx ",
216+ "args": ["@modelcontextprotocol/ server-sequential-thinking"],
227217 "env": {}
228218 }
229219}
230220"""
231221
232- # Available tools for the agent
222+ # Available tools for the agent (use built-in filesystem and git)
233223tools = [" filesystem" , " git" , " memory" , " sequential-thinking" ]
234224
235225# Execution strategy for complex analysis
@@ -242,6 +232,7 @@ output_schema = """
242232 "properties": {
243233 "analysis_metadata": {
244234 "type": "object",
235+ "description": "Metadata about the analysis execution including repository info and timing",
245236 "properties": {
246237 "repository_name": {"type": "string"},
247238 "analysis_date": {"type": "string"},
@@ -255,6 +246,7 @@ output_schema = """
255246 },
256247 "executive_summary": {
257248 "type": "object",
249+ "description": "High-level summary of architectural findings and key metrics",
258250 "properties": {
259251 "architecture_type": {"type": "string"},
260252 "complexity_score": {"type": "number", "minimum": 1, "maximum": 10},
@@ -267,6 +259,7 @@ output_schema = """
267259 },
268260 "repository_structure": {
269261 "type": "object",
262+ "description": "Analysis of repository organization and file structure patterns",
270263 "properties": {
271264 "components": {"type": "array", "items": {"type": "object"}},
272265 "directory_patterns": {"type": "array", "items": {"type": "object"}},
@@ -277,6 +270,7 @@ output_schema = """
277270 },
278271 "patterns_detected": {
279272 "type": "object",
273+ "description": "Architectural and design patterns identified in the codebase",
280274 "properties": {
281275 "architectural_patterns": {"type": "array", "items": {"type": "string"}},
282276 "design_patterns_inferred": {"type": "array", "items": {"type": "string"}},
@@ -285,17 +279,9 @@ output_schema = """
285279 "pattern_confidence": {"type": "object"}
286280 }
287281 },
288- "historical_analysis": {
289- "type": "object",
290- "properties": {
291- "evolution_timeline": {"type": "array", "items": {"type": "object"}},
292- "change_hotspots": {"type": "array", "items": {"type": "object"}},
293- "contributor_patterns": {"type": "object"},
294- "architectural_decisions": {"type": "array", "items": {"type": "object"}}
295- }
296- },
297282 "quality_metrics": {
298283 "type": "object",
284+ "description": "Quantitative metrics about code structure and organization quality",
299285 "properties": {
300286 "structure_organization_score": {"type": "number"},
301287 "pattern_consistency_score": {"type": "number"},
@@ -305,6 +291,7 @@ output_schema = """
305291 },
306292 "recommendations": {
307293 "type": "array",
294+ "description": "Prioritized list of actionable improvement suggestions",
308295 "items": {
309296 "type": "object",
310297 "properties": {
@@ -318,31 +305,34 @@ output_schema = """
318305 }
319306 }
320307 },
321- "framework_capabilities": {
322- "type": "object",
323- "properties": {
324- "current_phase": {"type": "string"},
325- "available_integrations": {"type": "array", "items": {"type": "string"}},
326- "extension_opportunities": {"type": "array", "items": {"type": "string"}},
327- "roadmap_items": {"type": "array", "items": {"type": "object"}}
328- }
329- },
330308 "documentation_generated": {
331309 "type": "object",
310+ "description": "Information about documentation files and artifacts created",
332311 "properties": {
333312 "files_created": {"type": "array", "items": {"type": "string"}},
334313 "diagrams_generated": {"type": "array", "items": {"type": "string"}},
335314 "total_documentation_size": {"type": "string"},
336315 "framework_documentation": {"type": "boolean"}
337316 }
338317 },
339- "success": {"type": "boolean"},
340- "errors": {"type": "array", "items": {"type": "string"}},
341- "warnings": {"type": "array", "items": {"type": "string"}}
318+ "success": {
319+ "type": "boolean",
320+ "description": "Whether the analysis completed successfully"
321+ },
322+ "errors": {
323+ "type": "array",
324+ "description": "List of errors encountered during analysis",
325+ "items": {"type": "string"}
326+ },
327+ "warnings": {
328+ "type": "array",
329+ "description": "List of warnings or non-critical issues found",
330+ "items": {"type": "string"}
331+ }
342332 },
343333 "required": ["analysis_metadata", "executive_summary", "success"]
344334}
345335"""
346336
347- # Success condition for CI/CD integration
348- exit_expression = " success && executive_summary.health_score >= 6 "
337+ # Success condition for CI/CD integration (fixed JMESPath)
338+ exit_expression = " success == `true` && executive_summary.health_score >= `6` "
0 commit comments