Arsigo Builders

Entegrasyon

MCP Sunucusu

Model Context Protocol (MCP) sunucusu ile yapay zeka ajanları (Claude, vb.) mağazanıza bağlanıp ürün, sipariş ve müşteri işlemlerini doğal dille yapabilir. Sunucu, Commerce API'nin üzerinde çalışır — aynı API anahtarı ve aynı yetkiler geçerlidir.

Uç nokta

POST https://www.arsigo.com/api/mcp

Streamable HTTP (JSON-RPC 2.0) protokolü kullanılır. Her istekte mağaza API anahtarınızıAuthorization: Bearer ark_… başlığıyla gönderin.

Bağlantı (Claude Desktop)

Yapılandırma dosyanıza Arsigo MCP sunucusunu ekleyin:

claude_desktop_config.json
{
  "mcpServers": {
    "arsigo": {
      "url": "https://www.arsigo.com/api/mcp",
      "headers": { "Authorization": "Bearer ark_xxxxxxxxxxxxxxxx" }
    }
  }
}
Anahtarınızda write yetkisi varsa ajan oluşturma/güncelleme araçlarını da çalıştırabilir. Yalnız okuma anahtarı verirseniz ajan yalnızca veri okuyabilir; yazma araçları reddedilir.

Araçlar (Tools)

Sunucu 15 araç sunar — her biri Commerce API'deki bir işleme karşılık gelir:

AraçAçıklamaYetki
get_storeMağaza bilgisi ve anahtar yetkileriread
list_ordersSiparişleri listele/filtreleread
get_orderSipariş detayıread
update_orderSipariş durumunu güncellewrite
fulfill_orderSiparişi kargola (takip no)write
list_customersMüşterileri listele/araread
get_customerMüşteri detayıread
create_customerMüşteri oluşturwrite
update_customerMüşteri güncellewrite
list_productsÜrünleri listele/filtreleread
get_productÜrün detayı (varyant + stok)read
create_productTemel ürün oluşturwrite
update_productÜrün güncellewrite
add_variantÜrüne varyant eklewrite
update_stockVaryant stok adedini ayarlawrite

Doğrudan test (JSON-RPC)

Araç listesini görmek için:

tools/list
curl -X POST "https://www.arsigo.com/api/mcp" \
  -H "Authorization: Bearer ark_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }'

Bir aracı çağırmak için:

tools/call
curl -X POST "https://www.arsigo.com/api/mcp" \
  -H "Authorization: Bearer ark_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0", "id": 2, "method": "tools/call",
    "params": { "name": "list_orders", "arguments": { "status": "new", "limit": 5 } }
  }'