Format Conversion
Convert configuration files between dotenv .env, TOML, INI, Java .properties, YAML, JSON, HCL (Terraform/Vagrant native syntax) and Nix attribute sets, and emit Kubernetes ConfigMap or Secret manifests. Template placeholders (${VAR}, {{var}}, envsubst) are preserved verbatim, type inference provenance (string/int/float/bool/list) is tracked, HCL block labels fold into nested keys, and a round-trip diff calls out non-equivalent settings — dropped keys, re-typed values and rewrites — instead of coercing them silently.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge' \
-H 'Content-Type: application/json' \
-d '{"sourceText":"# app config\nDATABASE_HOST=localhost\nDATABASE_PORT=5432\nFEATURE_FLAGS=\"auth, beta\"\nAPI_KEY=\"sk-${VAULT_SECRET}\"\nDEBUG=true","sourceFormat":"auto","targetFormat":"k8s-configmap","manifestName":"my-app","showDiff":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge| Name | Type | Required | Description |
|---|---|---|---|
| sourceText | textarea | Yes | — |
| sourceFormat | select | No | — |
| targetFormat | select | No | — |
| manifestName | text | No | — |
| showDiff | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge": {
"name": "toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge",
"description": "Convert configuration files between dotenv .env, TOML, INI, Java .properties, YAML, JSON, HCL (Terraform/Vagrant native syntax) and Nix attribute sets, and emit Kubernetes ConfigMap or Secret manifests. Template placeholders (${VAR}, {{var}}, envsubst) are preserved verbatim, type inference provenance (string/int/float/bool/list) is tracked, HCL block labels fold into nested keys, and a round-trip diff calls out non-equivalent settings — dropped keys, re-typed values and rewrites — instead of coercing them silently.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-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": "toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge",
"arguments": {
"sourceText": "# app config\nDATABASE_HOST=localhost\nDATABASE_PORT=5432\nFEATURE_FLAGS=\"auth, beta\"\nAPI_KEY=\"sk-${VAULT_SECRET}\"\nDEBUG=true",
"sourceFormat": "auto",
"targetFormat": "k8s-configmap",
"manifestName": "my-app",
"showDiff": true
}
}
}Questions or issues? Contact [email protected]