mcp-server-demo
1
This project is a demonstration of a Model Control Protocol server utilizing Spring Boot and AI tools for intelligent service delivery. Key functionalities include number services and weather services with suggestions for expansion using external APIs.
Overview
This project is a demo for a Model Control Protocol (MCP) server based on Spring Boot 3.4.4, featuring integration with the Spring AI toolchain to provide intelligent services. It includes templates for basic numerical operations and a weather query service.
Core Features
- Number Service: Odd/even number identification, prime number detection. Suggestions for expansion include prime factorization and Fibonacci calculations.
- Weather Service: Weather data interface using placeholder code with suggestions to implement using third-party APIs like OpenWeatherMap.
- MCP Tool Support: Services exposed as standardized tools using annotations.
Quick Start
- Requirements: JDK 17, Maven 3.8+, IntelliJ IDEA.
- Running Steps: Clone repository, build project, and configure using either STDIO or SSE modes.
Development Guidelines
- Code style follows Spring official guidelines.
- Core functionalities must have 80%+ test coverage.
Contributing
- Fork the repo, create a feature branch, implement new functionality or fix issues, and submit a Pull Request to the main branch.