MyBatis Mapper2SQL icon

MyBatis Mapper2SQL

Extracts SQL statements from MyBatis Mapper XML files, generates mock parameters, and executes tests against databases.

소개

This project transforms the original MyBatis Mapper2SQL tool into a Model Context Protocol (MCP) service, enabling it to function as an "expert tool" for AI models. It provides a robust, standardized interface for extracting, mocking, and testing SQL from MyBatis XML files, leveraging Spring AI and standard I/O for inter-process communication. This setup empowers more powerful SQL analysis and facilitates seamless collaboration with AI systems, ensuring deterministic parsing results based on the official MyBatis engine.

주요 기능

  • Deterministic Parsing using MyBatis Official Engine
  • AI Collaboration via Model Context Protocol (MCP)
  • 1 GitHub stars
  • SQL Extraction from MyBatis Mapper XML
  • Automatic SQL Parameter Mocking with type inference
  • SQL Execution and Testing against Databases

사용 사례

  • Rapid SQL structure viewing without parameter mock
  • Generating executable SQL for testing or analysis
  • Verifying SQL execution in real database environments
Advertisement

Advertisement