Mcp商店
在您的AI编码环境中无缝安装和管理MCP服务器。此扩展允许将MCP Server一键部署到Cline、GitHub Copilot、Cursor、Trae和其他兼容平台。连接到专用MCP商店以确保安全。直接在编辑器中通过企业级MCP生态系统集成简化您的开发工作流程。
特性
- 检索MCP列表
- 安装/卸载MCP服务器
- 连接到专用MCP服务器数据源
| IDE | Mcp客户端 |
|---|---|
| vscode | cline、副驾驶 |
| 游标 | 斜面、游标 |
带来,带来
用户文档
安装
在VSCode中安装mcp-store插件
- 打开VSCode扩展市场,搜索 mcp商店,然后单击 安装.
在Trae中安装mcp-store插件
- 打开Trae扩展市场,搜索 mcp商店,然后单击 安装.
注: 默认情况下,Trae与官方VSCode扩展市场同步,但可能会有延迟(从几分钟到几天不等)。为了避免这种情况,我们建议将市场URL设置为 https://open-vsx.org/ (扩展实时发布到官方VSCode市场和Open VSX)。
在Cursor中安装mcp-store插件
- 打开Cursor扩展市场,搜索 mcp商店,然后单击 安装.
注: 默认情况下,Cursor与官方VSCode扩展市场同步,但可能会出现同步延迟,从几分钟到几天不等。
用法
设置mcp-server API地址
- 如果 mcp-server API地址 未配置,打开VSCode扩展市场将自动重定向到设置页面,突出显示API地址字段。
- 要更新 mcp-server API地址,单击插件功能页面标题中的设置按钮。
安装/卸载mcp服务器
- 打开插件功能页面查看所有可用 mcp服务器 列表。
- 每 mcp服务器 条目显示可安装 mcp客户端 下面的选项:
- 绿色 =已安装 - 格雷 =未安装
- 点击灰色 mcp客户端 安装它;单击绿色图标卸载。
正在启动mcp服务器
- 克莱恩:安装后自动启动。
- 带来:安装后自动启动。
- 副驾驶:需要手动启动。
- 在VSCode中,运行 mcp:列出服务器 查看已配置的 mcp服务器 列出并启动所需的服务器。
按 Ctrl+Shift+P 要打开命令选项板,请键入 mcp:列出服务器.
选择所需 mcp服务器 然后点击它。
点击 启动服务器 启动 mcp服务器.
- 光标:
- 如果添加到全局设置中,它将默认启动。 - 如果添加到工作区,则需要手动启动(转到 设置>MCP选项卡,选择所需 mcp服务器,然后单击 开始).
接口定义
服务器必须实现以下接口功能:
- 获取mcp服务器列表
- 获取mcp服务器详细信息
- 获取mcp服务器源列表
- 度量报告
- 获取mcp存储配置
-
1.获取mcp服务器列表
请求
POST /v1/store/server/list
身体
| 参数 | 类型 | 说明 | 必填 |
|---|---|---|---|
| pageSize | 数量 | 每页项目数 | 是 |
| Page索引 | 编号 | 页码 | 是 |
| 关键字 | 字符串 | 搜索关键字 | 否 |
| 服务器类别ID | 编号 | 类别ID | 否 |
| 来源 | 编号 | 来源 | 否 |
| names | string\[\] | 名称列表(适用于已安装的项目) | 否 |
| namesFilterType | number | MCPServer名称筛选器类型(1:在;2:不在)。如果提供了名称参数,则为必填项 | 否(当名称有值时为必填项) |
响应
| 参数 | 类型 | 说明 |
|---|---|---|
| 返回码 | 编号 | 状态码 |
| 消息 | 字符串 | 描述 |
| result | 对象 | 结果 |
| result.rowcount | number | 总计数 |
| result.pagecount | 页数 | 总页数 |
| result.pageindex | number | 当前页码 |
| result.list | 数组 | mcp列表 |
| result.list.name | string | mcp名称 |
| result.list.gitUrl | 字符串 | mcp git URL |
| result.list.description | string | mcp描述 |
| result.list.logoUrl | 字符串 | mcp徽标URL |
| result.list.source | 编号 | mcp来源 |
| result.list.supplier | string | mcp供应商 |
| result.list.submitter | string | mcp提交器 |
| result.list.gitStarCount | number | mcp git星计数 |
| result.list.detailPageUrl | 字符串 | 详细页面URL |
| result.serverCategory | array | mcp类别列表 |
| result.server类别id | 编号 | mcp类别id |
| result.server类别名称 | 字符串 | mcp类别名称 |
| result.serverCategories.serverCount | string | 此类别中MCPServer的计数 |
成功响应:
{
"returncode": 0,
"message": "",
"result": {
"rowcount": 29,
"pagecount": 2,
"pageindex": 1,
"list": [
{
"name": "EverArt Generator",
"gitUrl": "https://github.com/modelcontextprotocol/servers/tree/main/src/everart",
"description": "Image generation server for Claude desktop client using EverArt's API.",
"logoUrl": "https://xxx.cn/dealer_microfe_aidev/mcp/img/mcp-server-logo/modelcontextprotocol.png",
"source": 2,
"supplier": "modelcontextprotocol",
"submitter": "admin",
"gitStarCount": 46612,
"detailPageUrl": "xxx"
}
],
"serverCategories": [
{
"id": 1,
"name": "Developer Tools",
"serverCount": 0
}
]
}
}错误响应:
{
"returncode": 500,
"message": "Retrieval failed, xxxx",
"result": null
}
2.获取mcp服务器详细信息
请求
GET /v1/store/server/detail
参数
| 参数 | 类型 | 说明 | 必填 |
|---|---|---|---|
| name | string | mcp name | 是 |
响应
| 参数 | 类型 | 说明 |
|---|---|---|
| 返回码 | 编号 | 状态码 |
| 消息 | 字符串 | 描述 |
| result | 对象 | 结果 |
| result.name | string | mcp名称 |
| result.serverConfig | string | mcp启动配置命令,可以使用解析为JSON对象 JSON.parse.对应于 mcpServerConfig 客户端中的字段。 |
成功响应:
{
"returncode": 0,
"message": "",
"result": {
"name": "File System",
"serverConfig": "{\"mcpServers\":{\"filesystem\":{\"args\":[\"-y\",\"@modelcontextprotocol/server-filesystem\",\"/Users/username/Desktop\",\"/path/to/other/allowed/dir\"],\"command\":\"npx\"}}}"
}
}
错误响应:
{
"returncode": 500,
"message": "Retrieval failed, xxxx",
"result": null
}
3.获取mcp服务器源列表
请求
GET /v1/store/server/sources
参数
无
响应
| 参数 | 类型 | 说明 |
|---|---|---|
| 返回码 | 编号 | 状态码 |
| 消息 | 字符串 | 描述 |
| result | 数组 | 结果 |
| result.id | 编号 | 源id |
| result.name | string | 源名称 |
成功响应:
{
"returncode": 0,
"message": "",
"result": [
{
"id": 1,
"name": "Autohome"
}
]
}错误响应:
{
"returncode": 500,
"message": "Retrieval failed, xxxx",
"result": null
}
4.度量数据报告
请求
POST /v1/store/report
参数
| 参数 | 类型 | 说明 | 必填 | 备注 |
|---|---|---|---|---|
| mcpServerName | string | mcp服务器名称 | 是 | 示例:Grafana mcp服务器 |
| target | string | 要安装的目标mcp客户端名称 | 是 | 示例:cline |
| source | string | 数据源名称 | Yes | 示例:vscode扩展 |
| 用户名 | 字符串 | 用户名 | 是 | 示例:宁方伟 |
| userIp | string | 用户IP地址 | 是 | 示例:127.0.0.1 |
| userOs | string | 用户操作系统 | 是 | 示例:mac |
| Event时间 | 日期 | 事件时间戳 | 是 | 示例:2024-05-28 10:00:00 |
| eventName | string | 事件名称(安装:安装,卸载:卸载) | 是 | 示例:安装 |
响应
| 参数 | 类型 | 说明 |
|---|---|---|
| 返回码 | 编号 | 状态码 |
| 消息 | 字符串 | 描述 |
成功响应:
{
"returncode": 0,
"message": "success"
}错误响应:
{
"returncode": 500,
"message": "Reporting failed, xxxx"
}
5.获取店铺配置信息
请求
GET /v1/store/config
参数
无
响应
| 参数 | 类型 | 说明 |
|---|---|---|
| 返回码 | 编号 | 状态码 |
| 消息 | 字符串 | 描述 |
| result | 对象 | 配置信息 |
| result.title | string | 存储标题 |
| result.submitServerUrl | string | 服务器提交URL |
| result.issueUrl | 字符串 | 通信URL |
成功响应:
{
"returncode": 0,
"message": "success",
"result": {
"title": "mcp Store",
"submitServerUrl": "https://example.com/submit",
"issueUrl": "https://example.com/issue"
}
}错误响应:
{
"returncode": 500,
"message": "Retrieval failed, xxxx",
"result": null
}
