Skip to main content
Glama

mcp-server-tree-sitter

by wrale
MIT License
175
  • Apple
  • Linux
python.py1.23 kB
"""Query templates for Python.""" TEMPLATES = { "functions": """ (function_definition name: (identifier) @function.name parameters: (parameters) @function.params body: (block) @function.body) @function.def """, "classes": """ (class_definition name: (identifier) @class.name body: (block) @class.body) @class.def """, "imports": """ (import_statement name: (dotted_name) @import.module) @import (import_from_statement module_name: (dotted_name) @import.from name: (dotted_name) @import.item) @import ;; Handle aliased imports with 'as' keyword (import_from_statement module_name: (dotted_name) @import.from name: (aliased_import name: (dotted_name) @import.item alias: (identifier) @import.alias)) @import """, "function_calls": """ (call function: (identifier) @call.function arguments: (argument_list) @call.args) @call """, "assignments": """ (assignment left: (_) @assign.target right: (_) @assign.value) @assign """, }

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/wrale/mcp-server-tree-sitter'

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