@@ -65,8 +65,8 @@ Complete reference for all MCP Auth Proxy configuration options.
6565| Option | Environment Variable | Default | Description |
6666| -------------- | -------------------- | -------- | ---------------------------- |
6767| ` --listen ` | ` LISTEN ` | ` :80 ` | Address to listen on |
68- | ` --listen-tls ` | ` LISTEN_TLS ` | ` :443 ` | Address to listen on for TLS |
69- | ` --data ` | ` DATA ` | ` ./data ` | Path to the data directory |
68+ | ` --listen-tls ` | ` TLS_LISTEN ` | ` :443 ` | Address to listen on for TLS |
69+ | ` --data ` | ` DATA_PATH ` | ` ./data ` | Path to the data directory |
7070
7171### Proxy Options
7272
@@ -75,136 +75,4 @@ Complete reference for all MCP Auth Proxy configuration options.
7575| ` --proxy-bearer-token ` | ` PROXY_BEARER_TOKEN ` | - | Bearer token to add to Authorization header when proxying requests |
7676| ` --proxy-headers ` | ` PROXY_HEADERS ` | - | Comma-separated list of headers to add when proxying requests (format: Header1: Value1 ,Header2: Value2 ) |
7777
78- ## Environment Variables
79-
80- All configuration options can be set via environment variables:
81-
82- ``` bash
83- # Core settings
84- export EXTERNAL_URL=" https://{your-domain}"
85- export NO_AUTO_TLS=" false"
86- export TLS_ACCEPT_TOS=" true"
87- export DATA=" ./data"
88-
89- # Authentication
90- export PASSWORD=" your-secure-password"
91-
92- # Google OAuth
93- export GOOGLE_CLIENT_ID=" your-google-client-id"
94- export GOOGLE_CLIENT_SECRET=" your-google-client-secret"
95- 96-
97- # GitHub OAuth
98- export GITHUB_CLIENT_ID=" your-github-client-id"
99- export GITHUB_CLIENT_SECRET=" your-github-client-secret"
100- export GITHUB_ALLOWED_USERS=" username1,username2"
101-
102- # OIDC
103- export OIDC_CONFIGURATION_URL=" https://provider.com/.well-known/openid-configuration"
104- export OIDC_CLIENT_ID=" your-oidc-client-id"
105- export OIDC_CLIENT_SECRET=" your-oidc-client-secret"
106- 107-
108- ./mcp-auth-proxy -- your-mcp-command
109- ```
110-
111- ## Docker Configuration
112-
113- ### Docker Compose
114-
115- ``` yaml
116- version : " 3.8"
117- services :
118- mcp-auth-proxy :
119- image : ghcr.io/sigbit/mcp-auth-proxy:latest
120- ports :
121- - " 80:80"
122- - " 443:443"
123- environment :
124- - EXTERNAL_URL=https://{your-domain}
125- - TLS_ACCEPT_TOS=true
126- - PASSWORD=your-secure-password
127- - GOOGLE_CLIENT_ID=your-google-client-id
128- - GOOGLE_CLIENT_SECRET=your-google-client-secret
129- 130- volumes :
131- - ./data:/data
132- command : ["npx", "-y", "@modelcontextprotocol/server-filesystem", "./"]
133- restart : unless-stopped
134- ` ` `
135-
136- ### Kubernetes Deployment
137-
138- ` ` ` yaml
139- apiVersion : apps/v1
140- kind : Deployment
141- metadata :
142- name : mcp-auth-proxy
143- spec :
144- replicas : 1
145- selector :
146- matchLabels :
147- app : mcp-auth-proxy
148- template :
149- metadata :
150- labels :
151- app : mcp-auth-proxy
152- spec :
153- containers :
154- - name : mcp-auth-proxy
155- image : ghcr.io/sigbit/mcp-auth-proxy:latest
156- ports :
157- - containerPort : 80
158- env :
159- - name : EXTERNAL_URL
160- value : " https://{your-domain}"
161- - name : NO_AUTO_TLS
162- value : " true"
163- - name : PASSWORD
164- valueFrom :
165- secretKeyRef :
166- name : mcp-auth-proxy-secrets
167- key : password
168- volumeMounts :
169- - name : data
170- mountPath : /data
171- args : ["npx", "-y", "@modelcontextprotocol/server-filesystem", "./"]
172- volumes :
173- - name : data
174- persistentVolumeClaim :
175- claimName : mcp-auth-proxy-data
176- ---
177- apiVersion : v1
178- kind : Service
179- metadata :
180- name : mcp-auth-proxy
181- spec :
182- selector :
183- app : mcp-auth-proxy
184- ports :
185- - port : 80
186- targetPort : 80
187- ---
188- apiVersion : networking.k8s.io/v1
189- kind : Ingress
190- metadata :
191- name : mcp-auth-proxy
192- annotations :
193- cert-manager.io/cluster-issuer : letsencrypt
194- spec :
195- tls :
196- - hosts :
197- - { your-domain }
198- secretName : mcp-auth-proxy-tls
199- rules :
200- - host : { your-domain }
201- http :
202- paths :
203- - path : /
204- pathType : Prefix
205- backend :
206- service :
207- name : mcp-auth-proxy
208- port :
209- number : 80
210- ` ` `
78+ For practical configuration examples including environment variables, Docker Compose, and Kubernetes deployments, see the [ Configuration Examples] ( ./examples.md ) page.
0 commit comments