Skip to main content
Glama

Code Scanner Server

by Ixe1

scan_code

Scan directories for code files (JS, TS, C#, PHP, CSS) to extract and list defined elements (functions, classes) with line numbers. Supports XML, Markdown, and JSON outputs, respecting .gitignore and customizable filters for types, modifiers, and file patterns.

Instructions

Scans a directory for code files (JS, TS, C#, PHP, CSS, respecting .gitignore) and lists definitions (functions, classes, etc.) with line numbers. Supports XML, Markdown, and JSON output.

Input Schema

NameRequiredDescriptionDefault
detailLevelNoLevel of detail to include in the output.standard
directoryYesThe absolute path to the directory to scan. Relative paths are not supported.
excludeModifiersNoModifiers to exclude.
excludeNamePatternNoRegex pattern to exclude element names.
excludePathsNoFile path patterns to exclude.
excludeTypesNoElement types to exclude.
filePatternsNoGlob patterns for file extensions to include.
includeModifiersNoModifiers to include (e.g., public, private).
includePathsNoAdditional file path patterns to include.
includeTypesNoElement types to include (e.g., class, method).
namePatternNoRegex pattern to match element names.
outputFormatNoOutput format for the results.markdown

Input Schema (JSON Schema)

{ "properties": { "detailLevel": { "default": "standard", "description": "Level of detail to include in the output.", "enum": [ "minimal", "standard", "detailed" ], "type": "string" }, "directory": { "description": "The absolute path to the directory to scan. Relative paths are not supported.", "type": "string" }, "excludeModifiers": { "description": "Modifiers to exclude.", "items": { "type": "string" }, "type": "array" }, "excludeNamePattern": { "description": "Regex pattern to exclude element names.", "type": "string" }, "excludePaths": { "description": "File path patterns to exclude.", "items": { "type": "string" }, "type": "array" }, "excludeTypes": { "description": "Element types to exclude.", "items": { "type": "string" }, "type": "array" }, "filePatterns": { "default": [ "**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.cs", "**/*.php", "**/*.css", "**/*.py" ], "description": "Glob patterns for file extensions to include.", "items": { "type": "string" }, "type": "array" }, "includeModifiers": { "description": "Modifiers to include (e.g., public, private).", "items": { "type": "string" }, "type": "array" }, "includePaths": { "description": "Additional file path patterns to include.", "items": { "type": "string" }, "type": "array" }, "includeTypes": { "description": "Element types to include (e.g., class, method).", "items": { "type": "string" }, "type": "array" }, "namePattern": { "description": "Regex pattern to match element names.", "type": "string" }, "outputFormat": { "default": "markdown", "description": "Output format for the results.", "enum": [ "xml", "markdown", "json" ], "type": "string" } }, "required": [ "directory" ], "type": "object" }
Install Server

Other Tools from Code Scanner Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ixe1/code-scanner-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server