Implement .env configuration

This commit is contained in:
Jason Thistlethwaite
2026-04-27 22:52:27 +00:00
parent 16feb51b12
commit 324084d419
8 changed files with 259 additions and 9 deletions
+12 -3
View File
@@ -44,6 +44,15 @@ export VOIPMS_API_USERNAME='you@example.com'
export VOIPMS_API_PASSWORD='your-api-password'
```
It also loads a project-root `.env` file when present:
```bash
cp .env-example .env
```
Values already exported in the process environment, and values passed with CLI
options, take precedence over `.env` values.
Credentials can also be passed directly:
```bash
@@ -51,6 +60,7 @@ Credentials can also be passed directly:
```
The endpoint can be overridden with `VOIPMS_API_ENDPOINT` or `--endpoint`.
CDR timezone defaults can be set with `VOIPMS_TIMEZONE`.
## CLI Overview
@@ -261,9 +271,8 @@ be run behind a trusted network, firewall, VPN, or tunnel.
Start it with:
```bash
export VOIPMS_API_USERNAME='you@example.com'
export VOIPMS_API_PASSWORD='your-api-password'
export MCP_AUTH_TOKEN='choose-a-long-random-token'
cp .env-example .env
# Edit .env and optionally add MCP_AUTH_TOKEN='choose-a-long-random-token'
./bin/serve-mcp.sh
```