La interfaz está localizada; las descripciones y documentos de las Skills se traducen automáticamente con IA a su idioma. El código, los comandos, rutas y términos técnicos se mantienen en el original, y prevalece el documento del autor.
Explorar Skills
Diseño y creatividad · SKILL.md

frontmcp-production-readiness

frontmcp-production-readiness

Pre-production audit, hardening, and go-live checklists for FrontMCP servers. Use before shipping to verify security hardening, performance, reliability, and observability, and for target-specific production checklists: Node server (Docker, graceful shutdown, Redis session scaling), Vercel and edge (cold-start, stateless design), AWS Lambda (cold start, sca…

Independent GitHub snapshot · Automated classification · Original documentation governs

Aagentfront / frontmcpApache-2.0

Documentación de la Skill

GitHub

name: frontmcp-production-readiness description: 'Pre-production audit, hardening, and go-live checklists for FrontMCP servers. Use before shipping to verify security hardening, performance, reliability, and observability, and for target-specific production checklists: Node server (Docker, graceful shutdown, Redis session scaling), Vercel and edge (cold-start, stateless design), AWS Lambda (cold start, scaling, monitoring), Cloudflare Workers (KV, Durable Objects, runtime limits), CLI binary and local daemon (stdio and socket transport), browser SDK bundle, and embedded npm SDK. Also configuring /healthz and /readyz health and readiness endpoints with custom probes, and distributed high-availability (multi-pod heartbeat, session takeover, notification relay). Triggers: production ready, security audit, hardening, performance check, production checklist, go live, pre-launch review.' tags: [production, security, performance, reliability, observability, audit, best-practices] category: production targets: [all] bundle: [recommended, full] priority: 10 visibility: both license: Apache-2.0 metadata: docs: https://frontmcp.dev/reference/deployment/production-build

FrontMCP Production Readiness Audit

Router for production readiness checklists. Start with the common checklist (security, performance, reliability, observability), then follow the target-specific checklist for your deployment environment.

When to Use This Skill

Must Use

  • Before deploying a FrontMCP server to production for the first time
  • After major feature additions or architectural changes
  • During security reviews or compliance audits

Recommended

  • As part of PR reviews for infrastructure-touching changes
  • Quarterly health checks on production deployments
  • When switching deployment targets

Skip When

  • Building a prototype or proof-of-concept
  • Running in development/local mode only

Decision: Use this skill when preparing for production. Start with common-checklist, then pick your deployment target.

Prerequisites

  • A deployable FrontMCP project (build target chosen, see frontmcp-deployment).
  • Observability and structured logging available (see frontmcp-observability) — production hardening assumes you can see what the server is doing.
  • A staging environment matching production target (Node, Vercel, Lambda, Cloudflare, CLI, browser) to validate the checklist before go-live.

Steps

Step 1: Detect Deployment Target

Check the project to determine the deployment target:

  1. Look at package.json scripts for frontmcp build --target <target>
  2. Check for target-specific files: ci/Dockerfile (node), vercel.json (vercel), wrangler.toml (cloudflare), ci/template.yaml (lambda)
  3. Check if the build target is cli or browser in the build config
  4. If unclear, ask the user which environment they're deploying to

Step 2: Run Common Checklist

Always start with the common checklist — it covers security, performance, reliability, and observability that apply to every target.

Step 3: Run Target-Specific Checklist

After the common checklist, run the checklist for your deployment target.

Scenario Routing Table

ScenarioReferenceDescription
Common security, performance, reliability, observabilityreferences/common-checklist.mdApplies to ALL targets — run this first
Health & readiness endpoints (/healthz, /readyz)references/health-readiness-endpoints.mdCustom probes, Kubernetes, runtime-aware readiness
Standalone Node.js server with Dockerreferences/production-node-server.mdDocker, health checks, Redis, scaling, CI/CD
Node.js SDK / direct client (npm package)references/production-node-sdk.mdcreate()/connect() API, disposal, npm publishing
Vercel serverless / edgereferences/production-vercel.mdVercel config, edge runtime, cold starts, Vercel KV
Cloudflare Workersreferences/production-cloudflare.mdWrangler, Workers runtime, KV, Durable Objects
AWS Lambdareferences/production-lambda.mdSAM template, cold starts, DynamoDB, API Gateway
CLI daemon (local MCP server)references/production-cli-daemon.mdProcess manager, socket files, service registration
CLI binary (one-shot execution)references/production-cli-binary.mdFast startup, stdio transport, exit codes, npm bin
Browser SDKreferences/production-browser.mdBundle size, browser APIs, CSP, CDN distribution

Quick Reference: Target Detection

File / Signal FoundTarget
ci/Dockerfile or ci/docker-compose.ymlStandalone server → production-node-server.md
serve: false or create() API usageSDK / direct client → production-node-sdk.md
vercel.jsonVercel → production-vercel.md
wrangler.tomlCloudflare → production-cloudflare.md
ci/template.yamlLambda → production-lambda.md
frontmcp start / socket / service install usageCLI daemon → production-cli-daemon.md
build --target cli + bin in package.jsonCLI binary → production-cli-binary.md
build --target browser in scriptsBrowser → production-browser.md

Common Patterns

PatternCorrectIncorrectWhy
Checklist orderCommon checklist first, target-specific secondSkip straight to vendor checklistCommon items (auth, rate limits, observability) gate all targets
StorageRedis / Vercel KV in productionIn-memory session/elicitation storesMemory stores reset on every cold start and don't span replicas
Health checks/healthz (liveness) + /readyz (readiness) endpointsSingle /health endpoint that always returns 200Kubernetes/load balancers need separate liveness vs readiness signals
Secret loadingRead from env vars (process.env.X)Hardcode tokens / paste into configHardcoded secrets leak via the build artefact and source control
Build verificationRun frontmcp doctor + smoke test against built artefactTrust local dev mode behaviourProduction targets (Vercel, Lambda, Cloudflare, browser) have different runtimes

Troubleshooting

ProblemCauseSolution
Sessions disappear after a deployMemory session store on a stateless platformSwitch to Redis / Vercel KV; see setup-redis and configure-session
Liveness probe passes while requests fail/healthz doesn't exercise the request pathAdd /readyz that checks dependencies (DB, Redis, downstream APIs); see health-readiness-endpoints
Cold-start latency above SLAHeavy provider construction at request timeConstruct shared clients in module scope or onInit; see production-vercel / production-lambda
Rate-limit exceeded under normal loadGlobal throttle too tight, no per-tool overridesTune throttle.requestsPerSecond; add per-tool overrides; see configure-throttle
frontmcp doctor flags missing observabilityObservability disabled or not wiredSet observability: true in @FrontMcp and configure a sink; see frontmcp-observability
Browser build exceeds bundle budgetServer-only deps imported into the browser entrySplit entries; gate Node-only imports behind availableWhen.platform; see production-browser

Verification Checklist

After completing both common and target-specific checklists:

  1. Run frontmcp doctor to check project configuration
  2. Run frontmcp test to ensure all tests pass
  3. Run frontmcp build to verify production build succeeds
  4. Deploy to staging and run E2E tests against it
  5. Review logs for any warnings or errors during startup
  6. Update README for the deployment target (see frontmcp-setup → references/readme-guide.md)

Examples

Each reference has matching examples under examples/<reference>/:

common-checklist

ExampleLevelDescription
caching-and-performanceAdvancedShows how to configure caching with TTL, optimize responses, and manage memory with proper provider lifecycle cleanup.
observability-setupIntermediateShows how to configure structured logging, error handling with MCP error codes, and monitoring integration for production.
security-hardeningBasicShows how to configure authentication, CORS, input validation, and rate limiting for a production FrontMCP server.

production-browser

ExampleLevelDescription
browser-bundle-configBasicShows how to configure package.json for browser-compatible SDK distribution with ESM/CJS/UMD entry points, TypeScript declarations, and CDN support.
cross-platform-cryptoIntermediateShows how to use @frontmcp/utils for cross-platform crypto operations that work in both browser and Node.js, and how to avoid Node.js-only APIs.
security-and-performanceAdvancedShows how to ensure no secrets are bundled in browser code, configure CSP headers on the server, optimize bundle size, and avoid blocking the main thread.

production-cli-binary

ExampleLevelDescription
binary-build-configBasicShows how to configure a FrontMCP CLI binary with correct package.json bin field, shebang, stdio transport, and npm distribution settings.
stdio-transport-error-handlingIntermediateShows how to handle stdin/stdout transport correctly, implement proper exit codes, and handle edge cases like EOF and broken pipes.

production-cli-daemon

ExampleLevelDescription
daemon-socket-configBasicShows how to configure a FrontMCP server as a long-running local daemon with Unix socket transport, process management, and SQLite storage.
graceful-shutdown-cleanupIntermediateShows how to implement graceful shutdown for a daemon process, including completing in-flight requests, closing database connections, removing the socket file, and cleaning up the PID file.
security-and-permissionsAdvancedShows how to secure a local daemon with restrictive socket permissions, XDG-compliant config storage, and file-based secret management.

production-cloudflare

ExampleLevelDescription
durable-objects-stateAdvancedShows how to use Cloudflare Durable Objects for stateful coordination alongside the stateless Workers runtime, with KV for cache and R2 for blob storage.
workers-runtime-constraintsIntermediateShows how to write tools that are compatible with the Cloudflare Workers runtime: no Node.js APIs, no eval, only async I/O, and using Web APIs.
wrangler-configBasicShows how to configure wrangler.toml with correct routes, KV bindings for session storage, and secret management for a FrontMCP Cloudflare Worker.

production-lambda

ExampleLevelDescription
cold-start-connection-reuseIntermediateShows how to minimize Lambda cold starts with lazy initialization, tree-shaking, and the connection reuse pattern for external services.
sam-templateBasicShows a complete SAM/CloudFormation template for deploying a FrontMCP server to AWS Lambda with API Gateway routing, DynamoDB for session storage, and proper environment configuration.
scaling-and-monitoringAdvancedShows how to configure concurrency limits, dead letter queues, provisioned concurrency, and CloudWatch alarms for a production Lambda deployment.

production-node-sdk

ExampleLevelDescription
basic-sdk-lifecycleBasicShows the complete lifecycle of a FrontMCP SDK package used as an embedded client: initialization, tool invocation, and proper cleanup.
multi-instance-cleanupAdvancedShows how multiple SDK instances can coexist without conflicts, and how to implement proper cleanup to prevent memory leaks from event listeners, timers, and provider resources.
package-json-configIntermediateShows the correct package.json configuration for publishing a FrontMCP SDK package with CJS + ESM entry points, peer dependencies, and proper file inclusions.

production-node-server

ExampleLevelDescription
docker-multi-stageBasicShows a production-ready Dockerfile with multi-stage build, non-root user, and container health check for a FrontMCP Node.js server.
graceful-shutdownIntermediateShows how to implement graceful shutdown with SIGTERM handling, in-flight request draining, and health check status transitions.
redis-session-scalingAdvancedShows how to configure Redis-backed session storage, connection pooling, and stateless server design for horizontal scaling behind a load balancer.

production-vercel

ExampleLevelDescription
cold-start-optimizationIntermediateShows how to minimize cold start time by lazy-loading dependencies, avoiding heavy initialization at module scope, and caching expensive operations.
stateless-serverless-designAdvancedShows a fully stateless server design that works on Vercel edge runtime with no Node.js-only APIs, using @frontmcp/utils for cross-platform crypto.
vercel-edge-configBasicShows how to configure a FrontMCP server for Vercel deployment with Vercel KV for session storage and correct route configuration.

health-readiness-endpoints

ExampleLevelDescription
basic-health-setupBasicDefault health endpoints with Redis session store, showing /healthz and /readyz responses.
custom-probesIntermediateCustom database and API probes with Kubernetes deployment configuration.

distributed-ha

ExampleLevelDescription
ha-kubernetes-3-replicasIntermediateDeploy FrontMCP with 3 replicas, Redis, and automatic session failover on Kubernetes

Accessing This Skill

Skills are distributed as plain SKILL.md files plus a sibling references/ and examples/ tree, so consumers can pick whichever access mode fits:

ModeHow it works
FilesystemRead libs/skills/catalog/frontmcp-production-readiness/ directly from a clone of the catalog repo, or from a published @frontmcp/skills install. SKILL.md is the entry point.
frontmcp CLIfrontmcp skills list, frontmcp skills read frontmcp-production-readiness, frontmcp skills read frontmcp-production-readiness:references/<file>.md, frontmcp skills install frontmcp-production-readiness — no server required.
MCP skill://When a developer mounts this skill into their own FrontMCP server (@FrontMcp({ skills: [...] })), the SDK exposes it via SEP-2640 resources: skill://frontmcp-production-readiness/SKILL.md, skill://frontmcp-production-readiness/references/{file}.md, etc. The server’s skill://index.json returns the SEP-2640 discovery document for everything mounted on it.

The catalog itself is not an MCP server. The skill:// URIs only resolve when a server has been configured to host this skill.

Reference

  • Production Build
  • Related skills: frontmcp-config, frontmcp-deployment, frontmcp-testing, frontmcp-setup, frontmcp-observability
Skills guardadas