පුරනය වන්නනොමිලේ trial කාලය ආරම්භ කරන්න
easyCoexistence නිල API

Claude Agent SDK agent එකට Instagram, Facebook, TikTok සහ WhatsApp tools දෙන්න

Claude Agent SDK agent එකට Instagram, Facebook, TikTok සහ WhatsApp tools ලැබෙන්නේ easyCoexistence හි MCP server එක mcpServers වලට type http ලෙස, https://easycoexistence.com/api/mcp සහ Bearer header එකේ OAuth access token එක සමඟ එක් කර, පසුව allowedTools හි එහි tools ඉඩ දුන් විට ය. Agent එක posts publish කරයි, schedule කරයි, comments සහ DMs වලට reply කරයි, insights කියවයි, ඒ ඒ network හි official API හරහා, ඔබේ පැත්තෙන් Meta app review හෝ TikTok audit නැතිව.

type: "http"

Streamable HTTP server එකක් code හරහා pass කරන විට mcpServers type එක; JSON config ගොනු streamable-http ද පිළිගනී.

mcp__easycoexistence__

SDK හි mcp__<server>__<tool> සම්මුතියට අනුව මෙම server හි tool නම්වල prefix එක, allowedTools ලියන ආකාරයට.

needs-auth

SDK ට token නැති විට sign-in ඉල්ලන server ට init message මගින් ලැබෙන status; SDK browser එකක් විවෘත නොකරයි.

acceptEdits

MCP tools auto-approve නොකරන permission mode එකක්; ඒ වෙනුවට Anthropic allowedTools නිර්දේශ කරයි.

30 seconds

SDK හි පෙරනිමි MCP connection timeout එක; එය MCP_TIMEOUT environment variable මගින් milliseconds වලින් වැඩි කළ හැක.

60 days

easyCoexistence refresh token එකේ ආයු කාලය; සෑම refresh එකකම 1-hour access token එකක් සමඟ නව refresh token එකක් ලැබේ.

easyCoexistence Agent SDK agent එකකට එක් කරන්නේ කෙසේද?

mcpServers හි එක entry එකකින් සහ allowedTools හි එය call කළ හැකි tools වලින්. ඔබ server ට දෙන key එක, එනම් මෙහි easycoexistence, එක් එක් tool නමේ මැද කොටස බවට පත් වේ: mcp__easycoexistence__publish_tiktok_post, mcp__easycoexistence__reply_to_comment ආදී වශයෙන්. type http මගින් Streamable HTTP transport එක තේරේ, එය easyCoexistence server එක කථා කරයි, සහ headers මගින් OAuth access token එක Bearer token ලෙස ගෙන යයි.

MCP tools වලට Claude call කිරීමට පෙර අවසරය අවශ්‍යයි. allowedTools entry එකක් නැතිව agent එකට easyCoexistence tools පෙනේ, නමුත් ඒවා භාවිතා කළ නොහැක; mcp__easycoexistence__* සියල්ල ඉඩ දෙයි, නම් ලැයිස්තුවක් ඒවාට පමණක් ඉඩ දෙයි. init message එක run ආරම්භයේදී එක් එක් server හි status වාර්තා කරයි, සහ server එකක් ලැබිය නොහැකි විට run එක එම tools නැතිව දිගටම යයි, එබැවින් easyCoexistence needs-auth හෝ failed පෙන්වන විට උදාහරණය නවතී. pending status එක අසාර්ථකත්වයක් නොවේ: server එක තවමත් සම්බන්ධ වෙමින් සිටිය හැක.

TypeScript: the server, three allowed tools and a status check
import { query } from "@anthropic-ai/claude-agent-sdk";

const token = await freshAccessToken(); // your OAuth step: see the next section

