mirror of
https://github.com/dnlbauer/cordra-mcp.git
synced 2026-09-11 14:15:31 +00:00
fix: update project name to 'cordra-mcp' in configuration files
This commit is contained in:
43
src/cordra_mcp/config.py
Normal file
43
src/cordra_mcp/config.py
Normal file
@@ -0,0 +1,43 @@
|
||||
"""Configuration settings for the MCP Cordra server."""
|
||||
|
||||
|
||||
from pydantic import Field
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class CordraConfig(BaseSettings):
|
||||
"""Configuration for connecting to a Cordra repository."""
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="CORDRA_",
|
||||
env_file=".env",
|
||||
env_file_encoding="utf-8",
|
||||
case_sensitive=False,
|
||||
)
|
||||
|
||||
cordra_url: str = Field(
|
||||
default="https://localhost:8443",
|
||||
description="Base URL of the Cordra repository"
|
||||
)
|
||||
username: str | None = Field(
|
||||
default=None,
|
||||
description="Username for Cordra authentication"
|
||||
)
|
||||
password: str | None = Field(
|
||||
default=None,
|
||||
description="Password for Cordra authentication"
|
||||
)
|
||||
max_search_results: int = Field(
|
||||
default=1000,
|
||||
description="Maximum number of search results to return"
|
||||
)
|
||||
verify_ssl: bool = Field(
|
||||
default=True,
|
||||
description="Whether to verify SSL certificates"
|
||||
)
|
||||
timeout: int = Field(
|
||||
default=30,
|
||||
description="Request timeout in seconds"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user