diff --git a/README.md b/README.md index 34ee2ca..4b07123 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/cordra_mcp/config.py b/src/cordra_mcp/config.py index dc8e34a..d8dfd23 100644 --- a/src/cordra_mcp/config.py +++ b/src/cordra_mcp/config.py @@ -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,