Skip to main content

Module config

Module config 

Source
Expand description

Configuration structs for the Soma MCP server.

Values are loaded in priority order:

  1. config.toml (checked in, defaults only — no secrets)
  2. Environment variables (SOMA_*, SOMA_MCP_*)

Customize: rename SomaConfig to match your service. Adjust env prefixes throughout. Add any domain-specific config fields you need.

Structs§

AuthConfig
OAuth / JWT auth sub-config.
Config
Top-level config (maps to config.toml sections).
McpConfig
MCP HTTP server configuration.
SomaConfig
Config for the Soma runtime or deployed platform API.

Enums§

AuthMode
EffectiveRuntimeMode
RuntimeMode
TraceHeaderMode

Functions§

default_data_dir
Return the default local data directory for this service.
load_dotenv
Load <appdata>/.env (~/.<service>/.env on bare metal, /data/.env in a container) into the process environment if present.