Skip to content

Commit 657079e

Browse files
committed
Fix some Pydanitc warnings
1 parent ef6f2b0 commit 657079e

File tree

3 files changed

+133
-108
lines changed

3 files changed

+133
-108
lines changed

mcpgateway/config.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,14 @@ class Settings(BaseSettings):
4949
"""MCP Gateway configuration settings."""
5050

5151
# Basic Settings
52-
app_name: str = Field("MCP_Gateway", env="APP_NAME")
53-
host: str = Field("127.0.0.1", env="HOST")
54-
port: int = Field(4444, env="PORT")
52+
app_name: str = "MCP_Gateway"
53+
host: str = "127.0.0.1"
54+
port: int = 4444
5555
database_url: str = "sqlite:///./mcp.db"
5656
templates_dir: Path = Path("mcpgateway/templates")
5757
# Absolute paths resolved at import-time (still override-able via env vars)
58-
templates_dir: Path = Field(
59-
default=files("mcpgateway") / "templates",
60-
env="TEMPLATES_DIR",
61-
)
62-
static_dir: Path = Field(
63-
default=files("mcpgateway") / "static",
64-
env="STATIC_DIR",
65-
)
58+
templates_dir: Path = files("mcpgateway") / "templates"
59+
static_dir: Path = files("mcpgateway") / "static"
6660
app_root_path: str = ""
6761

6862
# Protocol

0 commit comments

Comments
 (0)