config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config provides configuration loading for the MCP server.

Index

Constants

View Source
const (
	TransportStdio = "stdio"
	TransportHTTP  = "http"
)

Transport constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Shared
	APIURL    string // DEPLOYBASE_API_URL — defaults to https://api.deploybase.eu
	Transport string // TRANSPORT — "stdio" (default) or "http"
	Port      int    // PORT — HTTP listen port (default 8082)

	// stdio-only
	APIKey string // DEPLOYBASE_API_KEY — required for stdio transport

	// http-only
	ZitadelIssuerURL string // ZITADEL_ISSUER_URL — defaults to https://auth.deploybase.eu
	PublicURL        string // MCP_PUBLIC_URL — defaults to https://mcp.deploybase.eu
}

Config holds MCP server configuration.

func LoadConfig

func LoadConfig(transport string) (Config, error)

LoadConfig reads configuration from environment variables. transport overrides the TRANSPORT env var if non-empty (from --transport flag).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL