Skip to main content
Glama
FlyDut

Java Boilerplate Generator MCP

by FlyDut

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_boilerplateA

为 Java 实体类生成显式的样板方法并写回原文件(替代 Lombok)。

解析指定 .java 文件中的实体类,生成 IDE 标准风格的 getter/setter/ equals/hashCode/toString/无参构造/全参构造。

两个参数表达如何生成方法,互为补充:

  • generate(仅 getter/setter):只补缺失——只为缺少访问器的字段生成, 保留手写逻辑(如带校验的 setter)。

  • regenerate(全部 7 种皆可):删旧重建——删除旧方法后重新生成。这是 请求 equals/hashCode/toString/构造器的唯一途径(它们没有"只补缺失"模式), 也是把 getter/setter 从"补缺失"切换为"重建"的方式(适合改 setter 风格等)。

冲突:同一访问器类型(getter 或 setter)不能同时出现在 generateregenerate 中——"只补缺失"与"删旧重建"对同一访问器是矛盾的。冲突时工具 返回 error="conflict" 并给出说明,不写回文件,需重新调用二选一。

不传任何方法参数 = 生成全部 7 种(generate 默认 getter/setter 补缺失, regenerate 默认后 5 类删旧重建)。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/FlyDut/java-boilerplate-mcp'

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