# Tree Hugger JS

> Use this tool when you need to analyze and transform JavaScript and TypeScript code with intelligent pattern matching and refactoring operations. It solves problems such as code inspection, refactoring, and modernization, taking in code files or strings as input and outputting transformed code with proper formatting. Ideal for code review, legacy code modernization, and automated refactoring tasks, it provides a safe and reversible way to improve code quality.

Canonical page: https://skillsregistry.net/skills/qckfx-tree-hugger-js  
JSON: https://api.skillsregistry.net/v1/skills/qckfx-tree-hugger-js

## Description

This tree-hugger-js MCP server by qckfx provides JavaScript and TypeScript code analysis capabilities through the tree-hugger-js AST parsing library, enabling AI assistants to parse, analyze, and transform code files or strings with intelligent pattern matching and refactoring operations. The implementation offers comprehensive code inspection tools including function/class/import extraction, scope analysis, and position-based node queries, combined with transformation capabilities like identifier renaming, unused import removal, and code insertion with proper formatting. Built for developers who need AI-powered code analysis and refactoring workflows, it supports both preview-only operations for safety and maintains transformation history, making it valuable for code review, legacy code modernization, and automated refactoring tasks across JavaScript/TypeScript codebases.

## Trust

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

## Facts

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

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/qckfx-tree-hugger-js)
- **Repository:** <https://github.com/qckfx/tree-hugger-js-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": "qckfx-tree-hugger-js"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/qckfx-tree-hugger-js` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/qckfx-tree-hugger-js/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
