# TypeScript Refactoring

> Use this tool when you need to perform complex code transformations in TypeScript/JavaScript, such as renaming symbols or moving code between files, to simplify and optimize your codebase. It solves problems like manual refactoring errors and saves time on large-scale updates by providing automated tools for finding references, renaming, and updating import paths. Ideal for use cases involving big codebases with intricate dependencies and import structures.

Canonical page: https://skillsregistry.net/skills/sirosuzume-ts-morph  
JSON: https://api.skillsregistry.net/v1/skills/sirosuzume-ts-morph

## Description

MCP-TS-Morph provides TypeScript/JavaScript refactoring capabilities through ts-morph, enabling AI assistants to perform complex code transformations like renaming symbols, moving code between files, and updating import paths. Developed by SiroSuzume under MIT license, it implements tools for finding references, renaming symbols, moving symbols to different files, removing path aliases, and renaming file system entries with automatic import path updates. The server handles complex edge cases like path aliases and index file imports, making it particularly valuable for large-scale refactoring tasks where manual updates would be error-prone and time-consuming.

## Trust

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

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** productivity
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/sirosuzume-ts-morph)
- **Repository:** <https://github.com/sirosuzume/mcp-ts-morph>

## 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": "sirosuzume-ts-morph"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/sirosuzume-ts-morph` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/sirosuzume-ts-morph/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
