KosmoKrator

sales

Avalara MCP Integration for Vercel AI SDK

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

Avalara MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Avalara Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__avalara__avalara_list_transactions avalara.avalara_list_transactions Read List transactions from Avalara. Supports filtering by date, status, and other criteria with pagination.
integration__avalara__avalara_get_transaction avalara.avalara_get_transaction Read Retrieve details of a single transaction in Avalara by its ID.
integration__avalara__avalara_create_transaction avalara.avalara_create_transaction Write Create a new transaction (sales order or invoice) in Avalara for tax calculation. Requires company code, transaction type, date, and line items.
integration__avalara__avalara_list_companies avalara.avalara_list_companies Read List companies configured in your Avalara account. Supports filtering and pagination.
integration__avalara__avalara_get_company avalara.avalara_get_company Read Retrieve details of a single company configured in Avalara by its ID.
integration__avalara__avalara_list_tax_codes avalara.avalara_list_tax_codes Read List tax codes available in Avalara. Tax codes classify products and services for tax purposes. Supports filtering and pagination.
integration__avalara__avalara_get_current_user avalara.avalara_get_current_user Read Retrieve the current authenticated Avalara user information.

Related Avalara Pages