Detailed explanation of mcp-gateway.yaml configuration file
${VAR:default}
syntax for environment variable injection. If environment variables are not set, default values will be used.
A common practice is to inject through different .env
, .env.development
, .env.prod
files, though you can also directly modify the configuration to hardcode a value.
mcp-gateway
detect updates and perform hot reloads without restarting the service when configuration updates occur.
kill -SIGHUP <pid>
or nginx -s reload
mcp-gateway
will listen on an independent portsignal
and api
are always enabled by defaultsender
apiserver
can only use this modereceiver
mcp-gateway
is recommended to use only this modeboth
mcp-gateway
can use this approachenabled: true
in the configuration.Priority Check
allow_headers
is configured (non-empty), it takes priority and ignore_headers
is completely ignoredAllow List Mode
allow_headers
is set, only headers in this list are forwarded, all others are ignoredIgnore List Mode
allow_headers
is empty, headers in ignore_headers
list are filtered out, others are forwardedCase Sensitivity
case_insensitive
setting for both allow and ignore listsAuthorization
, X-API-Key
, and X-Request-ID
headers are forwarded.
Accept
, Host
, Cookie
, and User-Agent
are forwarded.
custom_headers
argument:
/app/configs/mcp-gateway.yaml
./configs/mcp-gateway.yaml
Configuration Update Detection
Configuration Validation
Smooth Transition
Single Machine Deployment
db
with SQLitecomposite
or signal
memory
or redis
Cluster Deployment
db
with PostgreSQL or MySQLredis
or composite
redis
Production Environment