get_insights
Analyze code to identify refactoring opportunities, security vulnerabilities, and maintainability improvements using AI-powered insights.
Instructions
Get AI-generated code insights including refactoring suggestions, security issues, and maintainability analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:236-254 (handler)The handler for 'get_insights' tool, which retrieves AI-generated insights from the loaded analysis data.
server.tool( "get_insights", "Get AI-generated code insights including refactoring suggestions, security issues, and maintainability analysis.", {}, async () => { const loaded = loadAnalysis(); if (!loaded) { return { content: [{ type: "text" as const, text: "No analysis data found. Run 'CodeAtlas: Analyze Project' first." }] }; } const result = { project: loaded.projectName, stats: loaded.analysis.stats, insights: loaded.analysis.insights, }; return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] }; } );