Format Conversion
Pont de configuration WireGuard/OpenVPN vers Clash et sing-box
Convertit le texte collé d’un client WireGuard ou OpenVPN en YAML Mihomo/Clash ou JSON sing-box et signale les champs secrets ; ne partagez pas les clés privées
text· Résultat texteOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/wireguard-openvpn-to-clash-singbox-bridge' \
-H 'Content-Type: application/json' \
-d '{"vpnConfig":"[Interface]\nPrivateKey = client-private\nAddress = 10.0.0.2/32\nDNS = 1.1.1.1\n\n[Peer]\nPublicKey = server-public\nAllowedIPs = 0.0.0.0/0\nEndpoint = vpn.example.com:51820","sourceFormat":"auto","targetFormat":"mihomo-yaml","routingPolicy":"[{\"kind\":\"domain-suffix\",\"value\":\"corp.example\",\"outbound\":\"Office VPN\"}]","profileName":"Office VPN"}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
HTTP
POST https://api.elysiatools.com/fr/api/tools/wireguard-openvpn-to-clash-singbox-bridgeParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| vpnConfig | textarea | Oui | — |
| sourceFormat | select | Non | — |
| targetFormat | select | Non | — |
| routingPolicy | textarea | Non | — |
| profileName | text | Non | — |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
{
"mcpServers": {
"elysiatools-wireguard-openvpn-to-clash-singbox-bridge": {
"name": "wireguard-openvpn-to-clash-singbox-bridge",
"description": "Convertit le texte collé d’un client WireGuard ou OpenVPN en YAML Mihomo/Clash ou JSON sing-box et signale les champs secrets ; ne partagez pas les clés privées",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=wireguard-openvpn-to-clash-singbox-bridge",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "wireguard-openvpn-to-clash-singbox-bridge",
"arguments": {
"vpnConfig": "[Interface]\nPrivateKey = client-private\nAddress = 10.0.0.2/32\nDNS = 1.1.1.1\n\n[Peer]\nPublicKey = server-public\nAllowedIPs = 0.0.0.0/0\nEndpoint = vpn.example.com:51820",
"sourceFormat": "auto",
"targetFormat": "mihomo-yaml",
"routingPolicy": "[{\"kind\":\"domain-suffix\",\"value\":\"corp.example\",\"outbound\":\"Office VPN\"}]",
"profileName": "Office VPN"
}
}
}