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 分