Code Scanner
CreatedIxe1
Scans codebases for definitions, respecting .gitignore and outputting LLM-friendly formats.
About
Code Scanner is a versatile tool designed for extracting code definitions such as functions, classes, and variables from a codebase. It supports multiple languages, respects .gitignore rules, and offers flexible filtering options based on definition type, modifiers, and name patterns. The tool can operate as a command-line interface (CLI) or as an MCP server, providing results in Markdown, XML, or JSON formats at varying levels of detail, making it suitable for integration with AI assistants and other tools that require structured code information.
Key Features
- Respects .gitignore files
- Offers flexible filtering by definition type, modifiers, name patterns, and file paths
- 1 GitHub stars
- Supports multiple languages via Tree-sitter (JavaScript, TypeScript, C#, PHP, CSS, Python)
- Provides output in Markdown, XML, or JSON formats
- Extracts code definitions (functions, classes, etc.)
Use Cases
- Analyze codebases for structural information
- Integrate with AI assistants to provide code context
- Generate documentation from code definitions