/tree-sitter-language-pack:tree-sitter-language-pack-using-the-mcp-serverfrom tree-sitter-language-pack
Parses source code, extracts structure, and detects languages via the tree-sitter-language-pack MCP server tools instead of the CLI. Covers tool surface, auto-installing launcher, and when MCP beats CLI/SDK.
Ships in tree-sitter-language-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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/, provided it is at least the release this plugin ships with,
then runs the exact pinned @xberg-io/ts-pack-cli release through npx when Node is
available, then downloads that release from GitHub. Homebrew is used only when you
select it. 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).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tree-sitter, mcp-server, code-parsing, ast, language-detection
7 skills in this plugin
/tree-sitter-language-packParse 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-chunking-for-llmsUse 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./tree-sitter-language-pack-detecting-languagesnpx claudepluginhub xberg-io/tree-sitter-language-pack --plugin tree-sitter-language-packOther plugins' skills for the same job