KosmoKrator

data

Typesense MCP Gateway for AI Agents

Expose Typesense tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

Typesense MCP Gateway

Expose Typesense to MCP clients with `kosmokrator mcp:serve --integration=typesense`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server.

Install KosmoKrator
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
Install gateway entry
kosmokrator mcp:gateway:install --integration=typesense --write=deny --json
MCP configuration
{
  "mcpServers": {
    "kosmokrator-typesense": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=typesense",
        "--write=deny"
      ]
    }
  }
}
Serve manually
kosmokrator mcp:serve --integration=typesense --write=deny

Client Notes

Use one scoped MCP gateway entry, then adapt the config location to the client or framework.

Claude Code Connect local KosmoKrator integrations to Claude Code through one scoped MCP gateway entry. Claude Code can launch the local kosmo binary directly from the project MCP config.
Cursor Expose selected local integrations to Cursor through KosmoKrator without configuring each service as its own MCP server. Use the same KosmoKrator install and integration credentials that power terminal and headless runs.
Codex Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy. Keep write access denied or ask-based unless the workspace is trusted.
OpenAI Agents SDK Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway. Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
Claude Agent SDK Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server. Use a narrow integration list so the agent does not load unrelated tools.
Vercel AI SDK Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts. Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
LangChain Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls. Keep the gateway scoped to the integration and operation class needed by the chain.
LangGraph Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions. Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
CrewAI Expose KosmoKrator integrations to CrewAI workers as scoped local tools. Use per-worker integration scopes to avoid giving every worker every tool.
Generic MCP Clients Connect any stdio-compatible MCP client to local KosmoKrator integration tools. Start with read-only write policy and expand only for trusted projects.

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names.

