Skip to main content

MCP server for reading and writing .env variables (email/SMTP and custom keys)

Project description

nlp2env

AI Cost Tracking

PyPI Version Python License AI Cost Human Time Model

  • 🤖 LLM usage: $0.4064 (1 commits)
  • 👤 Human dev: ~$200 (2.0h @ $100/h, 30min dedup)

Generated on 2026-06-08 using openrouter/qwen/qwen3-coder-next


MCP server do odczytu i zapisu pliku .env — w tym profilu SMTP/email dla workflow send_email (nlp2dsl-worker).

Instalacja

cd ~/github/semcod/nlp2env
pip install -e ".[mcp]"

Uruchomienie MCP

export NLP2ENV_ENV_FILE=~/github/wronai/todomat/.env   # opcjonalnie
nlp2env-mcp

Narzędzia MCP

Tool Opis
nlp2env_interfaces Metadane, ścieżka .env, profile
nlp2env_list Lista kluczy (sekrety zamaskowane)
nlp2env_get Odczyt kluczy (comma-separated)
nlp2env_set Zapis z JSON {"SMTP_HOST":"..."}
nlp2env_set_email Zapis profilu SMTP (host, user, password, …)
nlp2env_apply_text Parsuj bloki KEY=value z tekstu
nlp2env_backup Kopia .env.nlp2env/backups/
nlp2env_email_status Czy SMTP jest kompletny

Profil email (nlp2dsl)

Klucze zgodne z nlp2dsl worker:

SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_TLS, SMTP_FROM, SMTP_TIMEOUT

Po zapisie zrestartuj worker:

docker compose -f ~/github/wronai/nlp2dsl/docker-compose.yml restart worker

Cursor (mcp.json)

{
  "mcpServers": {
    "nlp2env": {
      "command": "nlp2env-mcp",
      "env": {
        "NLP2ENV_ENV_FILE": "/home/tom/github/wronai/todomat/.env"
      }
    }
  }
}

Testy

pip install -e ".[dev]"
pytest
./examples/run-e2e.sh

Przykłady NL → .env (Docker + README): examples/README.md.

License

Licensed under Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlp2env-0.1.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlp2env-0.1.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file nlp2env-0.1.2.tar.gz.

File metadata

  • Download URL: nlp2env-0.1.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nlp2env-0.1.2.tar.gz
Algorithm Hash digest
SHA256 acb058087416f3ea7f8292081d74657e99d3c9a76c2e97c18bb2e2ae10019d86
MD5 71e12e643c05ca0587df2e22c538626e
BLAKE2b-256 87f3be6eccb679c3dbbbc9a118b49152168a3bc8d3d03fcb2ce2d1e87d510a3f

See more details on using hashes here.

File details

Details for the file nlp2env-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nlp2env-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nlp2env-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32176116b5481a0e223bc2608b1931b10af740f60d259fda9d8d445c45570fcb
MD5 d0c76b834545896efaac871711116d16
BLAKE2b-256 bec72f3a71e89549cc810f11d2f68a3cb165765c1161c4c941dd9f51fbb5910f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page