Scans your project root and returns a structured fingerprint of every installed package and its exact version
validate_suggestion
Takes AI-generated code and the fingerprint from get_project_context, then runs three validation layers to check for missing packages, hallucinated methods, and suggests closest real alternatives
check_package_safety
Checks every new package the AI suggests installing against three safety layers: existence on npm/PyPI, typosquat detection, and trust level
get_package_docs
Fetches live metadata from npm or PyPI for a specific package version, used by the LLM to self-correct after a hallucination is detected