开发者

MCP

JSON-RPC 2.0 地址为 POST /api/v1/mcp。在设置里签发 Bearer Token。posts:read / posts:write 等范围对 REST 和 MCP 同样生效。Viewer 只能列表;创建、发布、重试和审批仍需 Owner 或 Editor。

curl -X POST https://post.tianjiaji.cc/api/v1/mcp \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

工具

  • list_workspaces

    List workspaces for the current token

  • list_accounts

    List social accounts in a workspace

  • list_posts

    List posts; optional from, to, status, tag, q

  • create_post

    Create a draft or scheduled post

  • publish_post

    Publish a post immediately via Fake/adapters

  • retry_post

    Retry a failed post

  • list_failed_posts

    List failed posts in a workspace

  • list_attempts

    List publish attempt logs

  • submit_approval

    Send a post for team approval

  • list_approvals

    List approval requests

  • review_approval

    Approve or reject a pending post

  • duplicate_post

    Copy a post as a new draft

  • update_post

    Update draft, scheduled, or failed post text/schedule/tags

  • delete_post

    Delete a draft, scheduled, or failed post

  • preview_post

    Validate text against platform character limits

  • export_posts

    Export posts as CSV text

  • list_comments

    List workspace comments

  • sync_comments

    Pull sandbox or live comments into the inbox

  • get_analytics

    Workspace analytics summary

  • list_media

    List media library items

设置 · REST