# mcp-refactor-typescript

> Use this tool when you need to safely refactor your TypeScript or JavaScript codebase, performing transformations like renaming, function extraction, and import organization. It solves problems such as maintaining code readability, reducing technical debt, and improving code structure. The tool takes in TypeScript code as input and outputs refactored code, utilizing the TypeScript compiler for type-aware transformations.

Canonical page: https://skillsregistry.net/skills/stefan-nitu-mcp-refactor-typescript  
JSON: https://api.skillsregistry.net/v1/skills/stefan-nitu-mcp-refactor-typescript

## Description

A TypeScript/JavaScript refactoring MCP server that uses the TypeScript compiler to perform safe, type-aware code transformations such as renaming, extracting functions, and organizing imports across your codebase.

## Trust

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

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/qz8gcy3e8b)
- **Repository:** <https://github.com/Stefan-Nitu/mcp-refactor-typescript>

## 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": "stefan-nitu-mcp-refactor-typescript"
    }
  }
}
```

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