KosmoKrator

marketing

Buffer MCP Integration for Vercel AI SDK

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

7 functions 6 read 1 write Manual OAuth token auth

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

Buffer MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Buffer Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__buffer__buffer_list_profiles buffer.buffer_list_profiles Read List all social media profiles connected to the Buffer account. Returns profile IDs, service types (e.g., Twitter, Facebook, LinkedIn), and display names.
integration__buffer__buffer_get_profile buffer.buffer_get_profile Read Get details of a specific social media profile in Buffer by its ID. Returns profile service type, display name, and account metadata.
integration__buffer__buffer_list_pending_updates buffer.buffer_list_pending_updates Read List scheduled (pending) updates for a Buffer profile. Returns update IDs, text content, scheduled times, and status. Supports pagination.
integration__buffer__buffer_create_update buffer.buffer_create_update Write Create and schedule a new social media update in Buffer. Provide the text content, target profile IDs, and optionally a scheduled time or media attachments.
integration__buffer__buffer_list_sent_updates buffer.buffer_list_sent_updates Read List already posted (sent) updates for a Buffer profile. Returns update IDs, text content, sent times, and engagement metrics. Supports pagination.
integration__buffer__buffer_get_update buffer.buffer_get_update Read Get details of a specific Buffer update by its ID. Returns the update text, scheduled or sent time, social profiles, media, and delivery status.
integration__buffer__buffer_get_current_user buffer.buffer_get_current_user Read Get the currently authenticated Buffer user profile. Returns the user name, email, and account info.

Related Buffer Pages