Spree Commerce: open-source B2B and marketplace ecommerce

io.github.spree由 GitHub 账号 spree 发布v6.0.1更新于 Nov 6, 2026

Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.

发布方自己的服务:Source

已验证Streamable HTTP可网页运行效率与工作流商业与电商

概览

AI 生成的概览

Spree 的 MCP 服务器让 AI 助手用自然语言管理 Spree 商店的商品目录、回答报表问题并完成店铺设置。

可以做什么
  • 管理商品目录:通过 Spree 后台工具创建和编辑商品及相关目录数据。
  • 回答有关店铺数据的报表问题。
  • 管理店铺设置与配置。
  • 遵循与 Admin API 相同的租户和权限规则,可用工具由登录管理员的权限决定。
适用场景
适用于运营 Spree 商店、并希望用 Claude Code、Cursor 或自建代理等 MCP 客户端通过后台完成商品上架、店铺设置和报表查询的场景。
运行要求
需要一个已启用 MCP 服务器的 Spree 商店(通过 spree 命令行或 spree_mcp gem 添加)。远程端点为商店域名下的 POST /api/v3/admin/mcp,需要由真人签发的 OAuth 令牌:客户端引导其登录并批准权限。不接受密钥型 API key。
安装前请注意
助手可以修改商品目录和店铺设置等数据,批准前请确认写操作。访问权限取决于个人 OAuth 授权及其管理员权限,令牌被限制在已批准的范围内。密钥型 API key 会被拒绝,无人值守任务应改用 Admin API 或命令行。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Spree Commerce: open-source B2B and marketplace ecommerce,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Spree MCP Server

A Model Context Protocol server for the Spree back office. Any MCP client — Claude Code, Cursor, an in-house agent — can merchandise the catalog, answer reporting questions and manage store setup in plain language, under the same tenancy and permission rules as the Admin API.

bash
spree add mcp   # or add gem 'spree_mcp' to the Gemfile

The endpoint is POST /api/v3/admin/mcp, authenticated with an OAuth token issued to a person: the client sends them to the store to sign in and approve what it may do. The token carries that admin's own permissions, narrowed to what they approved, and those decide which tools the model is offered, so an agent is never told about a capability its credential does not carry.

A Spree secret API key (sk_…) is deliberately refused here. A nightly job or a server-side integration has no person behind it; it calls the Admin API with a key, or uses the spree api CLI.

This gem is a protocol adapter and nothing more. The tools, their schemas and the permissions gating them live in spree_core as Spree.admin_agent_tools, which means an extension registers a tool without depending on this gem, and the dashboard assistant offers the same tools over a different transport.

See the documentation and docs/plans/6.0-mcp-server.md.

来源:spree/mcp/README.md,提交 4f54659

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v6.0.1最新Oct 30, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Source 集成