Settings
Global configuration and environment-driven settings.
MCPSettings
Python
arcade_mcp_server.settings.MCPSettingsMain settings container.
Bases: BaseSettings
from_env()
Python
from_env() classmethodCreate settings from environment variables.
to_dict()
Python
to_dict()Convert settings to dictionary.
tool_secrets()
Python
tool_secrets()Get secrets.
Sub-settings
ServerSettings
Python
arcade_mcp_server.settings.ServerSettingsServer-related settings.
Bases: BaseSettings
MiddlewareSettings
Python
arcade_mcp_server.settings.MiddlewareSettingsMiddleware-related settings.
Bases: BaseSettings
validate_log_level()
Python
validate_log_level(v) classmethodValidate log level.
NotificationSettings
Python
arcade_mcp_server.settings.NotificationSettingsNotification-related settings.
Bases: BaseSettings
TransportSettings
Python
arcade_mcp_server.settings.TransportSettingsTransport-related settings.
Bases: BaseSettings
ArcadeSettings
Python
arcade_mcp_server.settings.ArcadeSettingsArcade-specific settings.
Bases: BaseSettings
ToolEnvironmentSettings
Python
arcade_mcp_server.settings.ToolEnvironmentSettingsenvironment settings.
Bases: BaseSettings
Every environment variable that is not prefixed with one of the prefixes for the other settings will be added to the environment as an available tool secret in the ToolContext.
model_post_init()
Python
model_post_init(__context)Populate tool_environment from process env if not provided.
Examples
Basic configuration
Python
from arcade_mcp_server.settings import MCPSettings
settings = MCPSettings(
debug=True,
middleware=MCPSettings.middleware.__class__(
enable_logging=True,
mask_error_details=False,
),
server=MCPSettings.server.__class__(
title="My MCP Server",
instructions="Use responsibly",
),
transport=MCPSettings.transport.__class__(
http_host="0.0.0.0",
http_port=8000,
),
)Loading from environment
Python
from arcade_mcp_server.settings import MCPSettings
# Values like ARCADE_MCP_DEBUG, ARCADE_MCP_HTTP_PORT, etc. are parsed
settings = MCPSettings()Last updated on