Tích hợp AI (MCP)
Ứng dụng khách MCP khác
Call the esimoa MCP server directly by sending JSON-RPC 2.0 over POST.
On this page
Protocol#
Gửi JSON-RPC 2.0 qua POST. Mỗi yêu cầu được xử lý độc lập — không cần phiên.
Các phương thức được hỗ trợ gồm initialize, tools/list, tools/call và ping. Không mở luồng SSE nên GET trả về 405.
initialize#
initializeshell
curl -X POST https://api.esimoa.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": { "name": "my-client", "version": "1.0.0" }
}
}'tools/call#
tools/call · search_esimsshell
curl -X POST https://api.esimoa.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-API-Key: esk_live_your_key_here" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "search_esims",
"arguments": { "country": "Japan", "days": 7, "sort": "price", "limit": 3, "lang": "en" }
}
}'