C# Support in Maguyva: Safer Refactors for .NET Codebases
A good fit when .NET repos have grown large enough that safe AI assistance depends on real structure.
Extensions
.cs, .csx
Maguyva parses PowerShell with AST, symbol, and graph support, so AI agents can follow functions, classes, and cmdlet calls across scripts and modules.
Your functions and the built-in cmdlets share one naming style. Get-Invoice and Get-ChildItem look the same, so a tool that drops “built-ins” by verb throws away your own functions too. Scripts also mix module-level code, functions, classes, and script blocks in one file, which makes it hard to tell which function a line belongs to.
Maguyva keeps both kinds of call and attributes each one to the function it sits in.
Maguyva covers .ps1, .psm1, and .psd1 files. Functions and class methods are extracted as callables, and classes and enums as types. Script and method parameters are tracked, and reads and writes inside a function are attributed to that function rather than to the module.
Cmdlet calls stay in the graph. PowerShell does not apply the standard-library filter that most languages use, so Write-Host, Get-ChildItem, and Restart-Service appear as call edges next to your own Get-* and Set-* functions. An agent can ask which scripts restart a service, or which functions write to the console, and get a structural answer.
No relationship type is marked not applicable for PowerShell, so the graph also records class inheritance and interface implementation, instantiation, control flow, and reads and writes.
Invoke-Backup, and from which scheduled scripts?” (find_symbol, then dependency_search incoming)Restart-Service?” (dependency_search)Deploy-Site does from start to finish.” (get_task_context)Write-Host and Select-Object have a large number of incoming edges. Start from your own function when you want a focused call graph.Import-Module and dot-sourcing are ordinary commands, so the imports preset in structural_search selects nothing. Use text_pattern_search to list them.Connect a repository with the quickstart, then check the support matrix on the compatibility page. For .NET code that your scripts call, read the C# guide.
Best fit
Agent workflows
Engine details
Useful MCP entry points
Use it for an advanced function or class when you need the definition and callers.
Use incoming traversal on a cmdlet such as `Restart-Service` to see which scripts call it.
Use it for prompts like “trace what `Deploy-Site` does from start to finish.”
Related guides
A good fit when .NET repos have grown large enough that safe AI assistance depends on real structure.
Extensions
.cs, .csx
Useful when Python codebases sprawl across services, scripts, type stubs, and operational glue.
Extensions
.py, .pyi, .pyw