KosmoKrator

productivity

Gorgias MCP Integration for Vercel AI SDK

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

7 functions 6 read 1 write Bearer token auth

Connect Gorgias 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.

Gorgias MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Gorgias 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.

Gorgias Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__gorgias__gorgias_list_tickets gorgias.gorgias_list_tickets Read List and search support tickets in Gorgias. Filter by status or search by keyword. Returns paginated results with ticket IDs, subjects, and metadata.
integration__gorgias__gorgias_get_ticket gorgias.gorgias_get_ticket Read Get details of a specific Gorgias ticket by ID, including subject, body, status, assignee, and customer information.
integration__gorgias__gorgias_create_ticket gorgias.gorgias_create_ticket Write Create a new support ticket in Gorgias with a subject and body. Optionally specify sender, recipient, channel, and priority.
integration__gorgias__gorgias_list_customers gorgias.gorgias_list_customers Read List and search customers in Gorgias. Filter by search query covering name, email, and other fields. Returns paginated results.
integration__gorgias__gorgias_get_customer gorgias.gorgias_get_customer Read Get details of a specific Gorgias customer by ID, including name, email, and custom fields.
integration__gorgias__gorgias_list_satisfaction_surveys gorgias.gorgias_list_satisfaction_surveys Read List satisfaction survey responses in Gorgias. Optionally filter by ticket ID. Returns paginated results with ratings and feedback.
integration__gorgias__gorgias_get_current_user gorgias.gorgias_get_current_user Read Get the profile of the currently authenticated Gorgias user. Returns name, email, and account details.

Related Gorgias Pages