Documentation
¶
Index ¶
- func AdminEncryptionKey(admin AdminConfig) ([]byte, error)
- func HeaderMap(headers map[string]string) http.Header
- type AdminConfig
- type AuthConfig
- type BackendConfig
- type Config
- func (cfg *Config) AllScopes() []string
- func (cfg *Config) Backend(id string) (BackendConfig, bool)
- func (cfg *Config) ImmutableEqual(other *Config) error
- func (cfg *Config) MCPPath() string
- func (cfg *Config) ResourceMetadataPath() string
- func (cfg *Config) ResourceMetadataURL() string
- func (cfg *Config) Validate() error
- type Duration
- type OAuthConfig
- type ServerConfig
- type ToolRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminEncryptionKey ¶ added in v1.2.0
func AdminEncryptionKey(admin AdminConfig) ([]byte, error)
Types ¶
type AdminConfig ¶ added in v1.2.0
type AuthConfig ¶
type AuthConfig struct {
Issuer string `yaml:"issuer"`
}
type BackendConfig ¶
type BackendConfig struct {
ID string `yaml:"id"`
URL string `yaml:"url"`
Required bool `yaml:"required"`
RequiredScopes []string `yaml:"required_scopes"`
ToolRules []ToolRule `yaml:"tool_rules"`
RequestTimeout Duration `yaml:"request_timeout"`
AllowInsecureHTTP bool `yaml:"allow_insecure_http"`
Headers map[string]string `yaml:"headers"`
OAuth *OAuthConfig `yaml:"oauth"`
}
func (BackendConfig) RequiredToolScopes ¶ added in v1.1.0
func (backend BackendConfig) RequiredToolScopes(toolName string) []string
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Auth AuthConfig `yaml:"auth"`
Admin AdminConfig `yaml:"admin"`
Backends []BackendConfig `yaml:"backends"`
}
func LoadStatic ¶ added in v1.2.0
LoadStatic loads server, auth, and admin configuration without expanding or validating YAML backends when the SQLite-backed admin platform is enabled. This lets an initialized database remain the sole backend source even after bootstrap-only environment variables have been removed.
func (*Config) ImmutableEqual ¶
func (*Config) ResourceMetadataPath ¶
func (*Config) ResourceMetadataURL ¶
type OAuthConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Listen string `yaml:"listen"`
PublicURL string `yaml:"public_url"`
PageSize int `yaml:"page_size"`
RequestTimeout Duration `yaml:"request_timeout"`
DrainTimeout Duration `yaml:"drain_timeout"`
RefreshInterval Duration `yaml:"refresh_interval"`
CatalogTTL Duration `yaml:"catalog_ttl"`
MaxRequestBodyBytes int64 `yaml:"max_request_body_bytes"`
AllowedOrigins []string `yaml:"allowed_origins"`
}
Click to show internal directories.
Click to hide internal directories.