แอป AI (MCP)

เชื่อมต่อแอป

เพิ่ม Sendcorex ใน Claude, Claude Code, Cursor, VS Code หรือไคลเอนต์ MCP ใดก็ได้ ใช้ URL ของบัญชี URL ของกล่องจดหมาย หรือทั้งสอง

  • Streamable HTTP
  • OAuth ใน Claude
  • API key ได้ทุกที่

URL ของเซิร์ฟเวอร์

บัญชีhttps://g.sendcorex.com/mcp/account

โดเมน ผู้ส่ง เทมเพลต ล็อก ผู้ติดต่อ การตรวจสอบ และการส่งอีเมล

กล่องจดหมายhttps://g.sendcorex.com/mcp/inbox

กล่องจดหมายเดียว: อ่าน ค้นหา ตอบ จัดระเบียบ และกฎ

ต้องการเครื่องมือน้อยลงในบริบทของโมเดล? เพิ่ม ?tools=domain,logs ใน URL ของบัญชี หรือ ?tools=mail,compose ใน URL ของกล่องจดหมาย

Claude (claude.ai และแอปเดสก์ท็อป)

OAuth
  1. 1

    เปิด Settings → Connectors → Add custom connector

  2. 2

    วาง URL ของบัญชี (หรือ URL ของกล่องจดหมาย) แล้วคลิก Add

  3. 3

    คลิก Connect หน้าต่าง Sendcorex จะเปิด: ลงชื่อเข้าใช้หากจำเป็น เลือกสิทธิ์ (หรือกล่องจดหมาย) แล้วคลิกอนุญาต

  4. 4

    กลับไปที่ Claude เริ่มแชทใหม่แล้วขอ Claude ต่ออายุการเข้าถึงเอง

บัญชี
https://g.sendcorex.com/mcp/account
กล่องจดหมาย (หนึ่งต่อกล่องจดหมาย)
https://g.sendcorex.com/mcp/inbox

เพิ่ม URL ของกล่องจดหมายอีกครั้งสำหรับแต่ละกล่องที่ต้องการให้ Claude ใช้ และเลือกกล่องต่างกันในแต่ละครั้ง

Claude Code

OAuth หรือ API key
  1. 1

    ด้วย OAuth: เพิ่มเซิร์ฟเวอร์ รัน /mcp ใน Claude Code แล้วเลือก Authenticate

  2. 2

    ด้วย API key: ส่งเป็นเฮดเดอร์ สิทธิ์ของคีย์กำหนดว่าเครื่องมือใดจะแสดง

OAuth
claude mcp add --scope user --transport http sendcorex https://g.sendcorex.com/mcp/account
API key
claude mcp add --scope user --transport http sendcorex https://g.sendcorex.com/mcp/account \
  --header "Authorization: Bearer $SENDCOREX_API_KEY"

Cursor

API key
  1. 1

    เปิด Settings → MCP → Add new MCP server หรือแก้ ~/.cursor/mcp.json

  2. 2

    วางการตั้งค่าแล้วโหลดใหม่

~/.cursor/mcp.json
{
  "mcpServers": {
    "sendcorex": {
      "url": "https://g.sendcorex.com/mcp/account",
      "headers": { "Authorization": "Bearer YOUR_SENDCOREX_API_KEY" }
    }
  }
}

VS Code (GitHub Copilot)

API key
  1. 1

    สร้าง .vscode/mcp.json ในโปรเจกต์ (หรือรัน MCP: Add Server)

  2. 2

    VS Code ขอคีย์ครั้งแรกและเก็บไว้อย่างปลอดภัย

.vscode/mcp.json
{
  "inputs": [
    { "type": "promptString", "id": "sendcorex-key", "description": "Sendcorex API key", "password": true }
  ],
  "servers": {
    "sendcorex": {
      "type": "http",
      "url": "https://g.sendcorex.com/mcp/account",
      "headers": { "Authorization": "Bearer ${input:sendcorex-key}" }
    }
  }
}

ไคลเอนต์ MCP อื่น

OAuth หรือ API key
  1. 1

    Transport: Streamable HTTP (POST, การตอบกลับ JSON, ไม่มีเซสชัน)

  2. 2

    การยืนยันตัวตน: Authorization: Bearer ด้วย API key หรือ OAuth 2.1 กับ PKCE (ค้นพบจากการตอบ 401)

  3. 3

    เวอร์ชันโปรโตคอล: 2024-11-05, 2025-03-26, 2025-06-18 และ 2025-11-25

ทดสอบการเชื่อมต่อ

แสดงเครื่องมือที่คีย์ใช้ได้ รายการว่างหมายความว่าคีย์ไม่มีสิทธิ์บัญชีเลย แก้คีย์ หรืออ่าน การยืนยันตัวตน.

curl
curl -s https://g.sendcorex.com/mcp/account \
  -H "Authorization: Bearer $SENDCOREX_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'