data
Typesense MCP Integration for OpenAI Agents SDK
Connect Typesense to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Typesense 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.
Typesense MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-typesense": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=typesense",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=typesense --write=deny Why Use KosmoKrator Here
Expose only Typesense 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.
Typesense Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Typesense integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__typesense__typesense_list_collections | typesense.typesense_list_collections | Read | List all collections in the Typesense search instance. Returns collection names, document counts, and schema details. |
integration__typesense__typesense_get_collection | typesense.typesense_get_collection | Read | Get details of a specific Typesense collection by name, including its schema, field definitions, and document count. |
integration__typesense__typesense_create_collection | typesense.typesense_create_collection | Write | Create a new collection in Typesense with a specified schema including field definitions and optional default sorting field. |
integration__typesense__typesense_search_documents | typesense.typesense_search_documents | Read | Search for documents in a Typesense collection. Supports full-text search, filtering, sorting, and pagination. |
integration__typesense__typesense_index_document | typesense.typesense_index_document | Write | Index (create or update) a document in a Typesense collection. The document must conform to the collection's schema. |
integration__typesense__typesense_get_document | typesense.typesense_get_document | Read | Retrieve a single document from a Typesense collection by its ID. |
integration__typesense__typesense_get_health | typesense.typesense_get_health | Read | Check the health status of the Typesense search instance. Returns whether the service is reachable and healthy. |