microservices.sh

v0.1.3
sh.microservices/mcp Checked 9 hours ago Published 5 months ago

MCP 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.

ParameterTypeDescription
templateId *stringTemplate 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.

ParameterTypeDescription
moduleId *stringModule 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.

ParameterTypeDescription
moduleId *stringModule 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.

ParameterTypeDescription
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
templateIdstringTemplate 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.

ParameterTypeDescription
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
templateIdstringTemplate 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.

ParameterTypeDescription
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
templateIdstringTemplate 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.

ParameterTypeDescription
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
templateIdstringTemplate 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.

ParameterTypeDescription
lockobjectOptional existing microservices.lock.json content used to calculate a safe add plan.
moduleIdstringModule id or module@version selector to add, for example payment or booking@0.1.0.
versionstringOptional 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.

ParameterTypeDescription
lockobjectOptional 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.

ParameterTypeDescription
lockobjectOptional existing microservices.lock.json content used to calculate upgrade impact.
moduleIdstringModule id or module@version selector to upgrade, for example auth or payment@0.1.0.
tostringOptional target version. Omit to let the planner choose the latest known version.
versionstringOptional 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.

ParameterTypeDescription
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
templateIdstringTemplate 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.

ParameterTypeDescription
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modestringDeployment topology mode: embedded for one Worker app, service for separated service modules.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
templateIdstringTemplate 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.

ParameterTypeDescription
confirm *stringRequired literal confirmation for this mutating preview-deployment tool.
actorstringActor label for audit logs, such as the agent, user, or workflow initiating the preview.
apiKeystringOptional API key for the control plane. Prefer MICROSERVICES_API_KEY or MICROSERVICES_TOKEN in the environment.
apiUrlstringOptional control-plane URL. Defaults to MICROSERVICES_API_URL or https://api.microservices.sh.
configobjectTemplate configuration overrides for generated source, runtime bindings, or module-specific settings.
modulesarrayOptional microservices.sh module ids to include, such as auth, booking, customer, payment, files, or audit-log.
namestringProject or deployment display name recorded in the preview deployment request.
templateIdstringTemplate 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.

ParameterTypeDescription
deploymentId *stringDeployment id returned by deploy_preview or the microservices.sh control plane.
apiKeystringOptional API key for the control plane. Prefer MICROSERVICES_API_KEY or MICROSERVICES_TOKEN in the environment.
apiUrlstringOptional control-plane URL. Defaults to MICROSERVICES_API_URL or https://api.microservices.sh.