mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

get_symbols

Extract and categorize symbols (functions, classes, imports, etc.) from a file using project and file path inputs. Simplify code analysis and gain structured insights into codebase components.

Instructions

Extract symbols from a file.

Args: project: Project name file_path: Path to the file symbol_types: Types of symbols to extract (functions, classes, imports, etc.) Returns: Dictionary of symbols by type

Input Schema

NameRequiredDescriptionDefault
file_pathYes
projectYes
symbol_typesNo

Input Schema (JSON Schema)

{ "properties": { "file_path": { "title": "File Path", "type": "string" }, "project": { "title": "Project", "type": "string" }, "symbol_types": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Symbol Types" } }, "required": [ "project", "file_path" ], "title": "get_symbolsArguments", "type": "object" }
ID: k35mqkr8j9