for await (const message of query({
  prompt: "Schedule this video as a TikTok post for 9am Lisbon time tomorrow: https://cdn.example.com/launch.mp4",
  options: {
    mcpServers: {
      easycoexistence: {
        type: "http",
        url: "https://easycoexistence.com/api/mcp",
        headers: { Authorization: "Bearer " + token },
      },
    },
    allowedTools: [
      "mcp__easycoexistence__list_social_accounts",
      "mcp__easycoexistence__publish_tiktok_post",
      "mcp__easycoexistence__list_scheduled_posts",
    ],
  },
})) {
  if (message.type === "system" && message.subtype === "init") {
    const ec = message.mcp_servers.find((s) => s.name === "easycoexistence");
    if (ec?.status === "needs-auth" || ec?.status === "failed") {
      throw new Error("easyCoexistence MCP server: " + ec.status);
    }
  }
  if (message.type === "result" && message.subtype === "success") {
    console.log(message.result);
  }
}

SDK browser එකක් විවෘත නොකරන නිසා agent එක sign in වන්නේ කෙසේද?

sign-in ඔබේ application විසින් කරන අතර, agent එකට token එකක් ලැබේ. Agent SDK කිසිදු interactive OAuth flow එකක් run නොකරයි: server එකක් authorization ඉල්ලා token එකක් නොමැති විට, එය needs-auth ලෙස ලකුණු කරයි සහ run එක එම tools නැතිව දිගටම යයි. easyCoexistence හි MCP endpoint එක OAuth 2.1 access tokens පමණක් පිළිගනී, ec_live_ API key එක කිසිවිට නොවේ, එබැවින් එකක් සැපයීමට ක්‍රම දෙකක් ඇත.

server එකක් මත, ඔබේම app එකේ easyCoexistence OAuth flow එක සම්පූර්ණ කරන්න: dynamic client registration, PKCE S256 සහිත ගිණුම් හිමිකරුගේ sign-in, ඉන්පසු https://easycoexistence.com/api/oauth/token වෙතින් tokens. refresh token එක ගබඩා කර, සෑම run එකකට පෙර එය 1-hour access token එකකට හුවමාරු කරන්න; සෑම refresh එකකම නව refresh token එකක් ද ලැබේ, දින 60ක් වලංගුයි, එයද සුරකින්න. ඔබ වැඩ කරන යන්ත්‍රයක, run එකට පෙර claude mcp add සහ පසුව /mcp සමඟ interactive Claude Code session එකකින් server එකට එක් වරක් sign in විය හැක. easyCoexistence හි password වෙනස් කිරීම, reset කිරීම හෝ "අනෙකුත් සියලු උපාංග වලින් ඉවත් වන්න" කිරීම, සම්බන්ධතා දෙකෙන් ඕනෑම එකක් අවසන් කරයි.

Python: a fresh access token before each run
import asyncio
import httpx
from claude_agent_sdk import query, ClaudeAgentOptions, ResultMessage

TOKEN_URL = "https://easycoexistence.com/api/oauth/token"

def fresh_access_token() -> str:
    r = httpx.post(TOKEN_URL, data={
        "grant_type": "refresh_token",
        "refresh_token": load_refresh_token(),  # from your secret store
    })
    r.raise_for_status()
    tokens = r.json()
    save_refresh_token(tokens["refresh_token"])  # a new one each time, valid 60 days
    return tokens["access_token"]  # valid 1 hour

async def main() -> None:
    options = ClaudeAgentOptions(
        mcp_servers={
            "easycoexistence": {
                "type": "http",
                "url": "https://easycoexistence.com/api/mcp",
                "headers": {"Authorization": f"Bearer {fresh_access_token()}"},
            }
        },
        allowed_tools=[
            "mcp__easycoexistence__list_social_accounts",
            "mcp__easycoexistence__list_social_posts",
            "mcp__easycoexistence__get_social_insights",
        ],
    )
    async for message in query(prompt="Compare this week's reach on our Instagram and TikTok accounts.", options=options):
        if isinstance(message, ResultMessage) and message.subtype == "success":
            print(message.result)

asyncio.run(main())

agent එකට භාවිතා කිරීමට ඉඩ දිය යුත්තේ easyCoexistence tools මොනවාද?

