KosmoKrator

no-code

Bubble MCP Integration for OpenAI Agents SDK

Connect Bubble to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

5 functions 2 read 3 write API key auth

Connect Bubble to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Bubble MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=bubble --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Bubble 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.

Bubble Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Bubble integration catalog.

MCP toolSource functionTypeDescription
integration__bubble__bubble_list_records bubble.bubble_list_records Read List records from a Bubble data type. Supports filtering with constraints, pagination with limit and cursor. Returns matching records and a remaining count for further pagination.
integration__bubble__bubble_get_record bubble.bubble_get_record Read Get a single record from Bubble by its data type and unique ID. Returns all fields of the record.
integration__bubble__bubble_create_record bubble.bubble_create_record Write Create a new record in a Bubble data type. Provide field names and values as a JSON object. Returns the created record including its generated ID.
integration__bubble__bubble_update_record bubble.bubble_update_record Write Update an existing record in Bubble by its data type and unique ID. Only the fields provided will be changed; other fields remain unchanged. Returns the updated record.
integration__bubble__bubble_delete_record bubble.bubble_delete_record Write Delete a record from Bubble by its data type and unique ID. This action is permanent and cannot be undone.

Related Bubble Pages