mcpField
S
spring-ai-mcp-server-demo

spring-ai-mcp-server-demo

Local
github.com/RamzusDeveloper Tools4Updated 69w ago

About spring-ai-mcp-server-demo

spring-ai-mcp-server-demo is a demonstration platform for developers exploring AI agents connected to business systems. It combines order, payment, and incident services so AI assistants can query and operate them through natural language.

Key features

  1. 01Manage orders and their lifecycle
  2. 02Process payments and transactions
  3. 03Track incidents and resolutions
  4. 04Launch the multi-service platform with Docker Compose
  5. 05Provide order and incident MCP servers

Use cases

  1. 01Find orders awaiting processing
  2. 02Create a payment for an order
  3. 03Filter open high-priority incidents
  4. 04Advance an order to its next stage

MCP support

Provides order-management and incident-management MCP servers for clients such as Claude and GitHub Copilot to invoke business operations. The servers are configured over stdio.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

🚀 Agentic AI Demo - Smart Business Platform

Transform your business operations with AI-powered automation!

Welcome to a cutting-edge demonstration of how AI agents can seamlessly integrate with real business applications. This platform showcases a complete microservices ecosystem where AI assistants (like Claude or GitHub Copilot) can directly manage orders, process payments, and handle incidents through natural conversation.

✨ What Makes This Special?

🤖 Talk to Your Business System: Use natural language to manage orders, payments, and incidents
⚡ Real-Time Operations: AI agents perform actual business operations, not just mock data
🔧 Production-Ready: Built with enterprise-grade technologies and best practices
🎯 Plug & Play: Easy setup with Docker - get running in minutes
🌐 Modern Stack: Vue.js frontends, Spring Boot APIs, and intelligent MCP servers

📋 Quick Overview

ServiceWhat It DoesFrontendAPI
📦 OrdersManage customer orders & lifecyclelocalhost:5173localhost:8081
💳 PaymentsProcess payments & transactionslocalhost:5174localhost:8082
🚨 IncidentsTrack issues & resolutionslocalhost:5175localhost:8083
🧠 AI AssistantSmart automation layer-localhost:8085

🏗️ System Architecture

    🖥️ Frontend Apps (Vue.js + TypeScript)
    ┌─────────────┐  ┌─────────────┐  ┌─────────────┐
    │   Orders    │  │  Payments   │  │  Incidents  │
    │   :5173     │  │   :5174     │  │   :5175     │
    └─────────────┘  └─────────────┘  └─────────────┘
           │                │               │
    ⚡ REST APIs (Spring Boot + Java)
    ┌─────────────┐  ┌─────────────┐  ┌─────────────┐
    │ Order API   │  │Payment API  │  │Incident API │
    │   :8081     │  │   :8082     │  │   :8083     │
    └─────────────┘  └─────────────┘  └─────────────┘
           │                │               │
           └────────────────┼───────────────┘
                           │
    🤖 AI Integration Layer
           ┌─────────────────────────┐
           │     MCP Servers         │
           │   (AI ↔ Business)       │
           │       :8085             │
           └─────────────────────────┘
                           │
    💾 Data Layer
           ┌─────────────────────────┐
           │      MongoDB            │
           │   (Document Store)      │
           │       :27017            │
           └─────────────────────────┘

🚀 Get Started in 3 Minutes!

Prerequisites ✅
  • Docker Desktop installed and running
  • Available ports: 5173-5175, 8081-8083, 8085, 27017
1️⃣ Launch Everything
# Navigate to project directory
cd agentic-ai-demo

# 🚀 Start all services (this might take 2-3 minutes first time)
docker-compose up --build -d

# ✅ Check everything is running
docker-compose ps
2️⃣ Verify It's Working

Open these links to confirm services are up:

3️⃣ Explore Sample Data

The platform comes pre-loaded with realistic business data:

  • 8 sample orders in various stages (new → processing → shipped → delivered)
  • 4 payment records with different statuses
  • 5 incident tickets with varying priorities

🎉 You're ready! Your complete business platform is now running!

🛠️ Management Commands

Essential Operations
# 🛑 Stop everything
docker-compose down

# 🔄 Restart a specific service  
docker-compose restart order-backend

# 📜 View logs for debugging
docker-compose logs -f [service-name]

# 🧹 Clean slate (removes all data)
docker-compose down --volumes

# 🗑️ Complete cleanup (removes images too)
docker-compose down --volumes --rmi all
Health Monitoring

All services include smart health checks:

  • ✅ Auto-healing: Unhealthy containers restart automatically
  • ⏱️ Quick detection: Issues detected within 30 seconds
  • 🔄 Retry logic: 3 attempts before marking as failed

