npx skills add https://github.com/openai/skills --skill render-deployRender 支持 Git 驱动 服务和 预构建 Docker 镜像 服务。
此技能涵盖 Git 驱动 流程:
蓝图也可以通过使用 runtime: image 来运行 预构建的 Docker 镜像,但 render.yaml 仍然必须存在于 Git 仓库中。
如果没有 Git 远程仓库,请停止并询问用户:
sandbox_permissions=require_escalated 重新运行。当用户想要以下操作时激活此技能:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在深入分析之前使用此简短提示序列以减少摩擦:
然后继续执行下面的适当方法。
Git 仓库路径: 蓝图和直接创建都需要。仓库必须推送到 GitHub、GitLab 或 Bitbucket。
预构建 Docker 镜像路径: Render 通过基于镜像的服务支持。MCP 不 支持此路径;请使用仪表板/API。询问:
如果用户选择 Docker 镜像,请引导他们进入 Render 仪表板的镜像部署流程,或要求他们添加一个 Git 远程仓库(以便您可以使用带有 runtime: image 的蓝图)。
两种方法都需要一个推送到 GitHub、GitLab 或 Bitbucket 的 Git 仓库。(如果使用 runtime: image,仓库可以是最简化的,只包含 render.yaml。)
| 方法 | 最适合 | 优点 |
|---|---|---|
| 蓝图 | 多服务应用,IaC 工作流 | 版本控制,可重现,支持复杂设置 |
| 直接创建 | 单一服务,快速部署 | 即时创建,无需 render.yaml 文件 |
除非用户请求特定方法,否则默认使用此决策规则。首先分析代码库;只有在部署意图不明确(例如,数据库、工作进程、定时任务)时才询问。
当以下条件全部为真时,使用直接创建(MCP):
当以下条件任一为真时,使用蓝图:
如果不确定,请快速询问一个澄清性问题,但为了安全起见,默认使用蓝图。对于单一服务,强烈建议通过 MCP 进行直接创建,并在需要时引导 MCP 设置。
开始部署时,按顺序验证这些要求:
1. 确认源路径(Git 与 Docker)
如果使用基于 Git 的方法(蓝图或直接创建),仓库必须推送到 GitHub/GitLab/Bitbucket。引用预构建镜像的蓝图仍然需要一个包含 render.yaml 的 Git 仓库。
git remote -v
2. 检查 MCP 工具可用性(单服务首选)
MCP 工具提供最佳体验。通过尝试以下操作检查是否可用:
list_services()
如果 MCP 工具可用,您可以跳过大多数操作的 CLI 安装。
3. 检查 Render CLI 安装(用于蓝图验证)
render --version
如果未安装,提供安装选项:
brew install rendercurl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh4. MCP 设置(如果 MCP 未配置)
如果 list_services() 因 MCP 未配置而失败,询问他们是否希望设置 MCP(首选)或继续使用 CLI 回退方案。如果他们选择 MCP,询问他们正在使用哪个 AI 工具,然后提供以下匹配的说明。始终使用他们的 API 密钥。
引导用户完成以下步骤:
https://dashboard.render.com/u/*/settings#api-keys
~/.cursor/mcp.json(替换 <YOUR_API_KEY>):{
"mcpServers": {
"render": {
"url": "https://mcp.render.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}
3. 重启 Cursor,然后重试 list_services()。
引导用户完成以下步骤:
https://dashboard.render.com/u/*/settings#api-keys
<YOUR_API_KEY>):claude mcp add --transport http render https://mcp.render.com/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
list_services()。引导用户完成以下步骤:
https://dashboard.render.com/u/*/settings#api-keys
export RENDER_API_KEY="<YOUR_API_KEY>"
codex mcp add render --url https://mcp.render.com/mcp --bearer-token-env-var RENDER_API_KEY
list_services()。如果用户使用其他 AI 应用,请引导他们查阅该工具的 Render MCP 文档以获取设置步骤和安装方法。
配置 MCP 后,让用户通过类似以下的提示设置活动的 Render 工作区:
Set my Render workspace to [WORKSPACE_NAME]
5. 检查认证(仅限 CLI 回退)
如果 MCP 不可用,请改用 CLI 并验证您可以访问您的账户:
# 检查用户是否已登录(使用 -o json 以非交互模式运行)
render whoami -o json
如果 render whoami 失败或返回空数据,则 CLI 未认证。CLI 不会总是自动提示,因此请明确提示用户进行认证:
如果两者都未配置,询问用户他们更喜欢哪种方法:
export RENDER_API_KEY="rnd_xxxxx"(从 https://dashboard.render.com/u/*/settings#api-keys 获取)render login(打开浏览器进行 OAuth 认证)6. 检查工作区上下文
验证活动工作区:
get_selected_workspace()
或通过 CLI:
render workspace current -o json
列出可用工作区:
list_workspaces()
如果用户需要切换工作区,他们必须通过仪表板或 CLI(render workspace set)进行操作。
一旦满足先决条件,即可继续执行部署工作流。
分析代码库以确定框架/运行时、构建和启动命令、所需环境变量、数据存储和端口绑定。使用 references/codebase-analysis.md 中的详细检查清单。
按照蓝图规范创建 render.yaml 蓝图文件。
关键点:
plan: freesync: false 标记密钥(用户在仪表板中填写这些)web、worker、cron、static 或 pserv基本结构:
services:
- type: web
name: my-app
runtime: node
plan: free
buildCommand: npm ci
startCommand: npm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: postgres
property: connectionString
- key: JWT_SECRET
sync: false # 用户在仪表板中填写
databases:
- name: postgres
databaseName: myapp_db
plan: free
服务类型:
web:HTTP 服务、API、Web 应用程序(可公开访问)worker:后台作业处理器(不可公开访问)cron:按 cron 计划运行的定时任务static:静态站点(通过 CDN 提供服务的 HTML/CSS/JS)pserv:私有服务(仅限内部,在同一账户内)服务类型详情:references/service-types.md 运行时选项:references/runtimes.md 模板示例:assets/
创建 render.yaml 后,始终给用户一个简短、明确的检查清单,并在 CLI 可用时立即运行验证:
render whoami -o json(如果未登录,运行 render login 或设置 RENDER_API_KEY)render blueprints validate
* 如果 CLI 未安装,提供安装命令。git add render.yaml && git commit -m "Add Render deployment configuration" && git push origin mainsync: false 的环境变量验证 render.yaml 文件,以便在部署前捕获错误。如果 CLI 已安装,直接运行命令;仅在 CLI 缺失时提示用户:
render whoami -o json # 确保 CLI 已认证(不会总是提示)
render blueprints validate
在继续之前修复任何验证错误。常见问题:
name、type、runtime)重要: 您必须在部署之前将 render.yaml 文件合并到您的仓库中。
确保 render.yaml 文件已提交并推送到您的 Git 远程仓库:
git add render.yaml
git commit -m "Add Render deployment configuration"
git push origin main
如果还没有 Git 远程仓库,请在此处停止,并引导用户创建一个 GitHub/GitLab/Bitbucket 仓库,将其添加为 origin,并在继续之前推送。
为什么这很重要: 仪表板深度链接将从您的仓库读取 render.yaml。如果文件未合并和推送,Render 将找不到配置,部署将失败。
在继续下一步之前,验证文件是否在您的远程仓库中。
获取 Git 仓库 URL:
git remote get-url origin
这将返回来自您的 Git 提供商的 URL。如果 URL 是 SSH 格式,请将其转换为 HTTPS:
| SSH 格式 | HTTPS 格式 |
|---|---|
git@github.com:user/repo.git | https://github.com/user/repo |
git@gitlab.com:user/repo.git | https://gitlab.com/user/repo |
git@bitbucket.org:user/repo.git | https://bitbucket.org/user/repo |
转换模式: 将 git@<host>: 替换为 https://<host>/ 并移除 .git 后缀。
使用 HTTPS 仓库 URL 格式化仪表板深度链接:
https://dashboard.render.com/blueprint/new?repo=<REPOSITORY_URL>
示例:
https://dashboard.render.com/blueprint/new?repo=https://github.com/username/repo-name
关键: 确保用户在点击深度链接之前已将 render.yaml 文件合并并推送到其仓库。如果文件不在仓库中,Render 无法读取蓝图配置,部署将失败。
向用户提供深度链接及以下说明:
sync: false 的变量)部署将自动开始。用户可以在 Render 仪表板中监控进度。
用户通过仪表板部署后,验证一切是否正常。
通过 MCP 检查部署状态:
list_deploys(serviceId: "<service-id>", limit: 1)
查找 status: "live" 以确认部署成功。
检查运行时错误(部署后等待 2-3 分钟):
list_logs(resource: ["<service-id>"], level: ["error"], limit: 20)
检查服务健康指标:
get_metrics(
resourceId: "<service-id>",
metricTypes: ["http_request_count", "cpu_usage", "memory_usage"]
)
如果发现错误,请继续下面的 部署后验证和基本故障排查 部分。
对于无需基础设施即代码的简单部署,通过 MCP 工具直接创建服务。
仓库必须推送到 Git 提供商。 Render 会克隆您的仓库以构建和部署服务。
git remote -v # 验证远程仓库存在
git push origin main # 确保代码已推送
支持的提供商:GitHub、GitLab、Bitbucket
如果不存在远程仓库,请停止并询问用户创建/推送一个远程仓库或切换到 Docker 镜像部署。
注意: MCP 不支持创建基于镜像的服务。对于预构建的 Docker 镜像部署,请使用仪表板/API。
使用以下简洁步骤,并参考 references/direct-creation.md 获取完整的 MCP 命令示例和后续配置。
使用 references/codebase-analysis.md 来确定运行时、构建/启动命令、环境变量和数据存储。
创建服务(web 或 static)以及任何所需的数据库或键值存储。参见 references/direct-creation.md。
如果 MCP 返回关于缺少 Git 凭据或仓库访问权限的错误,请停止并引导用户在 Render 仪表板中连接其 Git 提供商,然后重试。
创建后通过 MCP 添加所需的环境变量。参见 references/direct-creation.md。
提醒用户,如果他们不希望通过 MCP 传递密钥,可以在仪表板中设置密钥。
检查部署状态、日志和指标。参见 references/direct-creation.md。
有关服务发现、配置详情、快速命令和常见问题,请参阅 references/deployment-details.md。
保持简短且可重复。如果任何检查失败,请在重新部署之前修复它。
live 状态并正在服务流量0.0.0.0:$PORT)详细检查清单和命令:references/post-deploy-checks.md
如果服务无法启动或健康检查超时,请使用基本故障排查指南:references/troubleshooting-basics.md
如果部署因网络问题(超时、DNS 错误、连接重置)而失败,请使用提升的权限重新运行部署(使用 sandbox_permissions=require_escalated)。当沙盒网络阻止出站请求时,部署需要提升的网络访问权限。
给用户的示例指导:
The deploy needs escalated network access to deploy to Render. I can rerun the command with escalated permissions—want me to proceed?
可选:如果您需要更深入的诊断(指标/数据库检查/错误目录),建议安装 render-debug 技能。核心部署流程不需要它。
每周安装数
413
仓库
GitHub 星标数
15.3K
首次出现
2026年2月1日
安全审计
安装于
codex366
opencode353
gemini-cli345
github-copilot335
cursor328
amp321
Render supports Git-backed services and prebuilt Docker image services.
This skill covers Git-backed flows:
Blueprints can also run a prebuilt Docker image by using runtime: image, but the render.yaml still must live in a Git repo.
If there is no Git remote, stop and ask the user to either:
sandbox_permissions=require_escalated.Activate this skill when users want to:
Use this short prompt sequence before deep analysis to reduce friction:
Then proceed with the appropriate method below.
Git Repo Path: Required for both Blueprint and Direct Creation. The repo must be pushed to GitHub, GitLab, or Bitbucket.
Prebuilt Docker Image Path: Supported by Render via image-backed services. This is not supported by MCP; use the Dashboard/API. Ask for:
If the user chooses a Docker image, guide them to the Render Dashboard image deploy flow or ask them to add a Git remote (so you can use a Blueprint with runtime: image).
Both methods require a Git repository pushed to GitHub, GitLab, or Bitbucket. (If using runtime: image, the repo can be minimal and only contain render.yaml.)
| Method | Best For | Pros |
|---|---|---|
| Blueprint | Multi-service apps, IaC workflows | Version controlled, reproducible, supports complex setups |
| Direct Creation | Single services, quick deployments | Instant creation, no render.yaml file needed |
Use this decision rule by default unless the user requests a specific method. Analyze the codebase first; only ask if deployment intent is unclear (e.g., DB, workers, cron).
Use Direct Creation (MCP) when ALL are true:
Use Blueprint when ANY are true:
If unsure, ask a quick clarifying question, but default to Blueprint for safety. For a single service, strongly prefer Direct Creation via MCP and guide MCP setup if needed.
When starting a deployment, verify these requirements in order:
1. Confirm Source Path (Git vs Docker)
If using Git-based methods (Blueprint or Direct Creation), the repo must be pushed to GitHub/GitLab/Bitbucket. Blueprints that reference a prebuilt image still require a Git repo with render.yaml.
git remote -v
2. Check MCP Tools Availability (Preferred for Single-Service)
MCP tools provide the best experience. Check if available by attempting:
list_services()
If MCP tools are available, you can skip CLI installation for most operations.
3. Check Render CLI Installation (for Blueprint validation)
render --version
If not installed, offer to install:
brew install rendercurl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh4. MCP Setup (if MCP isn't configured)
If list_services() fails because MCP isn't configured, ask whether they want to set up MCP (preferred) or continue with the CLI fallback. If they choose MCP, ask which AI tool they're using, then provide the matching instructions below. Always use their API key.
Walk the user through these steps:
https://dashboard.render.com/u/*/settings#api-keys
~/.cursor/mcp.json (replace <YOUR_API_KEY>):{
"mcpServers": {
"render": {
"url": "https://mcp.render.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}
3. Restart Cursor, then retry list_services().
Walk the user through these steps:
https://dashboard.render.com/u/*/settings#api-keys
<YOUR_API_KEY>):claude mcp add --transport http render https://mcp.render.com/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
list_services().Walk the user through these steps:
https://dashboard.render.com/u/*/settings#api-keys
export RENDER_API_KEY="<YOUR_API_KEY>"
codex mcp add render --url https://mcp.render.com/mcp --bearer-token-env-var RENDER_API_KEY
list_services().If the user is on another AI app, direct them to the Render MCP docs for that tool's setup steps and install method.
After MCP is configured, have the user set the active Render workspace with a prompt like:
Set my Render workspace to [WORKSPACE_NAME]
5. Check Authentication (CLI fallback only)
If MCP isn't available, use the CLI instead and verify you can access your account:
# Check if user is logged in (use -o json for non-interactive mode)
render whoami -o json
If render whoami fails or returns empty data, the CLI is not authenticated. The CLI won't always prompt automatically, so explicitly prompt the user to authenticate:
If neither is configured, ask user which method they prefer:
export RENDER_API_KEY="rnd_xxxxx" (Get from https://dashboard.render.com/u/*/settings#api-keys)render login (Opens browser for OAuth)6. Check Workspace Context
Verify the active workspace:
get_selected_workspace()
Or via CLI:
render workspace current -o json
To list available workspaces:
list_workspaces()
If user needs to switch workspaces, they must do so via Dashboard or CLI (render workspace set).
Once prerequisites are met, proceed with deployment workflow.
Analyze the codebase to determine framework/runtime, build and start commands, required env vars, datastores, and port binding. Use the detailed checklists in references/codebase-analysis.md.
Create a render.yaml Blueprint file following the Blueprint specification.
Complete specification: references/blueprint-spec.md
Key Points:
plan: free unless user specifies otherwisesync: false (user fills these in Dashboard)web, worker, cron, static, or pservBasic Structure:
services:
- type: web
name: my-app
runtime: node
plan: free
buildCommand: npm ci
startCommand: npm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: postgres
property: connectionString
- key: JWT_SECRET
sync: false # User fills in Dashboard
databases:
- name: postgres
databaseName: myapp_db
plan: free
Service Types:
web: HTTP services, APIs, web applications (publicly accessible)worker: Background job processors (not publicly accessible)cron: Scheduled tasks that run on a cron schedulestatic: Static sites (HTML/CSS/JS served via CDN)pserv: Private services (internal only, within same account)Service type details: references/service-types.md Runtime options: references/runtimes.md Template examples: assets/
After creating render.yaml, always give the user a short, explicit checklist and run validation immediately when the CLI is available:
render whoami -o json (if not logged in, run render login or set RENDER_API_KEY)render blueprints validate
git add render.yaml && git commit -m "Add Render deployment configuration" && git push origin mainsync: falseValidate the render.yaml file to catch errors before deployment. If the CLI is installed, run the commands directly; only prompt the user if the CLI is missing:
render whoami -o json # Ensure CLI is authenticated (won't always prompt)
render blueprints validate
Fix any validation errors before proceeding. Common issues:
name, type, runtime)Configuration guide: references/configuration-guide.md
IMPORTANT: You must merge the render.yaml file into your repository before deploying.
Ensure the render.yaml file is committed and pushed to your Git remote:
git add render.yaml
git commit -m "Add Render deployment configuration"
git push origin main
If there is no Git remote yet, stop here and guide the user to create a GitHub/GitLab/Bitbucket repo, add it as origin, and push before continuing.
Why this matters: The Dashboard deeplink will read the render.yaml from your repository. If the file isn't merged and pushed, Render won't find the configuration and deployment will fail.
Verify the file is in your remote repository before proceeding to the next step.
Get the Git repository URL:
git remote get-url origin
This will return a URL from your Git provider. If the URL is SSH format, convert it to HTTPS:
| SSH Format | HTTPS Format |
|---|---|
git@github.com:user/repo.git | https://github.com/user/repo |
git@gitlab.com:user/repo.git | https://gitlab.com/user/repo |
git@bitbucket.org:user/repo.git | https://bitbucket.org/user/repo |
Conversion pattern: Replace git@<host>: with https://<host>/ and remove .git suffix.
Format the Dashboard deeplink using the HTTPS repository URL:
https://dashboard.render.com/blueprint/new?repo=<REPOSITORY_URL>
Example:
https://dashboard.render.com/blueprint/new?repo=https://github.com/username/repo-name
CRITICAL: Ensure the user has merged and pushed the render.yaml file to their repository before clicking the deeplink. If the file isn't in the repository, Render cannot read the Blueprint configuration and deployment will fail.
Provide the deeplink to the user with these instructions:
sync: false)The deployment will begin automatically. Users can monitor progress in the Render Dashboard.
After the user deploys via Dashboard, verify everything is working.
Check deployment status via MCP:
list_deploys(serviceId: "<service-id>", limit: 1)
Look for status: "live" to confirm successful deployment.
Check for runtime errors (wait 2-3 minutes after deploy):
list_logs(resource: ["<service-id>"], level: ["error"], limit: 20)
Check service health metrics:
get_metrics(
resourceId: "<service-id>",
metricTypes: ["http_request_count", "cpu_usage", "memory_usage"]
)
If errors are found, proceed to the Post-deploy verification and basic triage section below.
For simple deployments without Infrastructure-as-Code, create services directly via MCP tools.
Repository must be pushed to a Git provider. Render clones your repository to build and deploy services.
git remote -v # Verify remote exists
git push origin main # Ensure code is pushed
Supported providers: GitHub, GitLab, Bitbucket
If no remote exists, stop and ask the user to create/push a remote or switch to Docker image deploy.
Note: MCP does not support creating image-backed services. Use the Dashboard/API for prebuilt Docker image deploys.
Use the concise steps below, and refer to references/direct-creation.md for full MCP command examples and follow-on configuration.
Use references/codebase-analysis.md to determine runtime, build/start commands, env vars, and datastores.
Create the service (web or static) and any required databases or key-value stores. See references/direct-creation.md.
If MCP returns an error about missing Git credentials or repo access, stop and guide the user to connect their Git provider in the Render Dashboard, then retry.
Add required env vars via MCP after creation. See references/direct-creation.md.
Remind the user that secrets can be set in the Dashboard if they prefer not to pass them via MCP.
Check deploy status, logs, and metrics. See references/direct-creation.md.
For service discovery, configuration details, quick commands, and common issues, see references/deployment-details.md.
Keep this short and repeatable. If any check fails, fix it before redeploying.
live and serving traffic0.0.0.0:$PORT)Detailed checklist and commands: references/post-deploy-checks.md
If the service fails to start or health checks time out, use the basic triage guide: references/troubleshooting-basics.md
If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the deploy with escalated permissions (use sandbox_permissions=require_escalated). The deploy requires escalated network access when sandbox networking blocks outbound requests.
Example guidance to the user:
The deploy needs escalated network access to deploy to Render. I can rerun the command with escalated permissions—want me to proceed?
Optional: If you need deeper diagnostics (metrics/DB checks/error catalog), suggest installing the render-debug skill. It is not required for the core deploy flow.
Weekly Installs
413
Repository
GitHub Stars
15.3K
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
codex366
opencode353
gemini-cli345
github-copilot335
cursor328
amp321