Format Conversion
Convert pasted WireGuard or OpenVPN client text into Mihomo/Clash YAML or sing-box JSON with secret-field diagnostics; do not share private keys
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/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"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/wireguard-openvpn-to-clash-singbox-bridge| Name | Type | Required | Description |
|---|---|---|---|
| vpnConfig | textarea | Yes | — |
| sourceFormat | select | No | — |
| targetFormat | select | No | — |
| routingPolicy | textarea | No | — |
| profileName | text | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-wireguard-openvpn-to-clash-singbox-bridge": {
"name": "wireguard-openvpn-to-clash-singbox-bridge",
"description": "Convert pasted WireGuard or OpenVPN client text into Mihomo/Clash YAML or sing-box JSON with secret-field diagnostics; do not share private keys",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=wireguard-openvpn-to-clash-singbox-bridge",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"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"
}
}
}Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]