data
Convex MCP Integration for OpenAI Agents SDK
Connect Convex to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Convex 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.
Convex MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-convex": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=convex",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=convex --write=deny Why Use KosmoKrator Here
Expose only Convex 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.
Convex Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Convex integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__convex__convex_list_tables | convex.convex_list_tables | Read | List all tables in the Convex deployment. |
integration__convex__convex_get_table | convex.convex_get_table | Read | Get metadata and schema for a specific Convex table. |
integration__convex__convex_query_documents | convex.convex_query_documents | Read | Query documents from a Convex table with optional filtering and pagination. |
integration__convex__convex_create_document | convex.convex_create_document | Write | Create a new document in a Convex table. |
integration__convex__convex_update_document | convex.convex_update_document | Write | Update an existing document in a Convex table. |
integration__convex__convex_delete_document | convex.convex_delete_document | Write | Delete a document from a Convex table. |
integration__convex__convex_get_current_user | convex.convex_get_current_user | Read | Get the authenticated Convex user's profile information. Returns account details like name and email. Use this to verify API connectivity. |