Sherweb

io.github.wyre-technology由 GitHub 账号 wyre-technology 发布v1.4.3更新于 Oct 24, 2026

MCP server for Sherweb — billing, subscriptions, customers, and product catalog.

发布方自己的服务:Sherweb Platform MCP Server

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

让助手浏览 Sherweb 云市场的客户、产品目录、订阅和账单费用,并提交订阅数量变更。

可以做什么
将兼容 MCP 的助手连接到 Sherweb 合作伙伴环境。它提供账单(按周期查询分销商应付费用及单笔费用明细)、目录(浏览指定客户可购买的产品)、客户(列出和查询客户,并读取应收费用)以及订阅(列出、查看详情、提交数量变更、查询变更状态)等工具。订阅变更是异步的:提交后返回跟踪 ID,由单独的工具报告结果。订阅详情工具在支持 MCP Apps 的宿主中可渲染为只读交互卡片。
适用场景
适合托管服务提供商和 Sherweb 合作伙伴,让助手在不打开门户的情况下回答客户、订阅、目录和账单相关问题。适用于定期报表、订阅审查和数量变更流程。它不是通用工具,只有已拥有 Sherweb API 凭据时才有意义。
运行要求
以本地进程方式通过 stdio 运行(也发布 OCI 镜像,默认使用 http 以便网关托管)。npm 包需要 Node.js,镜像需要 Docker。需要 Sherweb OAuth 凭据:SHERWEB_CLIENT_ID、SHERWEB_CLIENT_SECRET 和 SHERWEB_SUBSCRIPTION_KEY。可选变量包括 AUTH_MODE、LOG_LEVEL 和 MCP_TRANSPORT。需要访问 Sherweb API 的网络连接。
安装前请注意
需要密钥 SHERWEB_CLIENT_SECRET 和 SHERWEB_SUBSCRIPTION_KEY,以及 SHERWEB_CLIENT_ID;请将它们保存在 MCP 客户端配置中,不要外传。该服务器可提交订阅数量变更,会改动客户订阅并可能影响计费,批准前应仔细核对。AUTH_MODE 设为 gateway 时由外部网关注入凭据,密钥存放位置随之改变。客户和账单数据会发送到 Sherweb API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sherweb,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Sherweb MCP Server

[License] [Node.js]

A Model Context Protocol (MCP) server for Sherweb cloud marketplace and partner portal. Enables AI assistants to manage customer subscriptions, browse the product catalog, and handle billing operations.

This is a Model Context Protocol (MCP) server that connects Claude (or any MCP-compatible AI) to your Sherweb environment.

Part of the MSP Claude Plugins ecosystem — a growing suite of AI integrations for the MSP stack. Built by MSPs, for MSPs.

Installation

bash
npm install @wyre-ai/sherweb-mcp

Configuration

Copy .env.example and set the variables below.

VariableRequiredDescription
SHERWEB_CLIENT_IDFor stdio and AUTH_MODE=envSherweb API client ID
SHERWEB_CLIENT_SECRETFor stdio and AUTH_MODE=envSherweb API client secret
SHERWEB_SUBSCRIPTION_KEYFor stdio and AUTH_MODE=envSherweb API subscription key
MCP_TRANSPORTNostdio (default) or http
AUTH_MODENogateway (Docker image and Compose default) or env. Gateway mode requires X-Sherweb-Client-ID, X-Sherweb-Client-Secret, and X-Sherweb-Subscription-Key on each /mcp request and never falls back to SHERWEB_*. env uses those variables only after S2S auth succeeds.
CONDUIT_S2S_SECRETYes for HTTPService-to-service secret. The HTTP server logs an error and exits non-zero when this is empty or a known placeholder (changeme, your-s2s-secret, placeholder, secret, and similar copied examples). Compose will not start without it. Never commit a real value. Generate one with openssl rand -hex 32.
MCP_ALLOW_INSECURE_DEVNoSet to 1 only for local development to start HTTP without CONDUIT_S2S_SECRET. The process logs a warning, does not enforce X-Gateway-S2S, and binds 127.0.0.1 only. A non-loopback MCP_HTTP_HOST (including 0.0.0.0) is ignored and the override is logged. A placeholder secret is still refused.
MCP_HTTP_HOSTNoBind address when MCP_TRANSPORT=http and CONDUIT_S2S_SECRET is set. Defaults to 127.0.0.1. The container image sets 0.0.0.0. Without a real secret the listener is 127.0.0.1.
MCP_HTTP_PORTNoHTTP port. Defaults to 8080.

/health and /healthz stay unauthenticated and do not read credentials. The stdio transport does not use CONDUIT_S2S_SECRET.

HTTP authentication

With MCP_TRANSPORT=http and CONDUIT_S2S_SECRET set, every /mcp request must include X-Gateway-S2S. A missing or invalid header returns 401, before vendor credentials are read. The secret is never written to logs.

