solon-ai-embedded-examples
Verified Safeby opensolon
Overview
Provides examples of integrating AI functionalities (LLM interaction, RAG, Agent, and Model Context Protocol server/client) within various Java web frameworks.
Installation
cd solon-ai-in-springboot2 && mvn test -Dtest=client.McpClientTestEnvironment 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
solon-ai
The Model Context Protocol (MCP) server provides a standardized interface for AI models to interact with external tools, resources, and prompt templates through a structured, bidirectional communication protocol.
quarkus-mcp-server
This server demonstrates a secure Model Context Protocol (MCP) using Server-Sent Events (SSE) for exposing tools, prompts, and resources, with authentication handled by Keycloak or GitHub OAuth2.
mcp-servers
A curated collection of Model Context Protocol (MCP) server configurations to integrate various developer tools and services with AI agents.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.