Sign in

MCP

Model Context Protocol

Connect Cursor, Claude, or any MCP client to Duskly over HTTP. Auth is the same workspace API token (dk_ from Settings → API tokens). Tools call the same workspace data as the REST API. No second data model.

Endpoint

https://api.duskly.site/mcp (self-host: your API origin + /mcp).

Transport: JSON-RPC over HTTP (Streamable HTTP–compatible). Send Authorization: Bearer dk_…. Requests without a valid token return 401. The token is already workspace-scoped — MCP tools do not take a workspace id. If you also call REST routes that require one, copy Workspace ID from Settings.

Tools

  • list_channels

    List connected social accounts for this token.

  • schedule_post

    Create a scheduled post. Args: body, channelIds, scheduledAt (ISO-8601 or unix ms).

  • list_posts

    List recent posts (optional limit, default 20, max 50).

  • channel_rules

    Posting rules for Instagram, Facebook Stories, X, LinkedIn, YouTube, repeat series, and short links.

  • generate_image

    Make a picture from a prompt and save it in the media library. Arg: prompt.

  • generate_video

    Make a short clip from a prompt and save it in the media library. Args: prompt, optional durationSec (6 or 8).

Cursor config

Add a remote MCP server that posts JSON-RPC to the URL above with your Bearer token. After connect, call tools/list then tools/call.