Skip to main content
Glama

Tree-Hugger-JS MCP Server

by qckfx
MIT License
165
1

get_node_at_position

Retrieve AST node details at a specific cursor position to debug syntax errors, analyze code structure, assist refactoring, and support IDE integration. Input line and column to locate nodes precisely.

Instructions

Get detailed AST node information at a specific cursor position. Perfect for debugging and precise analysis.

Examples: • Debug syntax errors: get_node_at_position(15, 23) to understand what's at error location • Understand code structure: get_node_at_position(line, col) to see AST node type at cursor • Refactoring assistance: get_node_at_position(line, col) to identify exact node before transformation • IDE integration: get_node_at_position(line, col) for hover information • Pattern development: get_node_at_position(line, col) to understand node structure for pattern writing

Input Schema

NameRequiredDescriptionDefault
columnYesColumn number (0-based) - the character position within the line
lineYesLine number (1-based) - the line where cursor is positioned

Input Schema (JSON Schema)

{ "properties": { "column": { "description": "Column number (0-based) - the character position within the line", "type": "number" }, "line": { "description": "Line number (1-based) - the line where cursor is positioned", "type": "number" } }, "required": [ "line", "column" ], "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