microservices.sh
v0.1.3MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_templates List Templates
List available microservices.sh app templates, including template ids and summaries. Use this before inspect_template, compose_app, generate_project, or run_checks when choosing a foundation for a new Cloudflare app.
inspect_template Inspect Template
Inspect one app template contract, including supported modules, default configuration, runtime metadata, and generation behavior. Use this before composing or generating a project from a specific template id.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template id returned by list_templates, for example booking-sveltekit. |
list_modules List Modules
List available verified microservices.sh modules with ids, categories, summaries, versions, and maturity status. Use this to discover production building blocks before inspect_module, compose_app, or plan_add_module.
inspect_module Inspect Module
Inspect one module contract in detail, including permissions, hooks, events, resources, storage needs, and customization points. Use this before editing or adding a module so the agent understands the module boundaries.
| Parameter | Type | Description |
|---|---|---|
moduleId * | string | Module id returned by list_modules, for example auth, booking, customer, payment, files, or audit-log. |
list_module_docs List Module Docs
List LLM-readable documentation pages available for module implementation guidance. Use this to discover local docs before get_module_doc or before changing generated source.
get_module_doc Get Module Doc
Return an LLM-readable documentation page for a module, including rules, implementation notes, and agent guidance. Use this before coding against a module contract.
| Parameter | Type | Description |
|---|---|---|
moduleId * | string | Module id whose documentation should be returned, for example booking or payment. |
compose_app Compose App
Compose a template and selected modules into a checked app contract and lockfile plan without writing files. Use this to preview the exact app composition before generate_project or deployment planning.
| Parameter | Type | Description |
|---|---|---|
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
validate_config Validate Config
Validate a template, module list, and configuration object before generation or deployment. Use this to catch unsupported modules, missing settings, and invalid config before side effects.
| Parameter | Type | Description |
|---|---|---|
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
generate_project Generate Project
Generate project source files in memory for agent inspection. This tool does not write files; use it to review planned source, docs, migrations, and config before creating or editing a local project.
| Parameter | Type | Description |
|---|---|---|
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
run_checks Run Checks
Run local contract and readiness checks for a template/module composition. Use this before deployment planning to verify module compatibility, generated artifacts, and operational guardrails.
| Parameter | Type | Description |
|---|---|---|
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
plan_add_module Plan Add Module
Plan an approval-gated module addition against an optional existing microservices.lock.json. This tool reports intended lockfile changes and required review gates without writing files.
| Parameter | Type | Description |
|---|---|---|
lock | object | Optional existing microservices.lock.json content used to calculate a safe add plan. |
moduleId | string | Module id or module@version selector to add, for example payment or booking@0.1.0. |
version | string | Optional explicit target version when moduleId does not include @version. |
check_updates Check Updates
Check locked module versions against the bundled registry snapshot. Use this to identify available module updates before plan_module_upgrade.
| Parameter | Type | Description |
|---|---|---|
lock | object | Optional existing microservices.lock.json content to compare against known module versions. |
plan_module_upgrade Plan Module Upgrade
Plan a module version change and report approval gates, compatibility notes, and lockfile impact. Use this before applying a module upgrade.
| Parameter | Type | Description |
|---|---|---|
lock | object | Optional existing microservices.lock.json content used to calculate upgrade impact. |
moduleId | string | Module id or module@version selector to upgrade, for example auth or payment@0.1.0. |
to | string | Optional target version. Omit to let the planner choose the latest known version. |
version | string | Optional current version when it is not available from the lockfile. |
get_secrets_status Get Secrets Status
Report required secret names and configured/missing status for a template/module composition without exposing secret values. Use this before deployment planning or remote preview deploys.
| Parameter | Type | Description |
|---|---|---|
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
create_preview_plan Create Preview Plan
Create a local preview-deployment readiness plan without mutating remote state. Use this before deploy_preview to review resources, checks, errors, warnings, and required approval steps.
| Parameter | Type | Description |
|---|---|---|
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
mode | string | Deployment topology mode: embedded for one Worker app, service for separated service modules. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
deploy_preview Deploy Preview
Prepare a remote preview deployment through the microservices.sh control plane. This is a mutating tool and requires confirm: preview; call create_preview_plan first and only proceed after human review.
| Parameter | Type | Description |
|---|---|---|
confirm * | string | Required literal confirmation for this mutating preview-deployment tool. |
actor | string | Actor label for audit logs, such as the agent, user, or workflow initiating the preview. |
apiKey | string | Optional API key for the control plane. Prefer MICROSERVICES_API_KEY or MICROSERVICES_TOKEN in the environment. |
apiUrl | string | Optional control-plane URL. Defaults to MICROSERVICES_API_URL or https://api.microservices.sh. |
config | object | Template configuration overrides for generated source, runtime bindings, or module-specific settings. |
modules | array | Optional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log. |
name | string | Project or deployment display name recorded in the preview deployment request. |
templateId | string | Template id to use for app composition. Omit to use the registry default template. |
get_deployment_status Get Deployment Status
Read a remote preview deployment status from the microservices.sh control plane. Use this after deploy_preview to poll status, inspect errors, or retrieve deployment metadata.
| Parameter | Type | Description |
|---|---|---|
deploymentId * | string | Deployment id returned by deploy_preview or the microservices.sh control plane. |
apiKey | string | Optional API key for the control plane. Prefer MICROSERVICES_API_KEY or MICROSERVICES_TOKEN in the environment. |
apiUrl | string | Optional control-plane URL. Defaults to MICROSERVICES_API_URL or https://api.microservices.sh. |