KosmoKrator

other

Firebase MCP Integration for OpenAI Agents SDK

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

7 functions 7 read 0 write Manual OAuth token auth

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

Firebase MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Firebase Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__firebase__firebase_list_projects firebase.firebase_list_projects Read List all Firebase projects the caller has access to. Returns project display names and IDs.
integration__firebase__firebase_get_project firebase.firebase_get_project Read Get details of a specific Firebase project by its resource name.
integration__firebase__firebase_list_databases firebase.firebase_list_databases Read List Cloud Firestore databases in a Firebase project.
integration__firebase__firebase_list_documents firebase.firebase_list_documents Read List documents in a Firestore collection.
integration__firebase__firebase_list_collections firebase.firebase_list_collections Read List collection IDs under a Firestore document or database root.
integration__firebase__firebase_list_users firebase.firebase_list_users Read List users in a Firebase project via the Identity Toolkit API.
integration__firebase__firebase_get_current_user firebase.firebase_get_current_user Read Get the currently authenticated OAuth2 user profile information.

Related Firebase Pages