KosmoKrator

marketing

Tapfiliate MCP Integration for Vercel AI SDK

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

5 functions 4 read 1 write API key auth

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

Tapfiliate MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Tapfiliate Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__tapfiliate__tapfiliate_list_affiliates tapfiliate.tapfiliate_list_affiliates Read List affiliates in your Tapfiliate account. Returns paginated results with affiliate IDs, emails, names, and status.
integration__tapfiliate__tapfiliate_get_affiliate tapfiliate.tapfiliate_get_affiliate Read Get detailed information about a specific affiliate by their ID. Includes email, name, status, and metadata.
integration__tapfiliate__tapfiliate_list_conversions tapfiliate.tapfiliate_list_conversions Read List conversions in your Tapfiliate account. Supports filtering by affiliate, campaign, date range, and status. Results are paginated.
integration__tapfiliate__tapfiliate_create_conversion tapfiliate.tapfiliate_create_conversion Write Create a new conversion in Tapfiliate. Associates a revenue amount with an affiliate using a unique external ID (e.g., order ID or transaction reference).
integration__tapfiliate__tapfiliate_get_current_user tapfiliate.tapfiliate_get_current_user Read Get the currently authenticated Tapfiliate user profile. Useful for verifying API credentials and checking account details.

Related Tapfiliate Pages