A library for indexing code repositories using Tree-sitter Stack Graphs, designed to be used in MCP servers and other tools.
Overview
what is TSG Indexer?
TSG Indexer is a Rust library designed for indexing code repositories using Tree-sitter Stack Graphs, enabling powerful code navigation and analysis capabilities.
how to use TSG Indexer?
To use TSG Indexer, add it as a dependency in your Cargo.toml or clone the repository and build it. You can then use the library's API or the command-line interface (CLI) to index code.
key features of TSG Indexer?
- Supports 20+ programming languages including Rust, Python, JavaScript, and more.
- Recursive directory traversal for comprehensive codebase analysis.
- Multiple output formats (JSON, DOT graph).
- Optional CLI and LSP support via feature flags.
- Ability to generate TSG files for unsupported languages.
use cases of TSG Indexer?
- Analyzing large codebases for better navigation.
- Integrating with Model Control Protocol (MCP) servers for enhanced code indexing.
- Generating visual representations of code structure for documentation.
FAQ from TSG Indexer?
- What programming languages does TSG Indexer support?
TSG Indexer supports over 20 languages including Rust, Python, JavaScript, and more.
- How can I install TSG Indexer?
You can add it to your Cargo.toml or clone the repository and build it using Cargo.
- Can I use TSG Indexer with MCP servers?
Yes, TSG Indexer is designed to be integrated with MCP servers for code indexing and navigation.