data
Fauna MCP Integration for OpenAI Agents SDK
Connect Fauna to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Fauna 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.
Fauna MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-fauna": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=fauna",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=fauna --write=deny Why Use KosmoKrator Here
Expose only Fauna instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Fauna Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Fauna integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__fauna__fauna_list_databases | fauna.fauna_list_databases | Read | List all databases in the current Fauna context. Returns database names and their metadata including creation time and references. |
integration__fauna__fauna_get_database | fauna.fauna_get_database | Read | Get details of a specific Fauna database by name. Returns database metadata including name, reference, creation time, and configured options. |
integration__fauna__fauna_create_database | fauna.fauna_create_database | Write | Create a new Fauna database. Provide a database name and optional configuration. Requires a server or admin key. Returns the created database metadata. |
integration__fauna__fauna_query_fql | fauna.fauna_query_fql | action | Execute a Fauna Query Language (FQL) expression. Provide the query as a JSON-encoded FQL expression. Supports all FQL operations including document reads, writes, indexes, and complex queries. |
integration__fauna__fauna_list_collections | fauna.fauna_list_collections | Read | List all collections in the current Fauna database. Returns collection names and their metadata including references and creation time. |
integration__fauna__fauna_get_collection | fauna.fauna_get_collection | Read | Get details of a specific Fauna collection by name. Returns collection metadata including name, reference, creation time, and configured options. |
integration__fauna__fauna_get_current_user | fauna.fauna_get_current_user | Read | Get the current authenticated Fauna key identity. Verifies the configured bearer token and returns the associated key identity information. |