Fly.io MCP 与 API 接入

团队应用鉴权:api_key

团队 Fly.io 云应用管理:Apps、Machines、数据卷与 Postgres 集群。

本地 Fly.io MCP 配置

每台设备存放明文密钥

  • 原始 Fly.io Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 Fly.io

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

可以让智能体这样提问

“List the Fly.io apps of our organization.”

## Fly.io apps in acme | App | Machines | Volumes | |---|---|---| | **acme-web** | 3 | 0 | | **acme-api** | 2 | 0 | | **acme-worker** | 1 | 1 | That is 6 Machines across 3 apps, and **acme-worker** is the only one with a volume. Want me to check that all the Machines are running?

apps

“Restart the Machine 148ed599e12e08 of acme-api.”

Done. Machine **148ed599e12e08** of **acme-api** was restarted. - It was stopped with the default signal (SIGTERM), then started again - Fly.io reported no error It may take a few seconds to come back. Want me to check its status?

restart-machine

全部操作(84)

操作价格
GET api.machines.dev/v1/apps

The apps of a Fly.io organization.

自备 Key
GET api.machines.dev/v1/apps/{app_name}

One Fly.io app: its status and its organization.

自备 Key
POST api.machines.dev/v1/apps

Create a Fly.io app.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}

Destroy a Fly.io app, with its Machines and volumes.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/certificates

The TLS certificates of an app's hostnames.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/certificates/{hostname}

One hostname's certificate: its status and the DNS records it needs.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/certificates/acme

Ask for a Let's Encrypt certificate for a hostname of an app.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/check

Check a hostname's DNS again and try to validate its certificate.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/certificates/{hostname}

Remove a hostname and its certificates from an app.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme

Remove a hostname's ACME certificate and keep the hostname.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/custom

Remove a hostname's custom certificate and keep the hostname.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/ip_assignments

The IP addresses assigned to an app.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/ip_assignments

Assign a new IP address to an app.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/ip_assignments/{ip}

Release an IP address of an app.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines

The Machines of a Fly.io app, and what state each is in.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}

One Machine of a Fly.io app: its state, configuration and events.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines

Create a Machine in a Fly.io app, and start it.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}

Replace a Machine's configuration, and restart it with it.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/machines/{machine_id}

Destroy a Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/start

Start a stopped or suspended Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/stop

Stop a running Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/restart

Restart a Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/suspend

Suspend a Machine, keeping its memory.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/signal

Send a Unix signal to a Machine's main process.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/cordon

Cordon a Machine: Fly's proxy stops sending it traffic.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/uncordon

Uncordon a Machine: Fly's proxy sends it traffic again.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/wait

Wait for a Machine to reach a state.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/events

The recent events of a Machine: launches, starts, exits and so on.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/versions

The versions of a Machine's configuration.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/ps

The processes running in a Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/exec

Run a command in a started Machine, and return its output.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/lease

The lease held on a Machine, if any.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/lease

Lock a Machine against changes, for a while.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/lease

Release the lease on a Machine.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/memory

A Machine's memory limit and what is available above it.

自备 Key
PUT api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/memory

Set the memory limit of a running Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/memory/reclaim

Ask a Machine to give back memory.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/metadata

A Machine's metadata: the key-value pairs set on it.

自备 Key
PATCH api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/metadata

Set or remove several metadata keys of a Machine.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}

The value of one metadata key of a Machine.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}

Set one metadata key of a Machine.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}

Remove one metadata key of a Machine.

自备 Key
GET api.machines.dev/v1/orgs/{org_slug}/machines

Every Machine of an organization, across its apps.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/volumes

The volumes of a Fly.io app.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/volumes/{volume_id}

One volume of a Fly.io app: its size, use and the Machine it is attached to.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/volumes

Create a volume for a Fly.io app.

自备 Key
PUT api.machines.dev/v1/apps/{app_name}/volumes/{volume_id}

Change a volume's snapshot settings.

自备 Key
PUT api.machines.dev/v1/apps/{app_name}/volumes/{volume_id}/extend

Make a volume larger.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/volumes/{volume_id}

Destroy a volume, with its data.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/volumes/{volume_id}/snapshots

The snapshots of a volume.

自备 Key
POST api.machines.dev/v1/apps/{app_name}/volumes/{volume_id}/snapshots

Take a snapshot of a volume now.

自备 Key
GET api.machines.dev/v1/orgs/{org_slug}/volumes

Every volume of an organization, across its apps.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/secrets

The names of an app's secrets.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/secrets/{secret_name}

One app secret's digest and dates, not its value.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/secrets/{secret_name}

Delete an app secret.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/secretkeys

The secret keys of an app: the keys it encrypts and signs with.

自备 Key
GET api.machines.dev/v1/apps/{app_name}/secretkeys/{secret_name}

One secret key of an app, without the key itself.

自备 Key
DELETE api.machines.dev/v1/apps/{app_name}/secretkeys/{secret_name}

Delete a secret key of an app.

自备 Key
GET api.machines.dev/v1/platform/regions

The Fly.io regions, and the one nearest the caller.

自备 Key
POST api.machines.dev/v1/platform/placements

Where Fly.io would place Machines, and how many fit in each region.

自备 Key
已展示 60 / 84 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 Fly.io?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 Fly.io 全部 84 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 Fly.io 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 Fly.io 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用