
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Spring Boot service using Spring AI MCP Server that exposes a SQL-to-Java code conversion tool callable by MCP-compatible clients over SSE or stdio.
MCP server that converts SQL field definitions into Java entity code is cataloged as an MCP server attributed to mays-jl. A Spring Boot service using Spring AI MCP Server that exposes a SQL-to-Java code conversion tool callable by MCP-compatible clients over SSE or stdio. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server that converts SQL field definitions into Java entity code are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Clients can connect over SSE at the /mcp/messages endpoint, or via stdio by disabling the web application type in application.yml.
README.md · 0756638dee95 · Fetched 2026-11-13 12:44:24 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
SqlToCode 是一个基于 Spring Boot 3.4 与 Spring AI MCP Server Starter 构建的示例服务,提供 SQL 字段定义 → Java 实体代码 的自动化转换能力。项目通过 @Tool 注解将 SqlToCodeService 暴露为 MCP 工具,可以被兼容 MCP 协议的客户端(如 Claude、Cursor、vscode 扩展等)直接调用。
CREATE TABLE 字段列表转换为带 @Data 注解的 Java 类。BIGINT / INT / VARCHAR / DECIMAL / DATETIME 等常见 SQL 类型自动映射至 Java 类型。tool / resource / prompt / completion 能力,可通过 SSE 或 stdio 模式对接。data/log/SqlToCode.log,方便排查。├─src/main/java/cn/maysjl/ai
│ ├─Application.java // Spring Boot 启动类
│ ├─config/ToolConfig.java // 注册 MCP ToolCallbackProvider
│ ├─model/ // 请求/响应模型
│ └─service/SqlToCodeService // 核心 SQL→Code 逻辑
├─src/main/resources/application.yml
├─data/log/SqlToCode.log
└─pom.xml
克隆与编译
git clone <repo-url>
cd SqlToCode
mvn clean package -DskipTests
运行服务
mvn spring-boot:run
默认监听 http://localhost:8701,同时暴露 MCP SSE 端点 /mcp/messages。
MCP 客户端接入
http://localhost:8701/mcp/messages。application.yml 中取消注释 spring.main.web-application-type: none 并按需调整。{
"codeType": "java",
"sqlTableName": "Product",
"sql": [
{ "name": "id", "type": "BIGINT" },
{ "name": "name", "type": "VARCHAR(100)" },
{ "name": "price", "type": "INT" }
]
}
{
"codeType": "java",
"resCode": "import lombok.Data;\n\n@Data\npublic class Product {\n\n private Long id;\n private String name;\n private Integer price;\n}"
}
server.port: 默认 8701,可自行修改。spring.ai.mcp.server.*: MCP 服务器的名称、版本、能力与 SSE 端点。按需调整 instructions 以向客户端描述工具用途。logging.file.name: 日志文件位置,默认落盘到 data/log/SqlToCode.log。SqlToCodeService.sqlToJavaType 可扩展类型映射。MethodToolCallbackProvider 可以继续注册更多工具。application.yml 中开启对应配置并实现相关组件。CREATE TABLE 语句自动解析字段列表,减少手工输入。欢迎根据业务需要进行二次开发,如有问题可直接提 issue 或与作者联系。
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server that converts SQL field definitions into Java entity code from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/sqltocode)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.