AI 연동 (MCP)
기타 MCP 클라이언트
JSON-RPC 2.0 을 POST 로 직접 보내 이심모아 MCP 서버를 호출하는 방법이에요.
이 페이지 내용
프로토콜#
JSON-RPC 2.0 을 POST 로 보내요. 세션 없이 요청마다 독립적으로 처리돼요.
지원 메서드는 initialize · tools/list · tools/call · ping 이에요. SSE 스트림은 열지 않으므로 GET 은 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" }
}
}'