What problem does it solve?
This Skill helps you develop, deploy, and troubleshoot CloudBase Event Functions and HTTP Functions so your application runtime logic runs correctly in the CloudBase environment.
Core Features & Use Cases
- Event vs HTTP Function authoring: Choose the correct programming model for SDK/timer-driven code (
exports.main(event, context)) or for web endpoints (web server on port 9000).
- HTTP Function runtime correctness: Ensure
scf_bootstrap is present and matches the configured Node.js runtime, with explicit response handling and CORS support.
- Operational workflows: Create/update function code and configuration using the preferred MCP tools, inspect logs, and set gateway exposure and security rules when needed.
Use Cases
- Implement event-driven backend logic using Event Functions (e.g., processing messages or scheduled jobs).
- Create browser-facing APIs or SSE/WebSocket-like services using HTTP Functions with correct server runtime behavior.
- Diagnose production issues by checking function logs and adjusting environment variables and gateway/security configuration safely.
Quick Start
Ask: create a CloudBase HTTP Function endpoint that listens on port 9000, includes CORS, returns a JSON health response at /health, and show how to deploy it and then verify it with a test request.