Back to Home
opensolon icon

solon-ai-mcp-embedded-examples

Verified Safe

by opensolon

Overview

This project provides example implementations for integrating Solon.AI features, including LLM chat, RAG (Retrieval Augmented Generation), and AI agent capabilities, into various Java frameworks (Spring Boot, Solon, Quarkus, JFinal, Vert.x) while demonstrating the use of the Model Context Protocol (MCP) for server endpoint functionality.

Installation

Run Command
From the 'solon-ai-in-springboot2' directory: mvn spring-boot:run (or execute webapp.HelloApp.main class directly)

Environment Variables

  • chat_apiUrl
  • chat_provider
  • chat_model
  • embedding_apiUrl
  • embedding_provider
  • embedding_model
  • server.servlet.context-path

Security Notes

The project is an example repository, and some security-sensitive components are provided as basic demonstrations. For instance, `_Constants.java` hardcodes LLM API URLs (to localhost for Ollama), and `McpServerAuth.java` implements a rudimentary authentication check (`if ("no".equals(authStr))`) explicitly labeled as '仅为示例' (only for example). These are not suitable for production environments without robust configuration and proper authentication mechanisms. No 'eval', obfuscation, or overtly malicious patterns were identified. Running locally for demonstration is safe, but production deployment would require significant security hardening.

Similar Servers

Stats

Interest Score36
Security Score7
Cost ClassLow
Stars7
Forks6
Last Update2026-01-19

Tags

AILLMMCPJavaSolon.AI