Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Security

Env File Secret Rotation Planner

Paste a .env file and get a staged secret-rotation plan. Detects database URLs, API keys, auth tokens, private keys, cloud credentials, payment keys and encryption secrets, scores each by exposure and age, and schedules them across a 4-week rotation timeline with a dual-key checklist and a generated .env.example. Optional last-rotated dates and a configurable cadence (30/90/180/365 days) drive compliance scoring.

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/env-file-secret-rotation-planner' \
  -H 'Content-Type: application/json' \
  -d '{"envContent":"DATABASE_URL=postgres://app:[email protected]:5432/shop\nSTRIPE_SECRET_KEY=sk_live_51HqkAbCdefGHIjklMnoPqrstuVwxYz0123456\nJWT_SECRET=9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c\nGITHUB_TOKEN=ghp_AbCdEfGhIjKlMnOpQrStUvWxYz0123456789\nPORT=3000\nNODE_ENV=production","cadence":"90","today":"","lastRotated":"JWT_SECRET=2026-01-15\nDATABASE_URL=2026-04-01","showExample":true,"showTimeline":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/env-file-secret-rotation-planner

Parameters

NameTypeRequiredDescription
envContenttextareaYes—
cadenceselectNo—
todaydateNo—
lastRotatedtextareaNo—
showExamplecheckboxNo—
showTimelinecheckboxNo—

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-env-file-secret-rotation-planner": {
      "name": "env-file-secret-rotation-planner",
      "description": "Paste a .env file and get a staged secret-rotation plan. Detects database URLs, API keys, auth tokens, private keys, cloud credentials, payment keys and encryption secrets, scores each by exposure and age, and schedules them across a 4-week rotation timeline with a dual-key checklist and a generated .env.example. Optional last-rotated dates and a configurable cadence (30/90/180/365 days) drive compliance scoring.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=env-file-secret-rotation-planner",
      "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": "env-file-secret-rotation-planner",
    "arguments": {
  "envContent": "DATABASE_URL=postgres://app:[email protected]:5432/shop\nSTRIPE_SECRET_KEY=sk_live_51HqkAbCdefGHIjklMnoPqrstuVwxYz0123456\nJWT_SECRET=9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c\nGITHUB_TOKEN=ghp_AbCdEfGhIjKlMnOpQrStUvWxYz0123456789\nPORT=3000\nNODE_ENV=production",
  "cadence": "90",
  "today": "",
  "lastRotated": "JWT_SECRET=2026-01-15\nDATABASE_URL=2026-04-01",
  "showExample": true,
  "showTimeline": 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