2 Star 16 Fork 6

SolonLab/solon-ai-mcp-embedded-examples

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
README.md 1.28 KB
Copy Edit Raw Blame History
西东 authored 2 months ago . demo

solon-ai-mcp-embedded-examples

这个示例可以使用 springboot 容器的能力,开发 McpServerEndpoint

提醒

  • 可以直接运行 test/java/client/McpClientTest 单测(会自动启动服务端)
  • Llm 包下的模型,需要先修改本地的模型配置(不然,会出错)

如果不需要 llm 参考(把整个包删掉,省得配置)

说明

示例内容包括:

  • llm
    • chatModel 基本使用,及单测
    • tool call 基本使用,及单测
    • rag 基本使用,及单测
      • embeddingModel
      • repository
      • splitter
  • mcp
    • server 基本使用(需要 solon 容器支持)
    • client 基本使用,及单测

示例

示例 说明
solon-ai-embedded-jfinal
solon-ai-embedded-jfinal-newstyle 使用了 solon mvc 体系(支持异步响应)
solon-ai-embedded-solon
solon-ai-embedded-springboot2
solon-ai-embedded-springboot3
solon-ai-embedded-vertx
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/solonlab/solon-ai-mcp-embedded-examples.git
git@gitee.com:solonlab/solon-ai-mcp-embedded-examples.git
solonlab
solon-ai-mcp-embedded-examples
solon-ai-mcp-embedded-examples
main

Search