Documentation
¶
Overview ¶
Package config loads and validates the server's environment-variable configuration. There is no config file and no flag-driven config — the only flags on the binary are operational (--version, --dump-schemas, --skip-probe). Everything else is env.
Validation runs once at process start. A missing or malformed required variable produces a clear error and the caller (cmd/pipedrive-mcp/main.go) exits non-zero before announcing the MCP server, so an LLM client never sees a half-initialized server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDomain ¶
ValidateDomain normalizes (trim, lowercase) and validates a Pipedrive workspace subdomain. Shared between Load and the login/logout subcommands so all entry points apply the same regex.
Types ¶
type Config ¶
type Config struct {
CompanyDomain string
LogLevel LogLevel
LogFormat LogFormat
EnableDestructive bool
DryRun bool
HTTPTimeout time.Duration
}
Config is the validated runtime configuration. The API token is resolved separately by the credentials package — it is not part of Config so the env-var lookup logic doesn't fight with the keyring.