For @alex__bit and ast-grep developpers.
I am aware that I have not yet done enough research and learning about ast-grep. But I will summarize what I have been thinking.
I am prototyping a tool called typescript-mcp that provides IDE refactoring functions using MCP. I am also developing an LSP version that is TypeScript-independent.