MCP协议由上图所示的三个部分组成
- MCP Server
- MCP Client
- Transport Layer
MCP Server提供了多个工具, MCP Client可以通过Transport Layer(SSE协议、命令行调用等)调用MCP Server提供的工具。
手动使用MCP
如果不考虑AI,我们可以自己尝试手动发起MCP Client连接并调用MCP Server提供的工具。
2025/6/23大约 2 分钟
MCP协议由上图所示的三个部分组成
MCP Server提供了多个工具, MCP Client可以通过Transport Layer(SSE协议、命令行调用等)调用MCP Server提供的工具。
如果不考虑AI,我们可以自己尝试手动发起MCP Client连接并调用MCP Server提供的工具。
本项目使用Spring AI实现了一个可以发布AI智能体到市场,管理员可以审核是否通过,其他用户在首页可以浏览其他用户发布的智能体。
并根据智能体的收藏量分周榜总榜。也可以通过类别进行检索。
本项目主要提供给AI开发初学者学习使用,并不具备可以商业使用的能力。
可以自己创建任务列表,在任务中细分任务步骤。通过AI助手了解每日需要完成的任务内容。每日签到,累计签到获得成就。
前端的输入表单可以看见是比较动态且复杂的,这种配置数据适合用json类型存储。configs
字段用来存储运费配置。
valid
字段标识全局唯一生效的运费模板。
create table carriage_template
(
id varchar(36) not null
primary key,
created_time datetime(6) not null,
edited_time datetime(6) not null,
creator_id varchar(36) not null,
editor_id varchar(36) not null,
name varchar(255) not null comment '模板名称',
description varchar(1000) not null comment '运费模板描述',
configs json not null comment '运费配置',
valid tinyint(1) not null comment '是否生效(全局只能存在一个生效)'
)
comment '运费模板';
在图二中用户购买套餐(vip_package
),在后端会生成一个vip订单(vip_order
)记录了要购买的套餐,支付成功后会在vip
中增加到期时间(图1中展示)。
create table vip
(
id varchar(32) not null
primary key,
created_time datetime(6) not null,
edited_time datetime(6) not null,
creator_id varchar(32) not null,
editor_id varchar(32) not null,
user_id varchar(32) not null comment '用户id',
end_time datetime(6) not null comment '到期时间'
)
comment '会员信息';