Back to Home
opensolon icon

solon-ai-embedded-examples

Verified Safe

by opensolon

Overview

Provides examples of integrating AI functionalities (LLM interaction, RAG, Agent, and Model Context Protocol server/client) within various Java web frameworks.

Installation

Run Command
cd solon-ai-in-springboot2 && mvn test -Dtest=client.McpClientTest

Environment Variables

  • MCP_CHAT_API_URL
  • MCP_CHAT_PROVIDER
  • MCP_CHAT_MODEL
  • MCP_EMBEDDING_API_URL
  • MCP_EMBEDDING_PROVIDER
  • MCP_EMBEDDING_MODEL
  • SERVER_CONTEXT_PATH

Security Notes

The `McpServerAuth` filter provided in examples is a basic demonstration of authentication logic (`ctx.param("user") == "no"` check), not a production-ready solution. It also explicitly allows `/mcp/*/message` endpoints to bypass authentication. For production use, a robust authentication and authorization mechanism must be fully implemented. LLM API URLs are hardcoded to a local `ollama` instance (`http://127.0.0.1:11434`) by default; while not a direct security risk, this implies a reliance on local infrastructure for testing/development.

Similar Servers

Stats

Interest Score36
Security Score8
Cost ClassMedium
Avg Tokens100
Stars7
Forks6
Last Update2026-01-19

Tags

AILLMMCPJavaServer