Skip to main content
Glama

Tree-Hugger-JS MCP Server

by qckfx
MIT License
165
1

analyze_scopes

Identify variable scopes, detect naming conflicts, and analyze bindings to improve code quality. Use this tool for refactoring safety, dead code detection, and understanding closures in JavaScript/TypeScript.

Instructions

Analyze variable scopes, bindings, and potential naming conflicts. Advanced tool for code quality analysis.

Examples: • Variable shadowing detection: analyze_scopes() to find naming conflicts • Closure analysis: analyze_scopes() to understand variable capture • Refactoring safety: analyze_scopes() before variable renames • Code review: analyze_scopes() to identify scope-related issues • Learning aid: analyze_scopes({includeBuiltins: true}) to see all identifiers • Dead code detection: analyze_scopes() to find unused variables

Input Schema

NameRequiredDescriptionDefault
includeBuiltinsNoInclude built-in identifiers (default: false). Set true for comprehensive analysis including globals.

Input Schema (JSON Schema)

{ "properties": { "includeBuiltins": { "description": "Include built-in identifiers (default: false). Set true for comprehensive analysis including globals.", "type": "boolean" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qckfx/tree-hugger-js-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server