api
免费Use tree-sitter-language-pack api reference documentation.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
The tree-sitter-language-pack MCP server exposes ts-pack's parsing and
code-intelligence capabilities as MCP tools, so an MCP-compatible client (Claude
Code, Claude Desktop) can parse source, extract structure, and detect languages
directly, with no CLI invocation or glue code.
Installing this skill alone does not register an MCP server or include the plugin launcher.
Install the CLI (for example, brew install xberg-io/tap/ts-pack), then configure your MCP client with
ts-pack mcp as its stdio command. The full product plugin supplies registration where
the runtime supports MCP.
The plugin auto-registers the server. Its command is the bundled launcher
scripts/mcp-launch.sh, which execs ts-pack mcp. On first run the launcher
resolves a ts-pack binary: it reuses one already on PATH or cached in the
plugin's bin/, then tries npx, then Homebrew, then downloads a prebuilt
from the tool's latest GitHub release. Override the channel with
TS_PACK_LAUNCHER=auto|npx|brew|download.
The mcp subcommand ships in a recent release of the tool. If an older
ts-pack is already on PATH, it may not expose mcp yet — upgrade the binary
(brew upgrade, re-download, or rebuild) to pick it up.
To run it manually:
ts-pack mcp # for Claude Code / Claude Desktop (stdio)
Parsing and code intelligence:
source; requires an explicit language, with
optional format (sexp or json). It does not detect language from a path —
use detect_language first if you only have a path.all flag to enable all features.path or content (those are
the only two parameters; extension detection is implicit in path).Language and cache management:
ts-pack://languages — catalog of all known languages.ts-pack://languages/downloaded — currently cached languages.ts-pack://language/{name} — per-language metadata template.language, optional focus).还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Use tree-sitter-language-pack api reference documentation.
中文简介正在准备中。当前显示原文说明。
Use tree-sitter-language-pack cli reference documentation.
中文简介正在准备中。当前显示原文说明。
Use tree-sitter-language-pack mcp reference documentation.
中文简介正在准备中。当前显示原文说明。
Parse and extract code intelligence from 372 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.
中文简介正在准备中。当前显示原文说明。
Use when the user wants to split source code into chunks for an LLM context window without breaking syntax mid-construct. Covers `ts-pack process --chunk-size`, why syntax-aware splits beat fixed-byte splits, picking a size, and the chunk JSON shape.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。