Browse/File Systems/TypeScript Refactoring

TypeScript Refactoring

by mizchi · Added 26d ago

442

Install

npx -y typescript-mcp

About

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.

Tags

File Systemsmcp-servertypescriptnpm