The header value is t=<unix seconds>,v1=<hex hmac-sha256>. v1 is HMAC-SHA256 over the exact ASCII string t=<unix seconds>, keyed with CONDUIT_S2S_SECRET, hex-encoded (64 lowercase hex characters). The timestamp must be within 300 seconds of the server clock.

t=1710000000,v1=<hmac-sha256("t=1710000000", CONDUIT_S2S_SECRET) as hex>

In AUTH_MODE=gateway, /mcp also requires X-Sherweb-Client-ID, X-Sherweb-Client-Secret, and X-Sherweb-Subscription-Key. Those headers are the only credential source for that request. A request missing any of them returns 401 and does not fall back to SHERWEB_* in the process environment.

Usage

Running with Claude Desktop

Add to your Claude Desktop claude_desktop_config.json:

json
{  "mcpServers": {    "sherweb-mcp": {      "command": "npx",      "args": ["@wyre-ai/sherweb-mcp"],      "env": {        "SHERWEB_CLIENT_ID": "your-sherweb-client-id",        "SHERWEB_CLIENT_SECRET": "your-sherweb-client-secret",        "SHERWEB_SUBSCRIPTION_KEY": "your-sherweb-subscription-key"      }    }  }}

Running with Claude Code (CLI)

bash
claude mcp add sherweb-mcp \  -e SHERWEB_CLIENT_ID=your-value \  -e SHERWEB_CLIENT_SECRET=your-value \  -e SHERWEB_SUBSCRIPTION_KEY=your-value \  -- npx -y @wyre-ai/sherweb-mcp

Docker

The image listens on 0.0.0.0 inside the container (MCP_HTTP_HOST) and defaults to AUTH_MODE=gateway. Publish the port on loopback and pass the S2S secret. In gateway mode, Sherweb credentials arrive on each request as headers; they are not read from the environment.

bash
docker build -t sherweb-mcp .docker run \  -e CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" \  -p 127.0.0.1:8080:8080 \  sherweb-mcp

Compose refuses to start when CONDUIT_S2S_SECRET is unset, sets AUTH_MODE=gateway, publishes 127.0.0.1:8080:8080, and does not pass SHERWEB_CLIENT_ID, SHERWEB_CLIENT_SECRET, or SHERWEB_SUBSCRIPTION_KEY into the container:

bash
CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" docker compose up

Single-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses SHERWEB_*:

bash
docker run \  -e CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" \  -e AUTH_MODE=env \  -e SHERWEB_CLIENT_ID=your-value \  -e SHERWEB_CLIENT_SECRET=your-value \  -e SHERWEB_SUBSCRIPTION_KEY=your-value \  -p 127.0.0.1:8080:8080 \  sherweb-mcp

Local HTTP without a secret is development-only. It binds 127.0.0.1 only (a wider MCP_HTTP_HOST is ignored) and logs a warning:

bash
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm start

Available Domains

Billing

Distributor payable charges for a billing period, and detail for an individual charge. Sherweb returns charges only as a per-period collection, so both tools take an optional date identifying the period.

Catalog

Browse the products a given customer can be sold. Catalogs are per-customer in Sherweb — there is no global product list — so customerId is required.

Customers

List and look up customers, and read the receivable charges you bill them for a billing period.

Subscriptions

List a customer's subscriptions, get one subscription's details, and submit quantity amendments. Amendments are asynchronous: submitting returns a tracking ID, and sherweb_subscriptions_amendment_status reports the outcome.

Interactive Subscription Card (MCP Apps)

sherweb_subscriptions_get renders as an interactive, read-only card in MCP Apps hosts (Claude Desktop/web) showing the product, customer, status, quantity, billing cycle, commitment/renewal dates, and fees; plain-JSON behavior is unchanged in other hosts. The card is neutral by default and brandable via window.__BRAND__ injection or MCP_BRAND_* env vars (MCP_BRAND_NAME, MCP_BRAND_LOGO_URL, MCP_BRAND_PRIMARY_COLOR, MCP_BRAND_ACCENT_COLOR, MCP_BRAND_BG, MCP_BRAND_TEXT) — no rebuild needed.

Development

bash
# Clone the repositorygit clone https://github.com/WYRE-AI/sherweb-mcp.gitcd sherweb-mcp
# Install dependenciesnpm install
# Buildnpm run build
# Run testsnpm test
# HTTP transport refuses to start until CONDUIT_S2S_SECRET is setCONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" MCP_TRANSPORT=http npm start
# Local HTTP only, without a service-to-service secret (always binds 127.0.0.1)MCP_ALLOW_INSECURE_DEV=1 MCP_TRANSPORT=http npm start

Contributing

Contributions are welcome! Please see CONTRIBUTING.md if present, or open an issue to discuss changes.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

来源:README.md,提交 475bdc2

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.4.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Sherweb 集成