mcp
Use tree-sitter-language-pack mcp reference documentation.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 485
- Forks
- 71
01 前言 Front Matter
- name
- mcp
- description
- Use tree-sitter-language-pack mcp reference documentation.
02 资源文件 1
- 参考文档agents/openai.yaml135 B
03 SKILL.md 正文
<!-- This file is auto-generated by alef — DO NOT EDIT. --> <!-- alef:hash:0d9d6e5ae7656e342db4c129d1eabd1ecab3e24a92346809cf7c5ddf850c2f85 --> <!-- To regenerate: alef docs --> <!-- To verify freshness: alef verify -->
tree-sitter-language-pack MCP Reference
Use this skill when integrating tree-sitter-language-pack through Model Context Protocol tools, prompts, or resources.
cache_dir: Return the effective parser cache directory path.clean_cache: Delete all cached parser libraries from the cache directory.detect_language: Detect the language for a file path or source content. Returns the detected language name.download: Download parser libraries from the remote registry. Pass languages list, groups, or all=true. Set fresh=true to clean the cache first.info: Show whether a language is known, downloaded, and its cache path.list_languages: List languages. source: 'available' (default), 'downloaded', or 'manifest'. Optional substring filter.parse: Parse source code with a tree-sitter grammar. Returns the syntax tree as sexp or JSON.process: Run the code-intelligence pipeline on source code. Extracts structure, imports, exports, symbols, and more.
04 同仓库更多 Skills
tree-sitter-language-pack
Parse and extract code intelligence from 371 programming languages using tree-sitter grammars. Use when writing code that parses source, extracts structure/imports/exports/symbols/docstrings/comments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python, Node.js/TypeScript, or the ts-pack CLI. Covers installation, the CLI surface, the SDK surface, and parser-cache management.
tree-sitter-language-pack-using-the-mcp-server
Use when parsing source, extracting code structure, or detecting a language through the tree-sitter-language-pack MCP server's tools, rather than shelling out to the ts-pack CLI. Covers the tool surface, the auto-installing launcher, and when MCP beats the CLI or SDK.
tree-sitter-language-pack-parsing-source
Use when the user wants a tree-sitter syntax tree for a source file — an s-expression dump or JSON tree. Covers `ts-pack parse`, language auto-detection vs `--language`, stdin input, and reading `has_errors`.
tree-sitter-language-pack-managing-parsers
Use when the user needs to manage the tree-sitter parser cache — prefetch parsers for offline or CI runs, list what is downloaded, inspect a language, find the cache directory, or clean it. Covers `ts-pack download`, `list`, `info`, `cache-dir`, `clean`, and `init`.
tree-sitter-language-pack-extracting-code-structure
Use when the user wants structured code metadata from a source file — functions, classes, imports, exports, symbols, docstrings, comments, or syntax diagnostics. Covers `ts-pack process` feature flags, the JSON result shape, and the default feature set.
tree-sitter-language-pack-detecting-languages
Use when the user wants to know which programming language a file or snippet is. Covers implicit detection in `ts-pack parse`/`process`, confirming support with `ts-pack list`/`info`, and the SDK detection functions for path, extension, and raw content.