摘要
让你的 AI 检查和操作你的 Render 服务:服务、部署、日志、指标、事件、任务、自定义域名以及 Postgres 和 Key Value 实例,并在你确认后部署、回滚、重启、暂停或恢复服务。
引导式设置
2 分钟将 Render 连接到 Microsoft Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Render,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Render 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Render、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Render + Microsoft Copilot
让你的 AI 检查和操作你的 Render 服务:服务、部署、日志、指标、事件、任务、自定义域名以及 Postgres 和 Key Value 实例,并在你确认后部署、回滚、重启、暂停或恢复服务。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
RENDER_API_KEY
步骤 1 — 获取凭证
- 登录 Render Dashboard:
https://dashboard.render.com。 - 打开 Account Settings → API Keys,点击 Create API Key。为它命名并复制密钥:密钥以
rnd_开头。 - 按 Render 显示的原样把它粘贴到
RENDER_API_KEY,不要加 Bearer 一词,然后安装连接器。密钥只会发送到 api.render.com。 - 先用
render_get_current_user,再用render_list_workspaces检查设置。
谁能看到什么:Render API 密钥在你所属的每个工作区中都拥有你的全部权限;Render 没有只读密钥。请只把 MCP 服务器分享给可以部署的人。如需只读使用,请关闭下面列出的写入工具。
会改动正在运行的服务,所以 AI 会先问你:render_trigger_deploy 构建并部署一个新版本(分支的最新提交、指定的提交或镜像),构建成功后即上线。render_rollback_deploy 让较早的某次部署重新上线;自动部署仍然开启,因此下一次推送到该分支可能会把改动带回来。render_cancel_deploy 停止仍在构建或更新中的部署,当前版本继续运行。render_restart_service 重启所有实例,因此请求可能会短暂失败。render_suspend_service 停止服务:在恢复之前它不再处理任何流量。render_resume_service 重新启动服务,并重新开始计费。render_create_job 在你的线上环境中运行一次性命令,例如数据库迁移;它可能修改数据,并按秒计费。每次调用前,AI 都会告诉你涉及的服务和将会发生的具体操作,并等你同意。
安装时默认关闭:render_get_env_var_value 会以明文返回某个环境变量的值(通常是数据库 URL 或 API 密钥)。只有在 AI 确实需要某个值时才开启它;render_list_env_var_keys 只显示变量名。Postgres 和 Key Value 工具会显示状态、套餐、区域、版本等信息,但绝不返回连接字符串或密码。本连接器无法删除服务、数据库、域名或变量。
使用方法:render_list_workspaces 给出工作区 ID(tea-... 或 usr-...),render_list_services 给出服务 ID(srv-...,cron 任务为 crn-...);render_get_service 显示分支、自动部署、套餐以及构建和启动命令。部署失败时,AI 使用 render_list_deploys(按状态筛选,例如 build_failed)、render_get_deploy 和 render_list_events。日志来自 render_list_logs,以工作区 ID 作为 owner_id、服务 ID 作为 resource;可按类型 build 查看构建输出,也可按级别 error、文本或 HTTP 状态码(例如 5*)筛选。render_get_metrics 读取 CPU、内存、HTTP 请求数、HTTP 延迟、带宽、实例数、磁盘用量或活动连接数。数据存储:render_list_postgres、render_get_postgres、render_list_key_value 和 render_get_key_value。域名和任务:render_list_custom_domains、render_list_jobs 和 render_get_job(任务的输出在日志中,以任务 ID 作为 resource)。render_list_projects 显示服务如何按项目和环境分组。
时间使用 UTC 的 ISO 8601 格式,例如 2026-10-15T08:00:00Z。日志和指标默认覆盖最近一小时;如果日志结果中有 hasMore,AI 会用 nextStartTime 和 nextEndTime 继续读取。
常见错误:401:API 密钥错误或已被撤销;请在 Account Settings → API Keys 中新建一个。403:密钥有效,但其用户无权在该工作区执行此操作。404:ID 错误,或资源位于密钥无法访问的工作区。429:已达到速率限制;请稍候重试。
该连接器不能创建、修改或删除服务、数据库、环境组、域名和环境变量,也不涉及扩缩容、Blueprint 和 Webhook。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Microsoft Copilot 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。
- 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
- 填写 Server name(例如
AnythingMCP)、说明连接器用途的 Server description,以及 Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。 - 身份验证选择 API key,把 Type 设为 Header,请求头名称填
X-API-Key,然后选择 Create。 - 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
- 在智能体的 Test 窗格中试一试:提出需要用到
Render的工具的请求。 - 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。
希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
render_get_current_user | Get the Render user the API key belongs to: id, name and email |
render_list_workspaces | List the workspaces (owners) the API key can reach: id, name, email, type (user or team) and whether two-factor authentication is on |
render_list_projects | List projects, which group services and databases into environments: id, name, workspace and environment ids |
render_list_services | List services: id, name, type (web_service, private_service, background_worker, static_site, cron_job), repository and branch, URL, region… |
render_get_service | Get one service: type, repository, branch, auto deploy, URL, region, plan, runtime, instances, health check path, build and start commands… |
render_list_deploys | List a service's deploys, newest first: id, status (live, build_in_progress, build_failed, update_failed, canceled, deactivated ...)… |
render_get_deploy | Get one deploy: status, trigger, commit id and message, image and start and finish time |
render_trigger_deploy | Start a new deploy of a service: the latest commit of its branch by default, a specific commit, or an image |
render_cancel_deploy | Cancel a deploy that is still building or updating; the service keeps running its current version |
render_rollback_deploy | Roll a service back to an earlier deploy: Render deploys that version again and it goes live |
render_restart_service | Restart all running instances of a service without a new deploy; requests may fail for a moment while instances restart |
render_suspend_service | Suspend a service: it stops running and stops serving traffic (and billing for compute) until resumed |
render_resume_service | Resume a suspended service: Render starts it again and it serves traffic and is billed |
render_list_env_var_keys | List the names of a service's environment variables |
render_get_env_var_value | Read the value of ONE environment variable of a service in plain text |
render_list_custom_domains | List a service's custom domains: id, name, type (apex or subdomain), verification status, redirect target and creation time |
render_list_jobs | List one-off jobs run on a service: id, start command, plan, status (pending, running, succeeded, failed, canceled) and times |
render_get_job | Get one job: start command, plan, status and times |
render_create_job | Run a one-off job: a command executed once in a new instance built from the service's latest successful build, with its environment, for… |
render_list_logs | Read logs of services, jobs, cron jobs, Postgres or Key Value instances in a time range (default the last hour), newest first by default… |
render_get_metrics | Read a metric as time series for a service, Postgres or Key Value instance over a time range (default the last hour): CPU, memory, HTTP… |
render_list_events | List a service's recent events: deploys started and ended, builds, restarts, suspensions, autoscaling, server failures and more, each with… |
render_list_postgres | List Render Postgres databases: id, name, status, plan, region, version, database name and user, disk size, high availability, read… |
render_get_postgres | Get one Render Postgres database: status, plan, region, version, database name and user, disk, high availability, replicas, pending… |
render_list_key_value | List Render Key Value (Redis-compatible) instances: id, name, status, plan, region, version, eviction and persistence options and dashboard… |
render_get_key_value | Get one Render Key Value instance: status, plan, region, version, options, IP allow list and pending maintenance |
示例提示
- “本周我们哪些 Render 服务部署失败了?给我看提交和构建日志中的错误。”
- “我们的 api 服务从 UTC 8 点开始返回 5xx 错误。查看最近两小时的请求日志和 HTTP 延迟,告诉我发生了什么变化。”
- “把 checkout 服务回滚到今天之前最后一次上线的部署。先给我看目标部署,回滚前先问我。”
- “在 api 服务上以一次性任务运行 npm run migrate。先告诉我确切的命令和服务,等我同意。”
- “列出我们 Postgres 和 Key Value 实例的状态、套餐和区域,以及 web 服务最近 24 小时的 CPU 和内存。”
FAQ
这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。
我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。
智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。
下一步
这份指南对你有帮助吗?