TanqoryDocs

เชื่อมต่อผู้ช่วย AI

MCP server ของ Tanqory ให้ Claude, ChatGPT หรือ MCP client ใดก็ได้ทำงานกับร้านหนึ่งร้าน โดยร้านค้าเป็นผู้อนุมัติ

Tanqory มี Model Context Protocol server แบบ remote ผู้ช่วยที่เชื่อมต่อแล้วอ่านสินค้าและคอลเลกชันของร้าน query Admin API และออกแบบธีมของร้านได้ ภายในสิทธิ์ที่ร้านค้าอนุมัติให้ร้านนั้นร้านเดียว

ที่อยู่ serverhttps://mcp.tanqory.com
TransportStreamable HTTP
การเข้าสู่ระบบOAuth 2.1 แบบ PKCE และ dynamic client registration ตาม MCP authorization specification

ที่อยู่เดิม https://api.tanqory.com/v1/mcp ยังใช้ได้จนถึง 12 สิงหาคม 2027 ผู้ช่วยที่เชื่อมต่อใหม่ให้ใช้ที่อยู่ด้านบน

เชื่อมต่อ

เพิ่มที่อยู่ server ในผู้ช่วยของคุณเป็น remote MCP server (มักเรียกว่า custom connector) ผู้ช่วยจะจัดการการเข้าสู่ระบบให้

  1. ผู้ช่วยเรียก server ได้ 401 และอ่านข้อมูลการเข้าสู่ระบบจาก header WWW-Authenticate
  2. เบราว์เซอร์เปิด Tanqory ให้เข้าสู่ระบบด้วยบัญชี Tanqory
  3. หน้า Connect (ชื่อผู้ช่วย) to Tanqory แสดงสิทธิ์ที่ผู้ช่วยขอ ในหัวข้อ Choose a store เลือกร้านที่ให้ใช้ได้หนึ่งร้าน
  4. เลือก Allow access คุณจะกลับไปที่ผู้ช่วยซึ่งเชื่อมต่อแล้ว

ยกเลิกการเชื่อมต่อได้ทุกเมื่อในบัญชี Tanqory ที่ Security หัวข้อ Devices ส่วนอายุของการเชื่อมต่ออยู่ใน Authentication

การเชื่อมต่อผู้ช่วย AI และการเรียก tool
  1. ผู้ช่วย AI → MCP server ของ Tanqory เรียก /v1/mcp โดยไม่มี token
  2. MCP server ของ Tanqory → ผู้ช่วย AI 401 พร้อมที่อยู่สำหรับลงชื่อเข้าใช้
  3. ผู้ช่วย AI → การลงชื่อเข้าใช้ Tanqory อ่าน metadata แล้วลงทะเบียนตัวเอง
  4. ผู้ช่วย AI → เบราว์เซอร์ของร้านค้า เปิดหน้าลงชื่อเข้าใช้ พร้อม PKCE
  5. เบราว์เซอร์ของร้านค้า → การลงชื่อเข้าใช้ Tanqory ลงชื่อเข้าใช้ เลือกหนึ่งร้าน แล้ว Allow access
  6. การลงชื่อเข้าใช้ Tanqory → ผู้ช่วย AI code ผ่านเบราว์เซอร์
  7. ผู้ช่วย AI → การลงชื่อเข้าใช้ Tanqory POST /v1/oauth/token พร้อม code verifier
  8. การลงชื่อเข้าใช้ Tanqory → ผู้ช่วย AI Access token ของร้านนั้นร้านเดียว
  9. ผู้ช่วย AI → MCP server ของ Tanqory initialize, tools/list: เฉพาะ tool ที่ scope ที่อนุมัติอนุญาต
  10. ผู้ช่วย AI → MCP server ของ Tanqory tools/call ถ้าไม่ผ่าน: 403 insufficient_scope
  11. MCP server ของ Tanqory → ร้าน (Admin API) หนึ่ง operation ของ Admin API บนร้านนั้น ตรวจกับ scope เดียวกัน
  12. MCP server ของ Tanqory → ผู้ช่วย AI ผลลัพธ์ การเปลี่ยนแปลงจะตอบด้วยคำขอยืนยันที่ร้านค้าอนุมัติก่อน

Claude

ใน Claude ให้เพิ่มที่อยู่นี้เป็น custom connector ขั้นตอนอยู่ในเอกสารของ Anthropic Getting started with custom connectors using remote MCP

ChatGPT

ใน ChatGPT ให้เพิ่มที่อยู่นี้เป็น connector ในโหมด developer ขั้นตอนอยู่ในเอกสารของ OpenAI Developer mode

ผู้ช่วยทำอะไรได้

เครื่องมือขึ้นกับ scope ที่คุณอนุมัติ

อนุมัติเครื่องมือ
ไม่ต้องใช้ scopetheme_guide, theme_reference, theme_init, theme_validate, theme_scaffold ส่งกฎ เอกสารอ้างอิง และไฟล์เริ่มต้นของธีม Tanqory และตรวจไฟล์ที่คุณส่ง โดยไม่อ่านข้อมูลใดของร้าน
ไม่มี scope ของตัวเองadmin_operation_search และ admin_query ทุก root field ที่ค้นหรืออ่านต้องใช้ scope ของ field นั้นเอง ตามที่หน้าอ้างอิงระบุ จึงเข้าถึงได้เฉพาะสิ่งที่ scope ที่อนุมัติเปิดให้
read_productsget_shop, search_products, get_product, list_collections, generate_product_description
read_themes, write_themesเครื่องมือธีมที่อ่านและเปลี่ยนธีมของร้าน และ get_online_store ดู เครื่องมือธีม

เครื่องมือที่อยู่นอก scope ที่อนุมัติจะตอบ 403 พร้อม insufficient_scope ส่วน admin_query จะปฏิเสธ root field ที่อยู่นอก scope ด้วย permission_denied ผู้ใช้ที่บทบาทแก้ไขไม่ได้จะได้เฉพาะ scope สำหรับอ่าน

สำหรับผู้พัฒนา MCP client

server นี้ทำตาม MCP authorization specification

ขั้นตอนที่อยู่
Protected resource metadata (RFC 9728)https://mcp.tanqory.com/.well-known/oauth-protected-resource
Authorization server metadata (RFC 8414)https://api.tanqory.com/.well-known/oauth-authorization-server
Client registration (RFC 7591) เฉพาะ public clienthttps://api.tanqory.com/v1/oauth/register
Authorization แบบ code พร้อม PKCE S256 และพารามิเตอร์ resourcehttps://api.tanqory.com/v1/oauth/authorize
Tokenhttps://api.tanqory.com/v1/oauth/token

อายุ token scope และ error อยู่ใน Authentication

สร้างจาก commit c0b3fb3fdef7 · เวอร์ชัน API 2026-10