ข้ามไปยังเนื้อหา
GrowSellerเอกสารAffiliate command center
Developers

MCP

เชื่อมต่อ Claude, ChatGPT, Cursor และ AI agent อื่นๆ กับ GrowSeller ด้วยเซิร์ฟเวอร์ MCP

ใช้ทำอะไร: ให้แอป AI (Claude, ChatGPT, Cursor…) ทำงานใน GrowSeller แทนคุณ วิธีที่ควรทำทีละงาน: playbook สำหรับ AI / MCP

เซิร์ฟเวอร์ MCP ของ GrowSeller ให้ AI agent ทำงานในบัญชีของคุณ สำหรับร้าน TikTok Shop และ Shopee: ค้นหา creator, จัดการรายการ creator, ใช้งาน Target Collaboration และ Messenger Broadcast, อ่านข้อมูลตัวอย่างและ job ทีละเมนูเหมือนใน dashboard ใช้ route ชุดเดียวกันและขีดจำกัดเดียวกับ REST API

https://seller.growpaces.com/api/mcp

การเข้าสู่ระบบ

  • OAuth (Claude, ChatGPT และแอปอื่นที่รองรับ OAuth): ให้ URL ของเซิร์ฟเวอร์แก่แอป แอปจะเปิด GrowSeller คุณเข้าสู่ระบบและอนุญาต คุณดูและยกเลิกการเชื่อมต่อแอปที่คุณอนุญาตได้ใน Developer → แอปที่เชื่อมต่อ
  • API key (Cursor, Codex, Gemini CLI, n8n, สคริปต์): ส่ง Authorization: Bearer gsk_… พร้อม key จาก Developer → API Key

ตั้งค่าแอป

แอปวิธีการ
ClaudeSettings → Connectors → Add custom connector ตั้งชื่อว่า GrowSeller วาง URL ของเซิร์ฟเวอร์ กด Connect เข้าสู่ระบบและอนุญาต
Claude Codeclaude mcp add --transport http growseller https://seller.growpaces.com/api/mcp แล้วใช้ /mcp เพื่อเข้าสู่ระบบ
ChatGPTSettings → Apps & Connectors → Advanced settings → Developer mode กด Create วาง URL ของเซิร์ฟเวอร์ แล้วเลือก OAuth
Cursor~/.cursor/mcp.json: {"mcpServers":{"growseller":{"url":"https://seller.growpaces.com/api/mcp","headers":{"Authorization":"Bearer gsk_…"}}}}
Codex~/.codex/config.toml: [mcp_servers.growseller] พร้อม url และ bearer_token_env_var = "GROWSELLER_API_KEY"
Gemini CLI~/.gemini/settings.json: mcpServers.growseller พร้อม httpUrl และ header Authorization

แท็บ Developer → MCP ในแดชบอร์ดมีขั้นตอนตั้งค่าของแต่ละแอปพร้อม config ให้คัดลอก

เครื่องมือ

tool คือเมนูใน sidebar ของ dashboard คุณและ agent จึงเรียกสิ่งเดียวกันด้วยชื่อเดียวกัน ("ค้นหา Creator › ค้นหา", "Target Collaboration › เพิ่ม creator") ทุกเมนูมี tool อ่าน <menu>_read (รายการและรายละเอียด ไม่เปลี่ยนแปลงอะไร แอปจึงเรียกได้โดยไม่ต้องถาม) และถ้าเมนูนั้นเปลี่ยนแปลงข้อมูลได้ ก็มี tool เขียน <menu>_write (แอปจะถามคุณก่อนทุกการเรียก) ทั้งสองรับ:

อาร์กิวเมนต์คืออะไร
actionสิ่งที่จะทำในเมนูนั้น จากรายการของ tool (ด้านล่าง)
platformtiktok (ค่าเริ่มต้น) หรือ shopee แพลตฟอร์มของร้าน แท็บช่องทางของ Messenger Broadcast มี email หรือ whatsapp ด้วย
paramsพารามิเตอร์ query ของ action และ id ใน path เช่น {"shop_id": "…", "min_gmv": 1000000} หรือ {"template_id": "…"}
bodybody JSON ของการเปลี่ยนแปลง

