Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Format Conversion

TOML / INI / HCL / .env / Nix / dotenv ⇄ Kubernetes ConfigMap & Secret Config Format Bridge

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.

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/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}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge

Parameters

NameTypeRequiredDescription
sourceTexttextareaYes—
sourceFormatselectNo—
targetFormatselectNo—
manifestNametextNo—
showDiffcheckboxNo—

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "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": "https://api.elysiatools.com/mcp/sse?toolId=toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "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
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool