Skip to main content
Glama
DarkEden-coding

TreeSitter Code Structure MCP Server

analyze_code_structure

Extract structural elements like classes, functions, parameters, and return types from source code files to facilitate codebase navigation and analysis across multiple programming languages.

Instructions

Analyze the structure of one or more source code files and return classes, functions, their line numbers, nesting levels, parameters, and return types. Supports Python, JavaScript, TypeScript, Java, C#, and Go. Accepts either a single file path (string) or an array of file paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath(s) to the source code file(s) to analyze
include_docstringsNoWhether to include docstrings in the output (default: false)

Other Tools

Latest Blog Posts

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/DarkEden-coding/CodeStructureMCP'

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