Documentation
¶
Overview ¶
Package app wires the gateway's components (store, approval workflow, proxy, API/dashboard) into one runnable process. It exists so cmd/mcp-shield/main.go stays a thin entrypoint and so integration tests can start/stop a fully wired gateway in-process on ephemeral ports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type Config ¶
type Config struct {
DatabasePath string
ProxyAddr string // e.g. ":8080"; empty defaults to ":8080"
APIAddr string // e.g. ":8081"; empty defaults to ":8081"
FailMode approval.FailMode
Servers []mcp.ServerConfig
TemplatesDir string // empty uses api.DefaultTemplatesDir
// UpstreamTimeout bounds one proxied request's upstream work; zero
// uses mcp.DefaultUpstreamTimeout.
UpstreamTimeout time.Duration
// NotifyConfigPath points at the notification config. A missing file
// disables notifications, which is the default.
NotifyConfigPath string
}
Click to show internal directories.
Click to hide internal directories.