# mcp-serve-java **Repository Path**: jw9115/mcp-serve-java ## Basic Information - **Project Name**: mcp-serve-java - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-01 - **Last Updated**: 2025-08-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # McpDemo Project Documentation ## Project Introduction McpDemo is a simple book search service application based on the Spring Boot framework. This project demonstrates how to implement book information retrieval functionality through a configured tool service. ## Main Features - Provides functionality for retrieving book information - Supports book information search by title keywords ## Project Structure Description - `Book.java`: Defines the book entity class, containing two properties: title and author - `BookService.java`: Book service interface - `BookServiceImpl.java`: Concrete implementation class of the book service, containing book information search logic - `McpDemoApplication.java`: Spring Boot startup class - `McpServeConfig.java`: Configuration class that registers the tool callback provider ## Installation and Startup 1. Ensure that the Java development environment and Maven build tool are installed 2. Execute the Maven build command: ```bash mvn clean package ``` 3. Run the Spring Boot application: ```bash java -jar target/mcpdemo-0.0.1-SNAPSHOT.jar ``` ## Usage Instructions - Call the `getBook` method with a title keyword parameter to search for book information - Example: `bookService.getBook("Spring")` ## Configuration Description - The application configuration file is `application.yml` - The tool callback provider is configured in the `McpServeConfig` class ## Contribution Guidelines To contribute code, please follow these steps: 1. Fork the project 2. Create a new branch 3. Submit code changes 4. Create a Pull Request ## License This project is licensed under the MIT License. For details, please refer to the LICENSE file. ## Testing - Unit test file: `McpDemoApplicationTests.java` - Test method: `contextLoads()` is used to verify whether the application context loads correctly For further details about the project, please read the source code or contact the project maintainer.