MCP.so
登录

Data Generator Java MCP Server

@uthircloudnative

基本信息

分类

数据与分析

最近更新

传输方式

stdio

作者

uthircloudnative

关于 Data Generator Java MCP Server

暂无概览

Data Generator Java MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Data Generator Java MCP Server 工具

4

`prompt` (String)

Generated data as a String

`id` (String)

User object with ID, name, and age

概览

What is Data Generator Java MCP Server?

A Spring Boot application that implements a Model Completion Protocol (MCP) server for data generation. It exposes Java methods as tools that can be called by AI models, using Spring AI’s MCP server capabilities.

How to use Data Generator Java MCP Server?

Build with ./mvnw clean install and run with ./mvnw spring-boot:run. The MCP server starts in synchronous mode as a non-web application, ready to accept requests from AI models via the Model Completion Protocol.

Key features of Data Generator Java MCP Server

  • Implements the Model Completion Protocol (MCP) server
  • Provides two built‑in data generation tools
  • Supports synchronous execution mode
  • Includes a REST client for external API integration
  • Extensible via @Tool‑annotated service methods

Use cases of Data Generator Java MCP Server

  • AI model generates structured data based on a prompt
  • AI model retrieves synthetic user data (ID, name, age)
  • Developers integrate custom data generation logic into AI workflows
  • Build a test data pipeline for AI‑driven applications

常见问题

1

What tools does the server expose?

The server exposes two tools: `generateData` (accepts a `prompt` string, returns generated data as a String) and `getUserData` (accepts `id` String and `age` int, returns a User object with ID, name, and age).

2

What are the prerequisites for running the server?

Java 21 or higher, Maven 3.9+ (or the included Maven wrapper), and a basic understanding of Spring Boot and Spring AI.

3

How can I extend the server with custom tools?

Create a new service class with methods annotated `@Tool`, then register the service in `McpServerConfig` using `MethodToolCallbackProvider.builder().toolObjects(...)`.

4

How do I configure the MCP server?

Configuration is in `application.properties` (e.g., `spring.ai.mcp.server.name` and `spring.ai.mcp.server.type=SYNC`) and can be customized via the `McpServerConfig` class.

5

Does the server run in synchronous or asynchronous mode?

The server is configured to run in synchronous mode by default (`spring.ai.mcp.server.type=SYNC`).

评论

数据与分析 分类下的更多 MCP 服务器