Code Scanner Server is a versatile tool that analyzes source code to extract structural information like classes, functions, and variables across multiple programming languages (JavaScript, TypeScript, C#, PHP, Python, and CSS). It operates both as a CLI tool and an MCP server, respecting .gitignore rules while providing detailed output in XML, Markdown, or JSON formats. The implementation leverages Tree-sitter for robust parsing and offers flexible filtering options by definition type, modifiers, name patterns, and file paths, making it valuable for code exploration, documentation generation, and providing context to AI assistants about codebases.
No reviews yet. Be the first to review!
Sign in to join the conversation
Scans a specified directory for code files and returns a list of definitions according to the provided filters. Required parameter: directory (absolute path to the directory to scan). Additional options include file patterns, output format, detail level, and inclusion/exclusion criteria for types, modifiers, names, and paths.