එහි කාර්යයට අවශ්‍ය ඒවා, allowedTools හි නම් කර, ඊට වැඩි කිසිවක් නොවේ. Anthropic permission modes වලට වඩා මෙය නිර්දේශ කරයි: acceptEdits MCP tools අනුමත නොකරයි, bypassPermissions ඒවා අනුමත කරයි නමුත් වෙනත් බොහෝ ආරක්ෂක ප්‍රශ්න ද ඉවත් කරයි, disallowedTools tool එක සම්පූර්ණයෙන් ප්‍රතික්ෂේප කරයි. වාර්තා කරන agent එකකට කියවීම් පමණක් අවශ්‍යයි; community agent එකකට replies සහ hiding එකතු වේ; publishing agent එකකට publish tools සහ posts queue එකතු වේ. SDK හි tool search, පෙරනිමියෙන් ක්‍රියාත්මකයි, විශාල tool කට්ටලයක definitions context එකෙන් බැහැර තබයි Claude ඒවා අවශ්‍ය වන තුරු, එය tools 30කට වඩා ඇති server එකට ගැළපේ.

Agent එකට ඔබේ easyCoexistence ගිණුමේ සම්බන්ධ networks සඳහා tools පෙනේ. ඒ එක් එකක් list_social_accounts වෙතින් account_id එකක් ගන්නා බැවින්, කිහිපයක් සම්බන්ධ විට prompt එකේ ගිණුම නම් කරන්න.

list_social_accountsThe connected channels and their health, and each account_id
publish_instagram_postPhotos, carousels of 2 to 10, Reels and Stories, now or with scheduled_at
publish_facebook_postPage posts with text, a link, a photo or a video
publish_tiktok_postVideos of 3 to 600 seconds, or photo posts of 1 to 35 images
list_social_comments, reply_to_commentRead a post's comments and answer in public, or privately on Instagram and Facebook
send_social_dmInstagram Direct or Messenger, to someone who wrote in the last 24 hours
get_social_insightsAccount or post metrics on Instagram, Facebook and TikTok
create_comment_rule, create_automationReplies that keep running on easyCoexistence after the agent stops

නව comment හෝ DM එකක් run එකක් ආරම්භ කරන්නේ කෙසේද?

ඔබේම HTTPS endpoint එක හරහා, මන්ද agent එකක් run වන්නේ ඔබේ කේතය query call කරන විට පමණි. set_social_webhook_destination, හෝ REST API හි PUT /channels/{id}/webhook, Instagram හෝ Facebook ගිණුමක comments, mentions සහ DMs, හෝ TikTok ගිණුමක comments, ඔබේ URL වෙත යොමු කර signing secret එක එක් වරක් ලබා දෙයි. සෑම delivery එකකම X-EC-Signature header එකක් ඇත, එහි t සහ v1 ඇත, v1 යනු timestamp, dot සහ raw body හි HMAC-SHA256 වේ; මිනිත්තු 5ට වඩා පැරණි timestamps ප්‍රතික්ෂේප කරන්න. වහාම 2xx පිළිතුරු දී event එක queue කරන්න, මන්ද relay කළ events එක් වරක් පමණක් යවන අතර, retry නැත සහ පිටපතක් තබා නොගනී.

ඉන්පසු worker එකක් query call කර prompt එකේ event එක සහ පිළිතුරට අවශ්‍ය tools පමණක් දෙයි: reply_to_comment, හෝ Meta හි පැය 24ක window එක ඇතුළත DM සඳහා send_social_dm. TikTok හි, reply_to_comment පොදුවේ පළ කරන අතර video එකේ id එක post_id ලෙස අවශ්‍යයි. කිසිදු agent එකක් run නොවන විට යැවිය යුතු replies automations සහ comment-to-DM rules හි තැබිය යුතුයි, ඒවා easyCoexistence මත පැය 24ම ක්‍රියා කරයි.

එක agent එකක් customers කිහිප දෙනෙකුට, හෝ SaaS හි customers ට සේවය කළ හැකිද?

ඔව්, clients කිහිප දෙනෙකුට. එක easyCoexistence ගිණුමක ඔබ සම්බන්ධ කරන තරම් clients ගේ channels ඇත, එක් එක් සම්බන්ධතාවයක් ලෙස බිල් කෙරේ, සහ list_social_accounts ඒ සියල්ල ලබා දෙයි, එබැවින් ඒජන්සියක agent එක එක් එක් task එකේ ගිණුම නම් කිරීමෙන් clients අතර වැඩ කරයි. Clients ඔවුන්ගේම Instagram, Facebook හෝ TikTok sign-in සමඟ, විවෘත කරන link එකකින් සම්බන්ධ වේ.

