You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Optional OAuth 2.1** - Add authentication when needed with simple configuration
16
16
17
+
## ⚠️ Production Storage Limitation
18
+
19
+
[!WARNING]
20
+
**Production Storage Limitation**
21
+
22
+
This template uses in-memory storage for all OAuth codes, tokens, and session data. All such data will be lost on server restart. This approach is suitable for development and testing only. For production deployments, you must implement persistent storage (e.g., database, external cache) to ensure reliability and compliance.
23
+
24
+
**Do not use in-memory storage in production environments.**
25
+
17
26
## Quick Start
18
27
19
28
Get your MCP server running immediately:
@@ -187,6 +196,7 @@ When you need OAuth 2.1 authentication with token validation, it's just a few co
187
196
### Quick Setup
188
197
189
198
1.**Add to your `.env` file:**
199
+
190
200
```bash
191
201
ENABLE_AUTH=true
192
202
OAUTH_ISSUER=https://your-provider.com
@@ -205,19 +215,22 @@ Your MCP server now requires valid OAuth tokens for all API requests.
205
215
### Use Cases
206
216
207
217
**Authentication Disabled** (`ENABLE_AUTH=false` or omitted):
218
+
208
219
- Public MCP servers
209
220
- Gateway-protected deployments (Pomerium, nginx with auth, etc.)
210
221
- Development and testing
211
222
- Internal corporate networks with perimeter security
212
223
213
224
**Authentication Enabled** (`ENABLE_AUTH=true`):
225
+
214
226
- Direct OAuth 2.1 with token validation
215
-
- Self-contained secure deployment
227
+
- Self-contained secure deployment
216
228
- Production servers without gateway infrastructure
0 commit comments