microservices.sh

sh.microservices由 microservices.sh 發布官方發布者v0.1.3更新於 Oct 24, 2026

MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

已驗證Streamable HTTP可網頁執行雲端與基礎設施開發者工具

概覽

AI 產生的概覽

此 MCP 伺服器讓 AI 程式助理依據可重複使用的 microservices.sh 模組,規劃、驗證、產生並預覽部署 Cloudflare 原生應用程式。

可以做什麼
  • 探索並檢視範本、模組與模組文件
  • 組合應用程式方案、驗證設定並產生供審閱的專案檔案
  • 執行就緒檢查、規劃新增模組、檢查更新並規劃模組升級
  • 檢視密鑰狀態並建立預覽部署方案
  • 透過遠端控制面部署預覽並查詢部署狀態
適用情境
適合在助理使用驗證、預約、客戶資料、付款、檔案或稽核日誌等常見產品模組建置 Cloudflare 應用程式時使用,並希望在實際部署前取得型別化的規劃、驗證與就緒檢查。
執行需求
以本機 stdio 程序執行(npm 套件 @microservices-sh/mcp,透過 pnpm 安裝),也可作為遠端端點使用。遠端工具需要 bearer 權杖,透過 Authorization 標頭或 MICROSERVICES_API_KEY 變數提供(MICROSERVICES_TOKEN 為備用);MICROSERVICES_API_URL 預設指向託管控制面。遠端工具需要連線至控制面的網路存取。
安裝前請注意
遠端工具會使用你的 API 金鑰向 microservices.sh 控制面送出請求。deploy_preview 會變更狀態,需要將 confirm 設為 "preview",並應先執行 create_preview_plan。請勿將 API 金鑰放入共用設定,使用前請審閱產生的專案檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 microservices.sh,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/sh.microservices%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "microservices-sh": {
      "type": "http",
      "url": "https://api.microservices.sh/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

@microservices-sh/mcp

[npm version] [Official MCP Registry] [mcp MCP server]

MCP server for AI agents that generate, verify, and deploy Cloudflare-native apps from reusable microservices.sh modules.

This package is a standalone stdio MCP server. It vendors a small microservices.sh SDK/module-contract snapshot until the public SDK is split out.

Why Agents Use It

@microservices-sh/mcp gives coding agents a typed planning layer for building production-oriented Cloudflare apps. Agents can discover verified templates and modules, inspect module contracts, compose an app plan, validate configuration, generate project files for review, run readiness checks, and prepare approval-gated preview deployments through the microservices.sh control plane.

It is useful when an agent needs to build apps with common product modules such as auth, booking, customer records, payments, files, and audit logs without inventing each integration from scratch.

Install

bash
pnpm add -D @microservices-sh/mcp

Or run it directly after publish:

bash
pnpm dlx @microservices-sh/mcp

Or install from Glama:

MCP Client Config

json
{  "mcpServers": {    "microservices": {      "command": "microservices-mcp",      "env": {        "MICROSERVICES_API_URL": "https://api.microservices.sh",        "MICROSERVICES_API_KEY": "favored-secret-manager-reference"      }    }  }}

For local development inside this repo:

json
{  "mcpServers": {    "microservices-local": {      "command": "node",      "args": ["/absolute/path/to/mcp/dist/index.js"]    }  }}

Build the local package first:

bash
pnpm build

For agent-oriented one-click install guidance, see llms-install.md.

Tools

Read-only and local planning tools:

  • list_templates
  • inspect_template
  • list_modules
  • inspect_module
  • list_module_docs
  • get_module_doc
  • compose_app
  • validate_config
  • generate_project
  • run_checks
  • plan_add_module
  • check_updates
  • plan_module_upgrade
  • get_secrets_status
  • create_preview_plan

Remote control-plane tools:

  • deploy_preview
  • get_deployment_status

deploy_preview is mutating and requires confirm: "preview". Run create_preview_plan first.

Environment

VariablePurpose
MICROSERVICES_API_URLRemote control-plane URL. Defaults to https://api.microservices.sh.
MICROSERVICES_API_KEYBearer token for remote tools.
MICROSERVICES_TOKENFallback bearer token.

Secret values are never returned by the MCP tools.

Registry Notes

The package is published to npm, listed in the official MCP Registry, and verified by Glama:

The package declares "mcpName": "sh.microservices/mcp" in package.json. Docker/OCI packaging should wrap this same stdio server rather than forking behavior.

來源:README.md,提交 f87778c

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v0.1.3最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分