[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BZ06VHS1DSX0VSN1X16PD7":3,"skill-same:01M6BZ06VHS1DSX0VSN1X16PD7":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6BZ06VHS1DSX0VSN1X16PD7","tree-sitter-language-pack-using-the-mcp-server",null,"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.","xberg-io\u002Ftree-sitter-language-pack","xberg-io","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F241328462?v=4","01M6BYYMACFMK5WNT338Y71K58","Xberg.io","01M6BYYMEGM63ZCEYZJRTVS9JT",485,"MIT","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39],"MCP","mcp server","server","language pack","tree sitter","tree sitter language pack using the mcp server","cli","sdk","code","playbook","Tools","parsing","tool","2026-11-10 10:12:30",false,"---\ntype: Playbook\ntitle: Tree Sitter Language Pack Using The Mcp Server\ndescription: 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.\nx-ai-rulez:\n  kind: skill\n  id: tree-sitter-language-pack-using-the-mcp-server\n  metadata:\n    name: tree-sitter-language-pack-using-the-mcp-server\n---\n\n# Using the MCP Server\n\nThe `tree-sitter-language-pack` MCP server exposes `ts-pack`'s parsing and\ncode-intelligence capabilities as MCP tools, so an MCP-compatible client (Claude\nCode, Claude Desktop) can parse source, extract structure, and detect languages\ndirectly, with no CLI invocation or glue code.\n\n## Standalone skill installation\n\nInstalling this skill alone does not register an MCP server or include the plugin launcher.\nInstall the CLI (for example, `brew install xberg-io\u002Ftap\u002Fts-pack`), then configure your MCP client with\n`ts-pack mcp` as its stdio command. The full product plugin supplies registration where\nthe runtime supports MCP.\n\n## How it runs in this plugin\n\nThe plugin auto-registers the server. Its command is the bundled launcher\n`scripts\u002Fmcp-launch.sh`, which execs `ts-pack mcp`. On first run the launcher\nresolves a `ts-pack` binary: it reuses one already on `PATH` or cached in the\nplugin's `bin\u002F`, then tries `npx`, then Homebrew, then downloads a prebuilt\nfrom the tool's latest GitHub release. Override the channel with\n`TS_PACK_LAUNCHER=auto|npx|brew|download`.\n\nThe `mcp` subcommand ships in a recent release of the tool. If an older\n`ts-pack` is already on `PATH`, it may not expose `mcp` yet — upgrade the binary\n(`brew upgrade`, re-download, or rebuild) to pick it up.\n\nTo run it manually:\n\n```bash\nts-pack mcp        # for Claude Code \u002F Claude Desktop (stdio)\n```\n\n## The tools\n\n**Parsing and code intelligence:**\n\n- **parse** — syntax tree from `source`; requires an explicit `language`, with\n  optional `format` (`sexp` or `json`). It does not detect language from a path —\n  use `detect_language` first if you only have a path.\n- **process** — code intelligence: structure, imports, exports, symbols, docstrings, comments, diagnostics, chunks. Use `all` flag to enable all features.\n- **detect_language** — identify language by `path` or `content` (those are\n  the only two parameters; extension detection is implicit in `path`).\n\n**Language and cache management:**\n\n- **list_languages** — available, downloaded, or manifest languages; optional filter by name.\n- **info** — show language availability and cache status.\n- **download** — prefetch parsers: specific languages, language groups, all, or fresh updates.\n- **cache_dir** — return the cache directory path.\n- **clean_cache** — remove all cached parsers.\n\n## Resources\n\n- `ts-pack:\u002F\u002Flanguages` — catalog of all known languages.\n- `ts-pack:\u002F\u002Flanguages\u002Fdownloaded` — currently cached languages.\n- `ts-pack:\u002F\u002Flanguage\u002F{name}` — per-language metadata template.\n\n## Prompt and completions\n\n- **analyze-code** — code-analysis prompt (args: `language`, optional `focus`).\n- **Language-name autocomplete** — available language names in completions.\n\n## When to prefer MCP over the CLI or SDK\n\n- **Prefer MCP** inside an agent session: the agent calls parsing directly as a\n  tool, with no shell-out and no process management.\n- **Prefer the CLI** for one-shot parsing\u002Fextraction and shell\u002FCI pipelines.\n- **Prefer the SDK** when embedding parsing in application code or running custom\n  tree-sitter queries.\n","# Using the MCP Server\n\nThe `tree-sitter-language-pack` MCP server exposes `ts-pack`'s parsing and\ncode-intelligence capabilities as MCP tools, so an MCP-compatible client (Claude\nCode, Claude Desktop) can parse source, extract structure, and detect languages\ndirectly, with no CLI invocation or glue code.\n\n## Standalone skill installation\n\nInstalling this skill alone does not register an MCP server or include the plugin launcher.\nInstall the CLI (for example, `brew install xberg-io\u002Ftap\u002Fts-pack`), then configure your MCP client with\n`ts-pack mcp` as its stdio command. The full product plugin supplies registration where\nthe runtime supports MCP.\n\n## How it runs in this plugin\n\nThe plugin auto-registers the server. Its command is the bundled launcher\n`scripts\u002Fmcp-launch.sh`, which execs `ts-pack mcp`. On first run the launcher\nresolves a `ts-pack` binary: it reuses one already on `PATH` or cached in the\nplugin's `bin\u002F`, then tries `npx`, then Homebrew, then downloads a prebuilt\nfrom the tool's latest GitHub release. Override the channel with\n`TS_PACK_LAUNCHER=auto|npx|brew|download`.\n\nThe `mcp` subcommand ships in a recent release of the tool. If an older\n`ts-pack` is already on `PATH`, it may not expose `mcp` yet — upgrade the binary\n(`brew upgrade`, re-download, or rebuild) to pick it up.\n\nTo run it manually:\n\n```bash\nts-pack mcp        # for Claude Code \u002F Claude Desktop (stdio)\n```\n\n## The tools\n\n**Parsing and code intelligence:**\n\n- **parse** — syntax tree from `source`; requires an explicit `language`, with\n  optional `format` (`sexp` or `json`). It does not detect language from a path —\n  use `detect_language` first if you only have a path.\n- **process** — code intelligence: structure, imports, exports, symbols, docstrings, comments, diagnostics, chunks. Use `all` flag to enable all features.\n- **detect_language** — identify language by `path` or `content` (those are\n  the only two parameters; extension detection is implicit in `path`).\n\n**Language and cache management:**\n\n- **list_languages** — available, downloaded, or manifest languages; optional filter by name.\n- **info** — show language availability and cache status.\n- **download** — prefetch parsers: specific languages, language groups, all, or fresh updates.\n- **cache_dir** — return the cache directory path.\n- **clean_cache** — remove all cached parsers.\n\n## Resources\n\n- `ts-pack:\u002F\u002Flanguages` — catalog of all known languages.\n- `ts-pack:\u002F\u002Flanguages\u002Fdownloaded` — currently cached languages.\n- `ts-pack:\u002F\u002Flanguage\u002F{name}` — per-language metadata template.\n\n## Prompt and completions\n\n- **analyze-code** — code-analysis prompt (args: `language`, optional `focus`).\n- **Language-name autocomplete** — available language names in completions.\n\n## When to prefer MCP over the CLI or SDK\n\n- **Prefer MCP** inside an agent session: the agent calls parsing directly as a\n  tool, with no shell-out and no process management.\n- **Prefer the CLI** for one-shot parsing\u002Fextraction and shell\u002FCI pipelines.\n- **Prefer the SDK** when embedding parsing in application code or running custom\n  tree-sitter queries.\n",{"type":45,"title":46,"x-ai-rulez":47,"description":7},"Playbook","Tree Sitter Language Pack Using The Mcp Server",{"id":5,"kind":48,"metadata":49},"skill",{"name":5},"main","c14405493731b34089b4aae085abe5527b5000c7","plugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server",71,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack","https:\u002F\u002Fdocs.tree-sitter-language-pack.xberg.io","https:\u002F\u002Fgithub.com\u002Fxberg-io","https:\u002F\u002Fxberg.io","Open-source content intelligence with a Rust core: documents, web, LLMs and code, with native bindings for every major language.","2026-11-15 00:20:30",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-using-the-mcp-server",{"tool":66,"command":67},"bunx","bunx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-using-the-mcp-server",{"tool":69,"command":70},"pnpm","pnpm dlx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-using-the-mcp-server","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002FSKILL.md",true,[74],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"index.md","REFERENCE","参考文档",344,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002Findex.md",[81,109,121,137,155,170],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":92,"publishedAt":40},"01M6BZ48YBWAZH9X1XZ6QVA5TD","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\u002Fimports\u002Fexports\u002Fsymbols\u002Fdocstrings\u002Fcomments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python, Node.js\u002FTypeScript, or the ts-pack CLI. Covers installation, the CLI surface, the SDK surface, and parser-cache management.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack\u002FSKILL.md",[87],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[93,30,31,94,95,96,97,98,35,99,33,100,101,102,103,104,105,106,107,108],"tree sitter language pack","tree","language","pack","rust","writing","llms","node","parser","typescript","io","structure","chunks","imports","parse","when",{"skillNo":110,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":115,"publishedAt":40},"01M6BZ461Q0A0TZJG56G6J5QF0","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002FSKILL.md",[113,114],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[32,27,93,28,29,30,31,94,95,96,35,33,116,117,118,119,104,120,37,108],"detecting","extracting","launcher","auto","source",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":40},"01M6BZ437CE3DZQ22GYHMNMMVK","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`.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-parsing-source\u002FSKILL.md",[],[38,128,93,30,31,94,120,95,96,129,130,131,132,133,134,119,135,136,107,108],"tree sitter language pack parsing source","file","json","syntax","for","errors","expression","use","reading",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":40},"01M6BZ40QMB2C6QF2N09MM15GF","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`.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-managing-parsers\u002FSKILL.md",[],[144,145,93,30,31,94,95,96,146,147,148,149,150,132,151,152,153,135,154,108],"parsers","tree sitter language pack managing parsers","ci","init","prefetch","cache","find","inspect","manage","clean","info",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":162,"publishedAt":40},"01M6BZ3Y1E46H4CPXVJD6SB03D","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.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-extracting-code-structure\u002FSKILL.md",[161],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},[163,93,35,30,31,117,104,94,95,96,164,165,166,131,167,168,120,106,169,108],"tree sitter language pack extracting code structure","extracting code structure","code structure","SET","default","flags","result",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":40},"01M6BZ3VAJEY26GESPCWQ2JSXA","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`\u002F`process`, confirming support with `ts-pack list`\u002F`info`, and the SDK detection functions for path, extension, and raw content.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-detecting-languages\u002FSKILL.md",[],[177,93,30,31,94,116,95,96,178,129,179,180,181,132,135,182,183,154,107,108],"tree sitter language pack detecting languages","programming language","programming","support","which","functions","with"]