Skip to main content
Glama

mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

build_query

Construct tree-sitter queries using predefined templates or custom patterns for code analysis. Specify language, patterns, and combination logic to generate tailored queries.

Instructions

Build a tree-sitter query from templates or patterns.

Args: language: Language name patterns: List of template names or custom patterns combine: How to combine patterns ("or" or "and") Returns: Combined query

Input Schema

NameRequiredDescriptionDefault
combineNoor
languageYes
patternsYes

Input Schema (JSON Schema)

{ "properties": { "combine": { "default": "or", "title": "Combine", "type": "string" }, "language": { "title": "Language", "type": "string" }, "patterns": { "items": { "type": "string" }, "title": "Patterns", "type": "array" } }, "required": [ "language", "patterns" ], "title": "build_queryArguments", "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/wrale/mcp-server-tree-sitter'

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