
qy framework ai
一个集成了多种大模型的 AI 框架,支持流式输出并提供 MCP 客户端和服务端扩展。
Repository Info
About This Server
一个集成了多种大模型的 AI 框架,支持流式输出并提供 MCP 客户端和服务端扩展。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
qy-framework-ai
结构
- qy-framework-ai-mcp-client: 基础对话包,集成多种大模型,支持流式输出,内置MCP Client
- qy-framework-ai-mcp-server: MCP Server扩展包
- qy-framework-ai-example: 对话示例(含MCP Client示例)
- qy-framework-ai-mcp-server-example: MCP Server示例
配置说明
客户端
pom文件引入
<dependencies>
<dependency>
<groupId>io.github.quanyu-1995</groupId>
<artifactId>qy-framework-ai-mcp-client</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
applicaiton.yaml配置文件参考如下:
# 端口配置
server:
port: 8080
# qy-AI框架相关配置
quanyu:
ai:
# 策略: openai / ollama
strategy: openai
config:
# deepseek API示例
# chat-url: https://api.deepseek.com/chat/completions
# api-key: <你的API KEY>
# model: deepseek-chat
# qwen3 API示例
chat-url: https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
api-key: <你的API KEY>
model: qwen3-235b-a22b
# ollama示例
# chat-url: http://localhost:11434/api/chat
# model: qwen3:8b
mcp:
client:
servers:
server1: http://localhost:8090
# 默认缓存策略所需配置(DefaultCacheStrategy)
spring:
data:
redis:
# 连接地址
host: "localhost"
# 端口
port: 6379
# 数据库
database: 0
# 用户名,如果有
# username:
# 密码,如果有
# password:
# 连接超时
connect-timeout: 5s
# 读超时
timeout: 5s
# Lettuce 客户端的配置
lettuce:
# 连接池配置
pool:
# 最小空闲连接
min-idle: 0
# 最大空闲连接
max-idle: 8
# 最大活跃连接
max-active: 8
# 从连接池获取连接 最大超时时间,小于等于0则表示不会超时
max-wait: -1ms
服务端
pom文件引入
<dependencies>
<dependency>
<groupId>io.github.quanyu-1995</groupId>
<artifactId>qy-framework-ai-mcp-server</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
applicaiton.yaml配置文件参考如下:
# 端口配置
server:
port: 8080
Quick Start
Clone the repository
git clone https://github.com/quanyu-1995/qy-framework-aiInstall dependencies
cd qy-framework-ai
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.