# TypeScript Refactoring

> Use this tool when you need to analyze and transform TypeScript/JavaScript codebases, solving problems such as renaming symbols, moving files, and deleting code while updating references. It takes in TypeScript code as input and outputs refactored code with updated references, diagnostics reports, and detailed type information. Ideal for large-scale refactoring tasks, code exploration, and automated code quality analysis workflows that require deep understanding of TypeScript project structure and dependencies.

Canonical page: https://skillsregistry.net/skills/typescript-refactoring  
JSON: https://api.skillsregistry.net/v1/skills/typescript-refactoring

## Description

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.

## Trust

- **Trust score (0–1):** 0.95
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** data-analytics
- **Updated:** 2026-09-19

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/typescript-refactoring)
- **Repository:** <https://github.com/mizchi/lsmcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "typescript-refactoring"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/typescript-refactoring` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/typescript-refactoring/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
