关于
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.
主要功能
- 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.)
使用案例
- Analyze codebases for structural information
- Integrate with AI assistants to provide code context
- Generate documentation from code definitions