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`).

コメント

「データと分析」の他のコンテンツ