solon-ai-embedded-examples
mcp
Warn
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Pass
- Code scan — Scanned 10 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
Purpose
This project provides a collection of example implementations showing how to embed AI and Model Context Protocol (MCP) capabilities into various Java frameworks, including SpringBoot, Quarkus, Vert.x, and Solon.
Security Assessment
The overall risk is rated as Low. The automated code scan checked 10 files and found no dangerous patterns. The repository does not request any dangerous system permissions, nor does it appear to execute shell commands or access sensitive local data inherently. As a teaching repository, it requires users to manually configure their own Large Language Model (LLM) API keys to function. The README explicitly notes that users must modify constant configurations to prevent startup errors, meaning there are no hardcoded secrets or API keys exposed in the codebase. Standard network requests will occur locally when testing the provided client and server examples against external AI APIs.
Quality Assessment
The project is highly maintained, with its most recent code push happening today. It is released under the standard and permissive MIT license, which is excellent for open-source adoption. However, it currently has very low community visibility, holding only 8 GitHub stars. Because it is primarily an educational example repository rather than a standalone core library, this low visibility is normal and does not necessarily reflect poorly on its reliability, though community support and external auditing remain limited.
Verdict
Safe to use, provided you safely manage your own API keys and configurations when testing these examples.
This project provides a collection of example implementations showing how to embed AI and Model Context Protocol (MCP) capabilities into various Java frameworks, including SpringBoot, Quarkus, Vert.x, and Solon.
Security Assessment
The overall risk is rated as Low. The automated code scan checked 10 files and found no dangerous patterns. The repository does not request any dangerous system permissions, nor does it appear to execute shell commands or access sensitive local data inherently. As a teaching repository, it requires users to manually configure their own Large Language Model (LLM) API keys to function. The README explicitly notes that users must modify constant configurations to prevent startup errors, meaning there are no hardcoded secrets or API keys exposed in the codebase. Standard network requests will occur locally when testing the provided client and server examples against external AI APIs.
Quality Assessment
The project is highly maintained, with its most recent code push happening today. It is released under the standard and permissive MIT license, which is excellent for open-source adoption. However, it currently has very low community visibility, holding only 8 GitHub stars. Because it is primarily an educational example repository rather than a standalone core library, this low visibility is normal and does not necessarily reflect poorly on its reliability, though community support and external auditing remain limited.
Verdict
Safe to use, provided you safely manage your own API keys and configurations when testing these examples.
solon ai(&mcp) embedded examples。支持 MCP_2025_06_18(mcp streamable)。示例项目包括各种框架嵌入:(Solon、SpringBoot、jFinal、Vert.X、Quarkus、Micronaut)
README.md
solon-ai-embedded-examples
solon-ai & solon-ai-mcp & solon-ai-flow & solon-ai-agent 同时支持:java8、java11、java17、java21、java25(java8+)
本示例项目会经常更新,建议经常同步。
说明
示例内容包括:
- llm(需要修改 llm/_Constants 下的常量配置,否则启动会出错)
- chatModel 基本使用,及单测
- tool call 基本使用,及单测
- skills(solon ai skills)基本使用及单测
- rag 基本使用,及单测(embeddingModel,repository,splitter)
- mcp (含 sse, streamable 示例;支持 MCP_2025_03_26 协议)
- server 基本使用(需要 solon 容器支持)
- client 基本使用,及单测
示例
| 示例 | 说明 |
|---|---|
| solon-ai-in-jfinal | |
| solon-ai-in-jfinal-newstyle | |
| solon-ai-in-quarkus | |
| solon-ai-in-solon | |
| solon-ai-in-springboot2 | |
| solon-ai-in-springboot3 | |
| solon-ai-in-springboot4 | |
| solon-ai-in-springmvc | |
| solon-ai-in-vertx | |
| solon-ai-in-webflux2-llm | 只有 llm 示例(没有 mcp) |
| solon-ai-in-webflux3-llm | 只有 llm 示例(没有 mcp) |
| solon-ai-in-webflux4-llm | 只有 llm 示例(没有 mcp) |
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found