SaaS එකක customers ට එක් එක්කෙනාට agent එකක් ලැබෙන විට තවත් සීමාවක් අවශ්‍යයි. OAuth token එක ගිණුමේ එක් එක් channel වෙත ළඟා වන අතර, allowedTools ෆිල්ටර් කරන්නේ tools මිස ගිණුම් නොවේ. Partner API හරහා customers සම්බන්ධ කරන්න, එය එක් එක් channel එකට ඔබේ external_ref ටැග් කරයි, සහ එක් එක් customer ගේ agent එකට ඔබේම in-process SDK MCP server එකක් දෙන්න, එහි tools ඔබේ ec_live_ key සහ එම customer ගේ channel_id සමඟ easyCoexistence REST API call කරයි. ඉන්පසු Claude ක්‍රියා කරන්නේ ඔබේ කේතය තෝරාගත් channels මත පමණි, easyCoexistence යටින් approvals, tokens සහ monitoring තබා ගනී.

එය සකසන ආකාරය

  1. ගිණුම් සම්බන්ධ කරන්නeasyCoexistence වෙත පුරනය වී, එක් එක් network එකේ තමන්ගේම පුරනය වීමෙන් Instagram, Facebook හෝ TikTok සම්බන්ධ කරන්න, නැතහොත් Partner API හරහා ඔබේ පාරිභෝගිකයන්ට සම්බන්ධ වීමට ඉඩ දෙන්න.
  2. Token එකක් ලබා ගන්නඔබේ යෙදුමේ easyCoexistence හි OAuth පුරනය වීම සම්පූර්ණ කර refresh token එක සුරකින්න, නැතහොත් එකම machine එකේ Claude Code හි /mcp වලින් එක් වරක් පුරනය වන්න.
  3. agent එක සකසන්නmcpServers එකට easycoexistence එක එකතු කරන්න, type http, URL එක සහ Bearer header එකක් සමඟ, සහ agent එකට භාවිත කිරීමට ඉඩ ඇති tools allowedTools හි ලැයිස්තුගත කරන්න.
  4. පරීක්ෂා කර run කරන්නinit පණිවිඩය කියවන්න, needs-auth හෝ failed ලැබුණොත් නවත්වන්න, සහ සෑම run එකකට පෙර access token එක refresh කරන්න.

සාමාන්‍ය වැරදි

  • allowedTools වලින් easyCoexistence tools ඉවත් කිරීම. Claude ඒවා දකී නමුත් call කළ නොහැක; ඒවායේ mcp__easycoexistence__ නම් එක් කරන්න, හෝ සම්පූර්ණ server සඳහා mcp__easycoexistence__*.
  • මේ tools සඳහා permissionMode acceptEdits මත රඳා පැවතීම. එය file edits සහ filesystem commands පමණක් අනුමත කරයි, එබැවින් MCP tools තවමත් allowedTools අවශ්‍යයි.
  • headers හි token නැතිව server run එකක් ආරම්භ කිරීම. SDK browser එකක් විවෘත නොකරයි, needs-auth වාර්තා කර tools නැතිව දිගටම යයි, එබැවින් agent එක ක්‍රියා නොකර පිළිතුරු දිය හැක.
  • දිගු කල් පවතින worker එකක options එක වරක් ගොඩනැගීම. headers හි access token එක පැයකින් කල් ඉකුත් වේ; එය refresh කර සෑම run එකකටම නව options ගොඩනඟන්න.
EasyCoexistence සමඟ මෙය කිරීම

easyCoexistence Claude Agent SDK agents වලට Instagram, Facebook, TikTok සහ WhatsApp වෙත ප්‍රවේශය ලබා දෙයි: එක mcpServers entry එකක් පිටුපස tools 30කට වඩා ඇති MCP server එකක්, comments සහ DMs සඳහා අත්සන් කළ events, සහ customers ගේ ගිණුම් සඳහා Partner API, Meta Tech Provider app එකක් සහ තමන්ගේම TikTok app එකක් මත, සෑම සම්බන්ධතාවයක්ම නිරීක්ෂණය කෙරේ. සම්බන්ධතාවයකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, සම්බන්ධතා එකතු කරන විට අඩුවේ, පළමු දින 3ක් නොමිලේ trial කාලය.

