mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-02-04 10:13:31 +00:00
chore: Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -15,7 +15,7 @@ class AppSettings(BaseSettings):
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="APP_",
|
||||
extra="allow",
|
||||
extra="ignore",
|
||||
)
|
||||
|
||||
mcp: MCPSettings = MCPSettings()
|
||||
|
||||
@@ -8,7 +8,7 @@ class CORSSettings(BaseSettings):
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="CORS_",
|
||||
extra="allow",
|
||||
extra="ignore",
|
||||
)
|
||||
|
||||
allow_origins: str = "*"
|
||||
|
||||
@@ -8,7 +8,7 @@ class MCPSettings(BaseSettings):
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="MCP_",
|
||||
extra="allow",
|
||||
extra="ignore",
|
||||
)
|
||||
|
||||
default_mcp: str = "math"
|
||||
|
||||
Reference in New Issue
Block a user