feat: change settings prefix to avoid clashes with projects using cordra

This commit is contained in:
Daniel Bauer
2025-06-30 13:01:21 +02:00
parent 3c2a2334dc
commit 35d304a6c4
2 changed files with 8 additions and 8 deletions

View File

@@ -27,14 +27,14 @@ Currently, none.
## Configuration
The MCP server can be configured using environment variables with the `CORDRA_` prefix or a `.env` file:
The MCP server can be configured using environment variables with the `MCP_CORDRA_` prefix or a `.env` file:
- `CORDRA_BASE_URL` - Cordra server URL (default: `https://localhost:8443`)
- `CORDRA_USERNAME` - Username for authentication (optional)
- `CORDRA_PASSWORD` - Password for authentication (optional)
- `CORDRA_VERIFY_SSL` - SSL certificate verification (default: `true`)
- `CORDRA_TIMEOUT` - Request timeout in seconds (default: `30`)
- `CORDRA_MAX_SEARCH_RESULTS` - Maximum search results (default: `1000`)
- `MCP_CORDRA_BASE_URL` - Cordra server URL (default: `https://localhost:8443`)
- `MCP_CORDRA_USERNAME` - Username for authentication (optional)
- `MCP_CORDRA_PASSWORD` - Password for authentication (optional)
- `MCP_CORDRA_VERIFY_SSL` - SSL certificate verification (default: `true`)
- `MCP_CORDRA_TIMEOUT` - Request timeout in seconds (default: `30`)
- `MCP_CORDRA_MAX_SEARCH_RESULTS` - Maximum search results (default: `1000`)
## Usage

View File

@@ -8,7 +8,7 @@ class CordraConfig(BaseSettings):
"""Configuration for connecting to a Cordra repository."""
model_config = SettingsConfigDict(
env_prefix="CORDRA_",
env_prefix="MCP_CORDRA_",
env_file=".env",
env_file_encoding="utf-8",
case_sensitive=False,