නිතර අසන ප්‍රශ්න

Agent SDK එකට easyCoexistence API key එකක් අවශ්‍යද?

නැත. MCP server එක OAuth මගින් sign in වන අතර, access token එක Authorization header එකට යයි. ec_live_ key එක REST API call කරන කේතය සඳහා, උදාහරණයක් ලෙස ඔබේම tools සඳහා.

agent එක run නොවන විට customers ට පිළිතුරු දිය හැකිද?

එය තනිව නොහැක. comment-to-DM rules සහ automations, agent එකට create_comment_rule සහ create_automation සමඟ සකස් කළ හැක, easyCoexistence මත ක්‍රියා කර query විවෘත නොවන විට දිගටම reply කරයි.

agent එක තම working directory එකේ වීඩියෝවක් post කළ හැකිද?

සෘජුව නොහැක. publishing tools මගින් media ලබාගන්නේ public HTTPS link එකකින්, එබැවින් ගොනුව network එකට ළඟා විය හැකි storage එකට upload කර එහි URL එක pass කරන්න.

Agent SDK agent එකක් සඳහා easyCoexistence කොපමණ වේද?

සම්බන්ධ කරන ගිණුමකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, කොපමණ සම්බන්ධ කරන්නේද යන්න අනුව, සෑම network එකකම එකම ලෙස, සියලු tools ඇතුළත්ව. Anthropic agent එකේ model භාවිතය වෙනම බිල් කරයි, පළමු දින 3 නොමිලේ.

තවදුරටත් කියවන්න

MCP connector හරහා Claude API යෙදුමකට Instagram, Facebook, TikTok සහ WhatsApp මෙවලම් ලබා දෙන්නeasyCoexistence MCP server Claude API වලට mcp_servers සහ mcp_toolset මගින් එක් කර, Instagram, Facebook, TikTok සහ WhatsApp හි post, schedule සහ reply කරන්න.easyCoexistence, Claude සමඟ ක්‍රියා කරයිද? නිතර ඇසෙන ප්‍රශ්නඔව්. easyCoexistence, Claude, Claude Code, Claude API සහ Agent SDK සමඟ: ජාලයට අනුව Claude කරන දේ, මිල, නිල බව සහ ඔබේ දත්ත.Instagram, TikTok සහ තවත් සමාජ මාධ්‍ය Claude Code වෙත සම්බන්ධ කරන්නeasyCoexistence Claude Code වෙත එක් කරන්න: claude mcp add සහ OAuth පුරනය වීමෙන්. පළ කරන්න, උපලේඛනගත කරන්න, comment සහ DM වලට පිළිතුරු දෙන්න, analytics කියවන්න.OpenAI Agents SDK agent එකකට Instagram, TikTok සහ WhatsApp tools දෙන්නOAuth හරහා easyCoexistence MCP server ට OpenAI Agents SDK agent එක සම්බන්ධ කර Instagram, TikTok, WhatsApp සහ තවත් channel වල post, schedule සහ reply කරන්න.Claude සහ ChatGPT සඳහා සමාජ මාධ්‍ය MCP server එකසෑම ජාලයකටම එක MCP connector: Claude හෝ ChatGPT official API හරහා පළ කරයි, සැලසුම් කරයි, පිළිතුරු දෙයි සහ analytics කියවයි.

ඔබේ පළමු channel එක මිනිත්තු දෙකකින් සම්බන්ධ කරන්න.

වේදිකා සමාලෝචන සඳහා බලා සිටීමට අවශ්‍ය නැත. WhatsApp, Instagram, TikTok හෝ වෙනත් channel එකක් සම්බන්ධ කර, පසුව ඔබේ AI හට පළ කිරීමට, ප්‍රතිචාර දැක්වීමට හෝ වාර්තා කිරීමට පවසා එය වැඩ කරන ආකාරය බලන්න.

  • දින 3ක් නොමිලේ
  • ඕනෑම වේලාවක අවලංගු කරන්න
  • නිල API පමණි
  • 24/7 නිරීක්ෂණය කෙරේ

සත්‍යාපනය කළේ