mirror of
https://github.com/latinogino/dolibarr-mcp.git
synced 2026-04-24 10:35:35 +02:00
Improve validation, correlation IDs, and client safeguards
This commit is contained in:
@@ -9,6 +9,11 @@ host application that will launch the server.
|
||||
| `DOLIBARR_URL` / `DOLIBARR_SHOP_URL` | Base API URL, e.g. `https://your-dolibarr.example.com/api/index.php` (legacy configs that still export `DOLIBARR_BASE_URL` are also honoured). |
|
||||
| `DOLIBARR_API_KEY` | Personal Dolibarr API token assigned to your user. |
|
||||
| `LOG_LEVEL` | Optional logging level (`INFO`, `DEBUG`, `WARNING`, …). |
|
||||
| `ALLOW_REF_AUTOGEN` | When `true`, the wrapper auto-generates missing `ref` values for create operations. |
|
||||
| `REF_AUTOGEN_PREFIX` | Prefix used for generated references (default `AUTO`). |
|
||||
| `DEBUG_MODE` | When `true`, request/response bodies are logged without secrets. |
|
||||
| `MAX_RETRIES` | Retries for transient HTTP errors (default `2`). |
|
||||
| `RETRY_BACKOFF_SECONDS` | Base backoff for retries (default `0.5`). |
|
||||
|
||||
## Example `.env`
|
||||
|
||||
@@ -16,6 +21,9 @@ host application that will launch the server.
|
||||
DOLIBARR_URL=https://your-dolibarr.example.com/api/index.php
|
||||
DOLIBARR_API_KEY=your_api_key
|
||||
LOG_LEVEL=INFO
|
||||
ALLOW_REF_AUTOGEN=true
|
||||
REF_AUTOGEN_PREFIX=AUTO
|
||||
DEBUG_MODE=false
|
||||
```
|
||||
|
||||
The [`Config` class](../src/dolibarr_mcp/config.py) is built with
|
||||
|
||||
Reference in New Issue
Block a user