Check health status: docker-compose ps

🧰 Technology Stack

🖥️ Frontend Technologies
  • Vue.js 3 - Modern reactive framework with Composition API
  • TypeScript - Type-safe development with excellent IDE support
  • Vite - Lightning-fast build tool and hot reload
  • CSS3 - Modern styling with responsive design
⚙️ Backend Technologies
  • Spring Boot - Enterprise Java framework with auto-configuration
  • H2 Database - Embedded SQL database for rapid development
  • MongoDB - Document database for flexible data structures
  • Gradle - Advanced build automation and dependency management
🚀 Infrastructure & DevOps
  • Docker - Containerization for consistent environments
  • Docker Compose - Multi-container orchestration
  • Health Checks - Built-in monitoring and auto-recovery
  • Multi-stage Builds - Optimized container images
🤖 AI Integration
  • Model Context Protocol (MCP) - Standard for AI-app integration
  • REST APIs - HTTP-based service communication
  • Spring Boot Actuator - Production monitoring endpoints

🤖 Connect Your AI Assistant

The real magic happens when you connect AI assistants to control your business operations through conversation!

🔧 Quick Setup for VS Code
  1. Build the MCP servers (one-time setup):
# Build both MCP server JAR files
./gradlew :mcp-servers:oms-mcp-server:build
./gradlew :mcp-servers:incident-mcp-server:build
  1. Configure VS Code - Add to your settings.json:
{
  "mcp": {
    "servers": {
      "oms-mcp-server": {
        "type": "stdio",
        "command": "java",
        "args": ["-jar", "YOUR_PROJECT_PATH/mcp-servers/oms-mcp-server/build/libs/oms-mcp-server-0.0.1-SNAPSHOT.jar"]
      },
      "incident-mcp-server": {
        "type": "stdio", 
        "command": "java",
        "args": ["-jar", "YOUR_PROJECT_PATH/mcp-servers/incident-mcp-server/build/libs/incident-mcp-server-0.0.1-SNAPSHOT.jar"]
      }
    }
  },
  "chat.mcp.discovery.enabled": true
}
  1. Replace YOUR_PROJECT_PATH with your actual project path.
💬 Talk to Your Business System

Once connected, try these natural language commands:

What You SayWhat Happens
"Show me all pending orders"📋 Lists orders waiting to be processed
"Create a payment for order #1001 for $150"💳 Processes a new payment transaction
"What high-priority incidents are open?"🚨 Filters critical issues needing attention
"Move order #1001 to the next stage"⚡ Advances order through workflow
"Show me all failed payments"💸 Displays transactions that need retry

💡 Pro Tip: The AI maintains full business context and validates operations, so you can have natural conversations about complex business workflows!

❓ Troubleshooting

🚨 Services won't start

Problem: docker-compose up fails or services show as unhealthy

Solutions:

# Check if ports are already in use
lsof -i :5173 -i :8081 -i :8082 -i :8083 -i :8085 -i :27017

# Clean up any existing containers
docker-compose down --volumes
docker system prune -f

# Restart Docker Desktop and try again
docker-compose up --build -d
🔌 Can't connect to AI assistants

Problem: MCP servers not recognized by VS Code or Claude

Solutions:

  1. Verify JAR files exist:

    ls -la mcp-servers/*/build/libs/*.jar
    
  2. Rebuild if missing:

    ./gradlew :mcp-servers:oms-mcp-server:build
    ./gradlew :mcp-servers:incident-mcp-server:build
    
  3. Check VS Code settings path - Use absolute paths in settings.json

  4. Restart VS Code after configuration changes

💾 Data not persisting

Problem: Sample data disappears after restart

Solution: This is expected behavior. The H2 databases are in-memory for demo purposes. MongoDB data persists in Docker volumes.

🎯 What's Next?

Ready to extend this platform? Here are some ideas:

  • 🔐 Add Authentication - Implement user login and role-based access
  • 📧 Email Notifications - Send alerts for order status changes
  • 📊 Analytics Dashboard - Add business intelligence and reporting
  • 🔄 Event Streaming - Implement Apache Kafka for real-time events
  • 🧪 Testing Suite - Add comprehensive integration tests
  • 🌍 Multi-tenancy - Support multiple organizations

📞 Support & Contributing

  • 🐛 Found a bug? Open an issue with detailed reproduction steps
  • 💡 Have an idea? We'd love to hear your suggestions
  • 🤝 Want to contribute? Check out our contribution guidelines
  • 📚 Need help? Join our community discussions

🌟 Star this repo if you found it helpful!

Built with ❤️ for the AI development community

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.