Development
Compara configuraciones JSON, YAML, TOML y dotenv por ruta de clave, ignorando el orden y el ruido de formato.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/config-file-semantic-diff' \
-H 'Content-Type: application/json' \
-d '{"leftConfig":"{\"server\":{\"port\":8080,\"tags\":[\"api\",\"web\"]}}","leftFormat":"json","rightConfig":"server:\n tags: [api, web]\n port: 9090\n","rightFormat":"yaml"}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/config-file-semantic-diff| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| leftConfig | textarea | Sí | — |
| leftFormat | select | No | — |
| rightConfig | textarea | Sí | — |
| rightFormat | select | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-config-file-semantic-diff": {
"name": "config-file-semantic-diff",
"description": "Compara configuraciones JSON, YAML, TOML y dotenv por ruta de clave, ignorando el orden y el ruido de formato.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=config-file-semantic-diff",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "config-file-semantic-diff",
"arguments": {
"leftConfig": "{\"server\":{\"port\":8080,\"tags\":[\"api\",\"web\"]}}",
"leftFormat": "json",
"rightConfig": "server:\n tags: [api, web]\n port: 9090\n",
"rightFormat": "yaml"
}
}
}¿Dudas o problemas? Contacta con [email protected]