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.
Scans a specified directory for code files and returns a list of definitions according to the provided filters. Accepts parameters such as directory (required), filePatterns, outputFormat, detailLevel, includeTypes, excludeTypes, includeModifiers, excludeModifiers, namePattern, excludeNamePattern, includePaths, and excludePaths.
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!