แต่ละ action คือหนึ่ง route ของ REST API ทำงานในนามคุณผ่านการตรวจสอบและขีดจำกัดเดียวกัน ไม่แน่ใจ field ของ action? ทุก tool อ่านมี help: {"action": "help", "params": {"action": "find_creators"}} ตอบทุก field (ชนิด, จำเป็นหรือไม่, ค่าที่อนุญาต, ช่วง, หน่วย) ตัวอย่าง body และเอกสาร {"action": "help", "params": {"search": "sample review"}} ค้นหา action ในทุกเมนู เอกสาร OpenAPI ระบุ tool และ action ของแต่ละ operation ด้วย (x-mcp-tool, x-mcp-action)

เมนูtool อ่าน: actiontool เขียน: action
ร้านค้าstores_read: list_stores, store_shares, helpstores_write: share_store, unshare_store, remove_store
Jobjobs_read: list_jobs, helpjobs_write: start_job, stop_job
ค้นหา Creatordiscover_creator_read: find_creators, creator_ids, creator_cards, creator_profile, creator_contacts, creator_by_contact, categories, locations, find_products, find_stores, find_videos, video_creator_ids, video_file, check_replies, helpdiscover_creator_write: filter_creator_ids, add_contact, delete_contact, pair_contact, refresh_creator
Creator ของฉันmy_creator_read: list_groups, list_tags, groups_and_tags, import_history, helpmy_creator_write: create_group, update_group, delete_group, assign_group, unassign_group, create_tag, update_tag, delete_tag, assign_tag, unassign_tag, import_creators, import_blocks, delete_import
Creator ของร้านstore_creator_read: list_groups, list_tags, helpstore_creator_write: create_group, update_group, delete_group, assign_group, unassign_group, create_tag, update_tag, delete_tag, assign_tag, unassign_tag
Creator ที่บล็อกblocked_creator_read: list_blocks, block_ids, list_store_blocks, store_block_ids, helpblocked_creator_write: block, update_block, unblock, block_in_store, unblock_in_store
Target Collaborationtarget_collaboration_read: list_templates, get_template, template_creators, next_template_code, list_invitations, get_invitation, invitation_creators, invitation_creator, creator_product_videos, move_targets, invitation_orders, invitation_performance, bulk_preview, outreach_quota, invitation_quota, list_products, product_categories, helptarget_collaboration_write: create_template, update_template, start_templates, add_creators, remove_creators, update_invitation, add_invitation_creators, change_invitations, end_invitation, auto_end_preview, sync_invitations
จัดการตัวอย่างmanage_sample_read: list_samples, sample_creator_ids, sample_content, sample_rating, remind_status, remind_list, pickup_slots, shipping_options, helpmanage_sample_write: review_samples, sync_samples, rate, rate_many, delete_rating, send_remind, spark_videos, cancel, accept_cancellation, ship, ship_many, spx_quote, spx_quote_many, spx_ship, to_arrange
Spark Codespark_ads_code_read: list_requests, helpspark_ads_code_write: send_requests, stop_request
Messenger Broadcastmessenger_broadcast_read: list_broadcasts, get_broadcast, broadcast_targets, helpmessenger_broadcast_write: create_broadcast, update_broadcast, delete_broadcast, start_broadcast, add_targets, remove_targets, upload_image, check_replies
TikTok Messenger / Shopee Messengercreator_message_read: list_conversations, conversation_counts, unread_count, creator_profiles, chat_creator, messages, creator_contact, available_invitations, invitation_card, chat_products, product_card, reminder_cards, helpcreator_message_write: open_conversation, send_message, send_image, upload_image, mark_read, conversation_state
Email Messengeremail_message_read: list_connectors, shareable_stores, connector_shares, inbox, thread, creator_info, helpemail_message_write: share_connector, unshare_connector, mark_read, pair_creator, reply
WhatsApp Messengerwhatsapp_message_read: list_connectors, get_connector, health, insights, business_setting, catalog, list_chats, chat_messages, find_messages, labels, get_media, flows, flow_screens, sync_groups, get_group, list_templates, template_insights, connector_shares, creator_info, unread, helpwhatsapp_message_write: set_active, update_business_setting, delete_qr_code, update_chat, delete_chat, mark_read, send_message, star_message, upload_media, upload_voice, upload_file, create_group, update_group, delete_group, reset_invite_link, answer_join_requests, remove_participants, create_template, update_template, share_connector, unshare_connector, pair_creator
ประสิทธิภาพanalytics_read: performance, categories, content_products, helpanalytics_write: ensure_creators
Connectorconnector_read: connect, list_links, link_settings, helpconnector_write: create_link, update_link_settings
การสมัครสมาชิกbilling_read: current_plan, catalog, pricing, list_invoices, get_invoice, invoice_payment, help–

