เชื่อมต่อผู้ช่วย AI
MCP server ของ Tanqory ให้ Claude, ChatGPT หรือ MCP client ใดก็ได้ทำงานกับร้านหนึ่งร้าน โดยร้านค้าเป็นผู้อนุมัติ
Tanqory มี Model Context Protocol server แบบ remote ผู้ช่วยที่เชื่อมต่อแล้วอ่านสินค้าและคอลเลกชันของร้าน query Admin API และออกแบบธีมของร้านได้ ภายในสิทธิ์ที่ร้านค้าอนุมัติให้ร้านนั้นร้านเดียว
| ที่อยู่ server | https://mcp.tanqory.com |
| Transport | Streamable 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) ผู้ช่วยจะจัดการการเข้าสู่ระบบให้
- ผู้ช่วยเรียก server ได้
401และอ่านข้อมูลการเข้าสู่ระบบจาก headerWWW-Authenticate - เบราว์เซอร์เปิด Tanqory ให้เข้าสู่ระบบด้วยบัญชี Tanqory
- หน้า Connect (ชื่อผู้ช่วย) to Tanqory แสดงสิทธิ์ที่ผู้ช่วยขอ ในหัวข้อ Choose a store เลือกร้านที่ให้ใช้ได้หนึ่งร้าน
- เลือก Allow access คุณจะกลับไปที่ผู้ช่วยซึ่งเชื่อมต่อแล้ว
ยกเลิกการเชื่อมต่อได้ทุกเมื่อในบัญชี Tanqory ที่ Security หัวข้อ Devices ส่วนอายุของการเชื่อมต่ออยู่ใน Authentication
- ผู้ช่วย AI → MCP server ของ Tanqory เรียก /v1/mcp โดยไม่มี token
- MCP server ของ Tanqory → ผู้ช่วย AI 401 พร้อมที่อยู่สำหรับลงชื่อเข้าใช้
- ผู้ช่วย AI → การลงชื่อเข้าใช้ Tanqory อ่าน metadata แล้วลงทะเบียนตัวเอง
- ผู้ช่วย AI → เบราว์เซอร์ของร้านค้า เปิดหน้าลงชื่อเข้าใช้ พร้อม PKCE
- เบราว์เซอร์ของร้านค้า → การลงชื่อเข้าใช้ Tanqory ลงชื่อเข้าใช้ เลือกหนึ่งร้าน แล้ว Allow access
- การลงชื่อเข้าใช้ Tanqory → ผู้ช่วย AI code ผ่านเบราว์เซอร์
- ผู้ช่วย AI → การลงชื่อเข้าใช้ Tanqory POST /v1/oauth/token พร้อม code verifier
- การลงชื่อเข้าใช้ Tanqory → ผู้ช่วย AI Access token ของร้านนั้นร้านเดียว
- ผู้ช่วย AI → MCP server ของ Tanqory initialize, tools/list: เฉพาะ tool ที่ scope ที่อนุมัติอนุญาต
- ผู้ช่วย AI → MCP server ของ Tanqory tools/call ถ้าไม่ผ่าน: 403 insufficient_scope
- MCP server ของ Tanqory → ร้าน (Admin API) หนึ่ง operation ของ Admin API บนร้านนั้น ตรวจกับ scope เดียวกัน
- 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 ที่คุณอนุมัติ
| อนุมัติ | เครื่องมือ |
|---|---|
| ไม่ต้องใช้ scope | theme_guide, theme_reference, theme_init, theme_validate, theme_scaffold ส่งกฎ เอกสารอ้างอิง และไฟล์เริ่มต้นของธีม Tanqory และตรวจไฟล์ที่คุณส่ง โดยไม่อ่านข้อมูลใดของร้าน |
| ไม่มี scope ของตัวเอง | admin_operation_search และ admin_query ทุก root field ที่ค้นหรืออ่านต้องใช้ scope ของ field นั้นเอง ตามที่หน้าอ้างอิงระบุ จึงเข้าถึงได้เฉพาะสิ่งที่ scope ที่อนุมัติเปิดให้ |
read_products | get_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 client | https://api.tanqory.com/v1/oauth/register |
Authorization แบบ code พร้อม PKCE S256 และพารามิเตอร์ resource | https://api.tanqory.com/v1/oauth/authorize |
| Token | https://api.tanqory.com/v1/oauth/token |
อายุ token scope และ error อยู่ใน Authentication