본문으로 건너뛰기
cccskills
무료GitHub에 공개

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack스타 478(GitHub 478 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.6 KB
  • index.md587 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

<!-- AI-RULEZ :: GENERATED FILE — DO NOT EDIT Content-Hash: blake3:32a9429c4f5c314cfb1deb3eca4cab52f4c96283e07d68ecf017e925486e72ac Source-Hash: blake3:f6af1693d7e3d301871730c180582f140a9c6aeee0d040ba3edbfb33b5d38409 Schema-Version: v1 -->

Using the MCP Server

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.

Standalone skill installation

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.

How it runs in this plugin

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)

The tools

Parsing and code intelligence:

  • parse — syntax tree from 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.
  • process — code intelligence: structure, imports, exports, symbols, docstrings, comments, diagnostics, chunks. Use all flag to enable all features.
  • detect_language — identify language by path or content (those are the only two parameters; extension detection is implicit in path).

Language and cache management:

  • list_languages — available, downloaded, or manifest languages; optional filter by name.
  • info — show language availability and cache status.
  • download — prefetch parsers: specific languages, language groups, all, or fresh updates.
  • cache_dir — return the cache directory path.
  • clean_cache — remove all cached parsers.

Resources

  • ts-pack://languages — catalog of all known languages.
  • ts-pack://languages/downloaded — currently cached languages.
  • ts-pack://language/{name} — per-language metadata template.

Prompt and completions

  • analyze-code — code-analysis prompt (args: language, optional focus).
  • Language-name autocomplete — available language names in completions.

When to prefer MCP over the CLI or SDK

  • Prefer MCP inside an agent session: the agent calls parsing directly as a tool, with no shell-out and no process management.
  • Prefer the CLI for one-shot parsing/extraction and shell/CI pipelines.
  • Prefer the SDK when embedding parsing in application code or running custom tree-sitter queries.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

api

무료

Use tree-sitter-language-pack api reference documentation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack4782026년 10월 26일 업데이트

cli

무료

Use tree-sitter-language-pack cli reference documentation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack4782026년 10월 26일 업데이트

mcp

무료

Use tree-sitter-language-pack mcp reference documentation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack4782026년 10월 26일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack4782026년 10월 26일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack4782026년 10월 26일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

xberg-io/tree-sitter-language-pack4782026년 10월 26일 업데이트

xberg-io의 스킬 모두 보기

이 스킬의 문제 신고