Tree Sitter MCP Server

Provides code analysis capabilities through tree-sitter parsing, enabling structured understanding and manipulation of source code across multiple programming languages for tasks like code review, refactoring, and documentation generation.

Skills

Explore the skills and capabilities of this skillset.

get_ast

Get abstract syntax tree for a file. Args: project: Project name path: File path relative to project root max_depth: Maximum depth of the tree (default: 5) include_text: Whether to include node text Returns: AST as a nested dictionary

get_file

Get content of a file. Args: project: Project name path: File path relative to project root max_lines: Maximum number of lines to return start_line: First line to include (0-based) Returns: File content

configure

Configure the server. Args: config_path: Path to YAML config file cache_enabled: Whether to enable parse tree caching max_file_size_mb: Maximum file size in MB log_level: Logging level (DEBUG, INFO, WARNING, ERROR) Returns: Current configuration

find_text

Search for text pattern in project files. Args: project: Project name pattern: Text pattern to search for file_pattern: Optional glob pattern (e.g., "**/*.py") max_results: Maximum number of results case_sensitive: Whether to do case-sensitive matching whole_word: Whether to match whole words only use_regex: Whether to treat pattern as a regular expression context_lines: Number of context lines to include Returns: List of matches with file, line number, and text

run_query

Run a tree-sitter query on project files. Args: project: Project name query: Tree-sitter query string file_path: Optional specific file to query language: Language to use (required if file_path not provided) max_results: Maximum number of results Returns: List of query matches

find_usage

Find usage of a symbol. Args: project: Project name symbol: Symbol name to find file_path: Optional file to look in (for local symbols) language: Language to search in Returns: List of usage locations

list_files

List files in a project. Args: project: Project name pattern: Optional glob pattern (e.g., "**/*.py") max_depth: Maximum directory depth extensions: List of file extensions to include (without dot) Returns: List of file paths

adapt_query

Adapt a query from one language to another. Args: query: Original query string from_language: Source language to_language: Target language Returns: Adapted query

build_query

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

clear_cache

Clear the parse tree cache. Args: project: Optional project to clear cache for file_path: Optional specific file to clear cache for Returns: Status message

get_symbols

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

get_node_types

Get descriptions of common node types for a language. Args: language: Language name Returns: Dictionary of node types and descriptions

list_languages

List available languages. Returns: Information about available languages

analyze_project

Analyze overall project structure. Args: project: Project name scan_depth: Depth of detailed analysis (higher is slower) ctx: Optional MCP context for progress reporting Returns: Project analysis

diagnose_config

Diagnose issues with YAML configuration loading. Args: config_path: Path to YAML config file Returns: Diagnostic information

get_dependencies

Find dependencies of a file. Args: project: Project name file_path: Path to the file Returns: Dictionary of imports/includes

find_similar_code

Find similar code to a snippet. Args: project: Project name snippet: Code snippet to find language: Language of the snippet threshold: Similarity threshold (0.0-1.0) max_results: Maximum number of results Returns: List of similar code locations

get_file_metadata

Get metadata for a file. Args: project: Project name path: File path relative to project root Returns: File metadata

analyze_complexity

Analyze code complexity. Args: project: Project name file_path: Path to the file Returns: Complexity metrics

list_projects_tool

List all registered projects. Returns: List of project information

remove_project_tool

Remove a registered project. Args: name: Project name Returns: Success message

get_node_at_position

Find the AST node at a specific position. Args: project: Project name path: File path relative to project root row: Line number (0-based) column: Column number (0-based) Returns: Node information or None if not found

register_project_tool

Register a project directory for code exploration. Args: path: Path to the project directory name: Optional name for the project (defaults to directory name) description: Optional description of the project Returns: Project information

get_query_template_tool

Get a predefined tree-sitter query template. Args: language: Language name template_name: Template name (e.g., "functions", "classes") Returns: Query template information

check_language_available

Check if a tree-sitter language parser is available. Args: language: Language to check Returns: Success message

list_query_templates_tool

List available query templates. Args: language: Optional language to filter by Returns: Available templates

Configuration

Customize the skillset to fit your needs.
MCP Server

Connect to MCP Server

Tree Sitter MCP Server

Discourse 社區管理員
Discourse 社區管理員助手幫助您快速生成清晰、友好且結構良好的用戶回覆,使社區管理變得更輕鬆和專業。
Email 营销助手
自動尋找潛在客戶並發送為期3天的跟進郵件序列。
辦公文檔助手
一個專為公司內部營運設計的 AI 虛擬行政助理。幫助您快速創建高品質的內部文檔,如公告、會議記錄、摘要、表格、流程和人力資源記錄。
AI 寫作助手
告訴我有關 AI 產品或品牌的信息 - 我將撰寫吸引人的營銷文案、文章和社交媒體帖子,根據您的品牌聲音和產品細節量身定制,並附上相關鏈接和插圖。
品牌设计师
一款專為初創數字產品設計的品牌營銷 AI 助手,幫助您快速生成適合 Product Hunt、AppSumo 等平台的在線推廣材料,涵蓋視覺創意、推廣標語、品牌語調和賣點傳達
社區活動分析員
分析社區活動截圖,報告參與趨勢和討論亮點。上傳社區互動的截圖,該 Agent 會生成一份清晰的markdown報告,總結參與水平、關鍵討論主題和顯著亮點 — 非常適合社區經理、行銷人員和產品團隊。
股票新聞報告員
這個 AI 智能體實時監控和分析美國主要股票新聞,生成結構化的投資報告,提供關鍵見解、市場反應和行業級別的總結。
Google 分析師
逐步指南,教您如何將 Google Analytics 4 (GA4) 屬性連接到 Google 分析師代理。涵蓋創建 Google Cloud 服務帳戶、啟用 Analytics Data API、授予 GA4 查看者訪問權限,以及配置代理以支持會話、用戶、跳出率、轉換等指標。非常適合快速在 Bika.ai 中設置 GA4 數據報告。
需求文檔撰寫助手
告訴我您的產品或功能想法 - 我將幫助您創建全面且詳細的需求文檔,涵蓋用戶故事、驗收標準、技術規範等內容。

Frequently Asked Questions

一句話快速介紹:什麼是Bika.ai?
是什麽让 Bika.ai 如此独特?
"BIKA" 這個縮寫單詞代表什麼意思?
Bika.ai是怎麼做到AI自動化做事的?
Bika.ai是免費使用的嗎?
Bika.ai與ChatGPT、Gemini等AI助手有什麼區別?
Bika.ai與多維表格有什麼區別?
Bika.ai 在單表數據量、關聯引用變多後,如幾萬行、幾十萬行,會卡住嗎?
Bika.ai中的"空間站"是什麼?
付款後我擁有多少個付費空間?
什麼是"資源"?
Bika.ai 的團隊是如何「吃自己的狗糧」的?
Bika.ai如何幫助提高工作效率?
Bika.ai 的AI自動化功能有哪些特點?
Bika.ai 中的自動化模板是什麼?
Bika.ai 是否支持團隊協作及權限功能?

Embark on Your AI Automation

Tree Sitter MCP Server | Bika.ai