KosmoKrator

productivity

Lokalise MCP Integration for Vercel AI SDK

Connect Lokalise to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API token auth

Connect Lokalise to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Lokalise MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-lokalise": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=lokalise",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=lokalise --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Lokalise instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Lokalise Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Lokalise integration catalog.

MCP toolSource functionTypeDescription
integration__lokalise__lokalise_list_projects lokalise.lokalise_list_projects Read List Lokalise projects. Returns project IDs, names, languages, and other metadata. Supports pagination.
integration__lokalise__lokalise_get_project lokalise.lokalise_get_project Read Get details of a specific Lokalise project. Returns project name, description, languages, statistics, and settings.
integration__lokalise__lokalise_list_keys lokalise.lokalise_list_keys Read List translation keys in a Lokalise project. Returns key IDs, names, platforms, and other metadata. Supports pagination.
integration__lokalise__lokalise_get_key lokalise.lokalise_get_key Read Get details of a specific translation key in a Lokalise project. Returns key name, platforms, translations, and other metadata.
integration__lokalise__lokalise_create_key lokalise.lokalise_create_key Write Create a new translation key in a Lokalise project. The key name and optional translations for each language can be provided.
integration__lokalise__lokalise_list_translations lokalise.lokalise_list_translations Read List translations in a Lokalise project. Returns translation values, language codes, and key references. Supports pagination.
integration__lokalise__lokalise_get_current_user lokalise.lokalise_get_current_user Read Get the currently authenticated Lokalise user. Returns user email, name, and account details.

Related Lokalise Pages