KosmoKrator

other

Appwrite MCP Integration for OpenAI Agents SDK

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

7 functions 6 read 1 write API key auth

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

Appwrite MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Appwrite Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__appwrite__appwrite_list_databases appwrite.appwrite_list_databases Read List all databases in the Appwrite project. Returns database IDs and names.
integration__appwrite__appwrite_get_database appwrite.appwrite_get_database Read Get details of a specific Appwrite database by its ID.
integration__appwrite__appwrite_list_collections appwrite.appwrite_list_collections Read List all collections in an Appwrite database. Returns collection IDs and names.
integration__appwrite__appwrite_list_documents appwrite.appwrite_list_documents Read List documents in an Appwrite collection. Returns document data and metadata.
integration__appwrite__appwrite_get_document appwrite.appwrite_get_document Read Get a single document from an Appwrite collection by its ID.
integration__appwrite__appwrite_create_document appwrite.appwrite_create_document Write Create a new document in an Appwrite collection.
integration__appwrite__appwrite_get_current_user appwrite.appwrite_get_current_user Read Get the currently authenticated Appwrite user account information.

Related Appwrite Pages