KosmoKrator

payments

Stripe Connect MCP Integration for Vercel AI SDK

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

7 functions 7 read 0 write Bearer token auth

Connect Stripe Connect 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.

Stripe Connect MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=stripe-connect --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Stripe Connect 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.

Stripe Connect Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Stripe Connect integration catalog.

MCP toolSource functionTypeDescription
integration__stripe_connect__stripe_connect_list_accounts stripe-connect.stripe_connect_list_accounts Read List Stripe Connect accounts. Returns a paginated list of connected accounts with ID, business type, display name, and email.
integration__stripe_connect__stripe_connect_get_account stripe-connect.stripe_connect_get_account Read Retrieve a Stripe Connect account by ID. Returns full account details including business profile, capabilities, and metadata.
integration__stripe_connect__stripe_connect_list_payouts stripe-connect.stripe_connect_list_payouts Read List Stripe Connect payouts with optional filtering. Supports filtering by status (paid, pending, in_transit, canceled, failed) and arrival date, and pagination with limit.
integration__stripe_connect__stripe_connect_get_payout stripe-connect.stripe_connect_get_payout Read Retrieve a Stripe Connect payout by ID. Returns full payout details including amount, status, arrival date, and destination.
integration__stripe_connect__stripe_connect_list_balances stripe-connect.stripe_connect_list_balances Read List Stripe Connect balance transactions. Returns a paginated list of balance transactions with type, amount, currency, and description.
integration__stripe_connect__stripe_connect_list_capabilities stripe-connect.stripe_connect_list_capabilities Read List Stripe Connect account capabilities. Returns capabilities for a specified connected account, including activation status (active, inactive, pending).
integration__stripe_connect__stripe_connect_get_current_user stripe-connect.stripe_connect_get_current_user Read Get the currently authenticated Stripe Connect user. Returns user profile information including ID, name, and email.

Related Stripe Connect Pages