KosmoKrator

data

Fauna MCP, CLI, and Lua Integration for AI Agents

Fauna integration docs for AI agents: MCP gateway setup, Fauna CLI commands, Lua API reference, credentials, and function schemas.

Fauna for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
fauna.fauna_list_databases Read read 0 List all databases in the current Fauna context. Returns database names and their metadata including creation time and references.
fauna.fauna_get_database Read read 1 Get details of a specific Fauna database by name. Returns database metadata including name, reference, creation time, and configured options.
fauna.fauna_create_database Write write 3 Create a new Fauna database. Provide a database name and optional configuration. Requires a server or admin key. Returns the created database metadata.
fauna.fauna_query_fql action action 1 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.
fauna.fauna_list_collections Read read 0 List all collections in the current Fauna database. Returns collection names and their metadata including references and creation time.
fauna.fauna_get_collection Read read 1 Get details of a specific Fauna collection by name. Returns collection metadata including name, reference, creation time, and configured options.
fauna.fauna_get_current_user Read read 0 Get the current authenticated Fauna key identity. Verifies the configured bearer token and returns the associated key identity information.