Intégrations IA (MCP)
Autres clients MCP
Call the esimoa MCP server directly by sending JSON-RPC 2.0 over POST.
Autres applications d’IA#
Grok, Perplexity, Le Chat, Manus, Genspark, Cursor, VS Code et Microsoft Copilot Studio permettent tous d’ajouter un serveur MCP distant : créez un connecteur personnalisé avec l’URL ci-dessus et choisissez aucune authentification. Les clients qui n’exécutent que des serveurs locaux (stdio) peuvent utiliser mcp-remote :
https://api.esimoa.com/mcp{
"mcpServers": {
"esimoa": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.esimoa.com/mcp"] }
}
}Protocol#
Envoyez du JSON-RPC 2.0 via POST. Chaque requête est traitée indépendamment — aucune session requise.
Les méthodes prises en charge sont initialize, ping, tools/list, tools/call, resources/list et resources/read pour les versions de protocole 2024-11-05 à 2025-11-25, ainsi que server/discover pour les clients 2026-07-28 (sans état, avec les en-têtes MCP-Protocol-Version et Mcp-Method). Aucun flux SSE n’est ouvert : GET renvoie donc 405.
initialize#
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#
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" }
}
}'