TypeScript Refactoring
Provides TypeScript/JavaScript code analysis and refactoring capabilities using ts-morph, enabling intelligent code transformation
This MCP server provides TypeScript/JavaScript code analysis and refactoring capabilities using ts-morph, enabling AI assistants to perform intelligent code transformations across entire codebases. Built by mizchi using TypeScript with the ts-morph library and neverthrow for error handling, it offers symbol renaming with cross-file reference updates, file moving with automatic import path corrections, symbol deletion with reference cleanup, code navigation including find references and go-to-definition, type signature analysis with detailed parameter and return type information, module dependency analysis, and comprehensive TypeScript diagnostics reporting. The implementation includes project caching for performance, flexible line parameter resolution supporting both line numbers and string matching, and tools for exploring module symbols and relationships, making it valuable for large-scale TypeScript refactoring tasks, code exploration and documentation generation, and automated code quality analysis workflows that require deep understanding of TypeScript project structure and dependencies.
Source
Repository: https://github.com/mizchi/lsmcp
Maintain TypeScript Refactoring?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/mcp/mizchi-lsmcp?ref=badge)