การเชื่อมต่อร้านหรือ connector ด้วยตัวเองทำใน dashboard: connector_read {"action": "connect", "platform": "shopee"} ตอบ NOT_IN_API พร้อมหน้าที่ต้องไป (details.dashboard_url) สำหรับร้านของลูกค้า connector_write create_link สร้าง connect link

คำแนะนำของเซิร์ฟเวอร์เป็นคู่มือการทำงานสั้นๆ: tool และ action ใดทำงานทั่วไปแต่ละอย่างได้ในหนึ่งหรือสองการเรียก กฎด้านประสิทธิภาพและความปลอดภัย หน่วย และงบประมาณ ทีละงานพร้อมคำตอบจริง: playbook สำหรับ AI / MCP ดัชนีข้อความล้วนของเอกสารนี้สำหรับ AI: llms.txt

ผลลัพธ์

ทุก tool ตอบ {"menu", "action", "status", "body", "budget"} ทั้งเป็นข้อความและเป็น structuredContent:

  • body คือคำตอบของ route เหมือนกับ REST API
  • budget คืองบประมาณที่เหลือของบัญชีหลังการเรียก (requests_left, creator_rows_left, action_rows_left แต่ละตัวพร้อมเวลารีเซ็ตเป็นวินาที) และเมื่อได้ 429 จะมี limit_reached และ retry_after: รอตามจำนวนวินาทีนั้น ข้อมูลเดียวกันอยู่ใน _meta ของผลลัพธ์ (growseller/budget) งบประมาณเป็นของบัญชีคุณ ใช้ร่วมกันทุก key แอป และเซสชัน AI (ขีดจำกัดอัตรา)
  • รายการ creator กลับมาแบบย่อ (field ที่ใช้ตัดสินใจ ประมาณ 460 ไบต์ต่อแถว) view=full หรือ fields= ขอเพิ่มได้ คำตอบที่ยาวเกินหนึ่งข้อความจะเก็บแถวครบที่ใส่ได้ และบอก truncated, rows_returned และ next
  • body.details.docs_url ของข้อผิดพลาดชี้ไปยังคำอธิบาย action ที่ tool นั้นไม่มีจะบอก tool ที่มี (details.tool) หรือแพลตฟอร์มที่ใช้ได้ (details.platforms)

เพื่อทำงานกับ creator จำนวนมาก agent ส่ง selection (action รายการและ params ที่ใช้ค้นหา แถว start ถึง end ไม่เกิน 10,000 ต่อการเรียก) แทนการอ่าน id ก่อน: "selection": {"source": "find_creators", "filters": {…}, "start": 1, "end": 10000} ดู Creator

คำขอแรกที่ดีสำหรับ agent: "แสดงร้าน GrowSeller ของฉัน แล้วหา creator ที่มีผู้ติดตามมากกว่า 10,000 คนในอินโดนีเซีย และใส่ 500 คนแรกลงใน group ใหม่" agent เรียก stores_read list_stores, my_creator_write create_group แล้ว my_creator_write assign_group หนึ่งครั้งพร้อม "selection": {"source": "find_creators", "filters": {…}, "start": 1, "end": 500}: สามการเรียก

server ใช้ transport แบบ Streamable HTTP ของ MCP (โปรโตคอลเวอร์ชัน 2024-11-05 ถึง 2026-07-28) และตอบเป็น JSON