# ts-refactor-mcp

> Use this tool when you need to refactor TypeScript projects efficiently, as it solves the problem of manually updating imports after moving files or directories. It takes in file and directory move requests and outputs updated project structures with corrected imports, leveraging a persistent tsserver instance for atomic and error-free operations. This tool is ideal for use cases involving large-scale code reorganization or automated project maintenance.

Canonical page: https://skillsregistry.net/skills/schicks-ts-refactor-mcp  
JSON: https://api.skillsregistry.net/v1/skills/schicks-ts-refactor-mcp

## Description

An MCP server that enables AI agents to move TypeScript files and directories while automatically updating all affected imports using a persistent tsserver instance. This ensures atomic, error-free refactoring that maintains project integrity without manual intervention or wasted tokens.

## Trust

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

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/v9le9tqmpz)
- **Repository:** <https://github.com/schicks/ts-refactor-mcp>

## 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": "schicks-ts-refactor-mcp"
    }
  }
}
```

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