MCP toolSource functionType
integration__typesense__typesense_clear_cache typesense.typesense_clear_cache Write write
integration__typesense__typesense_compact_db typesense.typesense_compact_db Write write
integration__typesense__typesense_create_analytics_event typesense.typesense_create_analytics_event Write write
integration__typesense__typesense_create_analytics_rule typesense.typesense_create_analytics_rule Write write
integration__typesense__typesense_create_collection typesense.typesense_create_collection Write write
integration__typesense__typesense_create_conversation_model typesense.typesense_create_conversation_model Write write
integration__typesense__typesense_create_key typesense.typesense_create_key Write write
integration__typesense__typesense_create_n_l_search_model typesense.typesense_create_n_l_search_model Write write
integration__typesense__typesense_debug typesense.typesense_debug Read read
integration__typesense__typesense_delete_alias typesense.typesense_delete_alias Write write
integration__typesense__typesense_delete_analytics_rule typesense.typesense_delete_analytics_rule Write write
integration__typesense__typesense_delete_collection typesense.typesense_delete_collection Write write
integration__typesense__typesense_delete_conversation_model typesense.typesense_delete_conversation_model Write write
integration__typesense__typesense_delete_curation_set typesense.typesense_delete_curation_set Write write
integration__typesense__typesense_delete_curation_set_item typesense.typesense_delete_curation_set_item Write write
integration__typesense__typesense_delete_document typesense.typesense_delete_document Write write
integration__typesense__typesense_delete_documents typesense.typesense_delete_documents Write write
integration__typesense__typesense_delete_key typesense.typesense_delete_key Write write
integration__typesense__typesense_delete_n_l_search_model typesense.typesense_delete_n_l_search_model Write write
integration__typesense__typesense_delete_preset typesense.typesense_delete_preset Write write
integration__typesense__typesense_delete_stopwords_set typesense.typesense_delete_stopwords_set Write write
integration__typesense__typesense_delete_synonym_set typesense.typesense_delete_synonym_set Write write
integration__typesense__typesense_delete_synonym_set_item typesense.typesense_delete_synonym_set_item Write write
integration__typesense__typesense_export_documents typesense.typesense_export_documents Read read
integration__typesense__typesense_flush_analytics typesense.typesense_flush_analytics Write write
integration__typesense__typesense_get_alias typesense.typesense_get_alias Read read
integration__typesense__typesense_get_aliases typesense.typesense_get_aliases Read read
integration__typesense__typesense_get_analytics_events typesense.typesense_get_analytics_events Read read
integration__typesense__typesense_get_analytics_status typesense.typesense_get_analytics_status Read read
integration__typesense__typesense_get_collection typesense.typesense_get_collection Read read
integration__typesense__typesense_get_document typesense.typesense_get_document Read read
integration__typesense__typesense_get_health typesense.typesense_get_health Read read
integration__typesense__typesense_get_key typesense.typesense_get_key Read read
integration__typesense__typesense_get_keys typesense.typesense_get_keys Read read
integration__typesense__typesense_get_schema_changes typesense.typesense_get_schema_changes Read read
integration__typesense__typesense_get_stemming_dictionary typesense.typesense_get_stemming_dictionary Read read
integration__typesense__typesense_import_documents typesense.typesense_import_documents Write write
integration__typesense__typesense_import_stemming_dictionary typesense.typesense_import_stemming_dictionary Write write
integration__typesense__typesense_index_document typesense.typesense_index_document Write write
integration__typesense__typesense_list_collections typesense.typesense_list_collections Read read
integration__typesense__typesense_list_stemming_dictionaries typesense.typesense_list_stemming_dictionaries Read read
integration__typesense__typesense_multi_search typesense.typesense_multi_search Write write
integration__typesense__typesense_retrieve_a_p_i_stats typesense.typesense_retrieve_a_p_i_stats Read read
integration__typesense__typesense_retrieve_all_conversation_models typesense.typesense_retrieve_all_conversation_models Read read
integration__typesense__typesense_retrieve_all_n_l_search_models typesense.typesense_retrieve_all_n_l_search_models Read read
integration__typesense__typesense_retrieve_all_presets typesense.typesense_retrieve_all_presets Read read
integration__typesense__typesense_retrieve_analytics_rule typesense.typesense_retrieve_analytics_rule Read read
integration__typesense__typesense_retrieve_analytics_rules typesense.typesense_retrieve_analytics_rules Read read
integration__typesense__typesense_retrieve_conversation_model typesense.typesense_retrieve_conversation_model Read read
integration__typesense__typesense_retrieve_curation_set typesense.typesense_retrieve_curation_set Read read
integration__typesense__typesense_retrieve_curation_set_item typesense.typesense_retrieve_curation_set_item Read read
integration__typesense__typesense_retrieve_curation_set_items typesense.typesense_retrieve_curation_set_items Read read
integration__typesense__typesense_retrieve_curation_sets typesense.typesense_retrieve_curation_sets Read read
integration__typesense__typesense_retrieve_metrics typesense.typesense_retrieve_metrics Read read
integration__typesense__typesense_retrieve_n_l_search_model typesense.typesense_retrieve_n_l_search_model Read read
integration__typesense__typesense_retrieve_preset typesense.typesense_retrieve_preset Read read
integration__typesense__typesense_retrieve_stopwords_set typesense.typesense_retrieve_stopwords_set Read read
integration__typesense__typesense_retrieve_stopwords_sets typesense.typesense_retrieve_stopwords_sets Read read
integration__typesense__typesense_retrieve_synonym_set typesense.typesense_retrieve_synonym_set Read read
integration__typesense__typesense_retrieve_synonym_set_item typesense.typesense_retrieve_synonym_set_item Read read
integration__typesense__typesense_retrieve_synonym_set_items typesense.typesense_retrieve_synonym_set_items Read read
integration__typesense__typesense_retrieve_synonym_sets typesense.typesense_retrieve_synonym_sets Read read
integration__typesense__typesense_search_documents typesense.typesense_search_documents Read read
integration__typesense__typesense_take_snapshot typesense.typesense_take_snapshot Write write
integration__typesense__typesense_toggle_slow_request_log typesense.typesense_toggle_slow_request_log Write write
integration__typesense__typesense_update_collection typesense.typesense_update_collection Write write
integration__typesense__typesense_update_conversation_model typesense.typesense_update_conversation_model Write write
integration__typesense__typesense_update_document typesense.typesense_update_document Write write
integration__typesense__typesense_update_documents typesense.typesense_update_documents Write write
integration__typesense__typesense_update_n_l_search_model typesense.typesense_update_n_l_search_model Write write
integration__typesense__typesense_upsert_alias typesense.typesense_upsert_alias Write write
integration__typesense__typesense_upsert_analytics_rule typesense.typesense_upsert_analytics_rule Write write
integration__typesense__typesense_upsert_curation_set typesense.typesense_upsert_curation_set Write write
integration__typesense__typesense_upsert_curation_set_item typesense.typesense_upsert_curation_set_item Write write
integration__typesense__typesense_upsert_preset typesense.typesense_upsert_preset Write write
integration__typesense__typesense_upsert_stopwords_set typesense.typesense_upsert_stopwords_set Write write
integration__typesense__typesense_upsert_synonym_set typesense.typesense_upsert_synonym_set Write write
integration__typesense__typesense_upsert_synonym_set_item typesense.typesense_upsert_synonym_set_item Write write
integration__typesense__typesense_vote typesense.typesense_vote Write write

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.