KosmoKrator

productivity

Fly.io MCP Integration for Vercel AI SDK

Connect Fly.io to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect Fly.io to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Fly.io MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-fly-io": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=fly-io",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=fly-io --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Fly.io instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Fly.io Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Fly.io integration catalog.

MCP toolSource functionTypeDescription
integration__fly_io__fly_io_list_apps fly-io.fly_io_list_apps Read List all Fly.io apps in the organization. Returns app names, IDs, status, and network details.
integration__fly_io__fly_io_get_app fly-io.fly_io_get_app Read Get details for a specific Fly.io app, including status, network, and machine count.
integration__fly_io__fly_io_create_app fly-io.fly_io_create_app Write Create a new Fly.io app. Requires an app name and optionally an organization ID.
integration__fly_io__fly_io_list_machines fly-io.fly_io_list_machines Read List all machines for a Fly.io app. Returns machine IDs, state, region, and configuration.
integration__fly_io__fly_io_get_machine fly-io.fly_io_get_machine Read Get details for a specific Fly.io machine, including its state, config, and region.
integration__fly_io__fly_io_list_volumes fly-io.fly_io_list_volumes Read List all persistent volumes for a Fly.io app. Returns volume IDs, name, size, and region.
integration__fly_io__fly_io_get_current_user fly-io.fly_io_get_current_user Read Get the current authenticated Fly.io user information, including email and account details.

Related Fly.io Pages