ts-pack-cli-1.10.6 is not a library.
tree-sitter-language-pack — CLI
Command-line tool for managing tree-sitter language parsers with download utilities.
Installation
Or install via Homebrew:
Homebrew 6.0+ requires explicit trust for third-party taps. Trust once, then install:
Quick Start
# Initialize a language-pack.toml config
# List available languages
# Download specific languages for offline use
# Check download status
# Add languages to your config
# Clone parser sources
API Reference
Commands
ts-pack init-- initialize alanguage-pack.tomlconfig in the current directoryts-pack list-- list all available language namests-pack download <lang>...-- download specific parsers for offline usets-pack status-- show download status of all configured languagests-pack add <lang>...-- add languages tolanguage-pack.tomlts-pack clone-- clone parser source repositories (for development)ts-pack parse <file>-- parse a file and print the syntax treets-pack process <file>-- extract code intelligence from a file
Global Flags
--config <path>-- path tolanguage-pack.toml(default: current directory)--verbose/-v-- enable verbose output--help-- show help for any command
MCP Server
The CLI includes an MCP server for integration with AI agents and IDEs. Start it with:
The server runs over stdio by default. For HTTP transport (remote agents or team setups):
Options
--transport <stdio|http>-- transport mode (default:stdio)--host <addr>-- bind address for HTTP transport (default:127.0.0.1)--port <u16>-- port for HTTP transport (default:8011)--config <path>-- optional language-pack.toml config file
Tools
The MCP server exposes 8 tools:
parse— render syntax tree as S-expression or JSONprocess— extract code intelligence (structure, imports, exports, symbols, docstrings, comments, diagnostics, chunking)detect_language— identify language from file path or source codelist_languages— enumerate available, downloaded, or manifest languages with optional filteringinfo— get status of a specific language (available, downloaded, etc.)download— fetch parsers (list, groups, all, or fresh)cache_dir— retrieve the local cache directoryclean_cache— delete cached parsers
Resources
ts-pack://languages— available language catalogts-pack://languages/downloaded— user-downloaded parsersts-pack://language/{name}— per-language status (template resource)
Prompt
analyze-code— analyze source code with language detection and code intelligence extraction
For detailed setup and IDE configuration, see the MCP Server guide.
For full documentation, see kreuzberg.dev.
License
MIT -- see LICENSE for details.
Part of tree-sitter-language-pack -- A comprehensive collection of tree-sitter language parsers with polyglot bindings.
Part of Kreuzberg, Inc
- Kreuzberg — document intelligence: text, tables, metadata from 90+ formats with optional OCR.
- Kreuzberg Cloud — managed extraction API with SDKs, dashboards, and observability.
- kreuzcrawl — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
- html-to-markdown — fast, lossless HTML→Markdown engine.
- liter-llm — universal LLM API client with native bindings for 14 languages and 143 providers.
- Discord — community, roadmap, announcements.