CrystalMcp::Tools::Compiler
Compiler related tools for the Crystal MCP server.
Constants
Log = ::Log.for("tools.compiler")
Instance methods
Checks if a Crystal file builds correctly.
Returns a JSON string with the build check result.
Parameters:
file: Path to the Crystal file.
Expands macros for a specific location in a Crystal file.
Returns a JSON string with the expanded macro.
Parameters:
file: Path to the Crystal file.line: Line number (1-based).col: Column number (1-based).
Gets context for a specific location in a Crystal file.
Returns a JSON string with the context information.
Parameters:
file: Path to the Crystal file.line: Line number (1-based).col: Column number (1-based).
Inspects the type hierarchy of a Crystal file.
Returns a JSON string with the hierarchy.
Parameters:
file: Path to the Crystal file.filter: Optional regex/string filter for type names.