[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BZ3K7ZX2GE6QQYTHFY10V6":3,"skill-same:01M6BZ3K7ZX2GE6QQYTHFY10V6":82},{"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":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6BZ3K7ZX2GE6QQYTHFY10V6","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\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,40,41,42,43,44,45,46],"MCP","pack","language","tree","tree sitter","language pack","server","mcp server","tree sitter language pack","tree sitter language pack using the mcp server","code","cli","detecting","extracting","launcher","auto","structure","source","Tools","when","2026-11-10 10:12:30",false,"---\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.\nname: tree-sitter-language-pack-using-the-mcp-server\n---\n\n\u003C!--\nAI-RULEZ :: GENERATED FILE — DO NOT EDIT\nContent-Hash: blake3:32a9429c4f5c314cfb1deb3eca4cab52f4c96283e07d68ecf017e925486e72ac\nSource-Hash: blake3:b8687cf31ac8c66a5ecc15c4f11520ff201d8db14467b7528d5120124e9753a4\nSchema-Version: v1\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","\u003C!--\nAI-RULEZ :: GENERATED FILE — DO NOT EDIT\nContent-Hash: blake3:32a9429c4f5c314cfb1deb3eca4cab52f4c96283e07d68ecf017e925486e72ac\nSource-Hash: blake3:b8687cf31ac8c66a5ecc15c4f11520ff201d8db14467b7528d5120124e9753a4\nSchema-Version: v1\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",{"name":5,"description":7},"main","6403d3051157d3808dcdca49aeb0c211742d1d61","plugin\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-07 18:08:38",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-using-the-mcp-server",{"tool":68,"command":69},"bunx","bunx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-using-the-mcp-server",{"tool":71,"command":72},"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\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002FSKILL.md",true,[76],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"index.md","REFERENCE","参考文档",587,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002Findex.md",[83,105,112,129,147,162],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":94,"publishedAt":47},"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",[89],{"categoryNo":90,"categoryName":91,"taxonomyType":92,"taxonomyTypeDesc":93},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[35,32,31,30,29,28,95,96,37,97,38,98,99,100,101,43,102,103,104,46],"rust","writing","llms","node","parser","typescript","io","chunks","imports","parse",{"skillNo":106,"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":107,"categories":108,"keywords":111,"publishedAt":47},"01M6BZ461Q0A0TZJG56G6J5QF0","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002FSKILL.md",[109,110],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[36,27,35,34,33,32,31,30,29,28,37,38,39,40,41,42,43,44,45,46],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":47},"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",[],[119,120,35,32,31,30,44,29,28,121,122,123,124,125,126,42,127,128,104,46],"parsing","tree sitter language pack parsing source","file","json","syntax","for","errors","expression","use","reading",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":47},"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",[],[136,137,35,32,31,30,29,28,138,139,140,141,142,124,143,144,145,127,146,46],"parsers","tree sitter language pack managing parsers","ci","init","prefetch","cache","find","inspect","manage","clean","info",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":154,"publishedAt":47},"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",[153],{"categoryNo":90,"categoryName":91,"taxonomyType":92,"taxonomyTypeDesc":93},[155,35,37,32,31,40,43,30,29,28,156,157,158,123,159,160,44,103,161,46],"tree sitter language pack extracting code structure","extracting code structure","code structure","SET","default","flags","result",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":47},"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",[],[169,35,32,31,30,39,29,28,170,121,171,172,173,124,127,174,175,146,104,46],"tree sitter language pack detecting languages","programming language","programming","support","which","functions","with"]