That sounds like a great use case, especially when mapping a large legacy estate.
The current sample focuses on a slightly different stage of the workflow. Instead of analyzing codebases directly, the agent works from architecture descriptions or design documentation and generates diagrams along with an initial architecture review such as dependencies or potential risks.
Your approach of generating architecture views from code and linking them with an enterprise architecture platform like LeanIX is very interesting. Combining automated discovery with architecture reasoning could open up some powerful scenarios.
Since the project is open source, you could also fork the sample and experiment with extending it toward LeanIX MCP or similar integrations on your side. Would be great to see how that evolves.
https://github.com/Azure-Samples/agent-architecture-review-sample