Skip to content

Commit a0e0109

Browse files
authored
Merge pull request #18 from modelcontextprotocol/basil/refactor_take2
Unify auth and MCP servers into single modular codebase
2 parents 22c7f74 + 38c30a4 commit a0e0109

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3933
-17905
lines changed

.env.example

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Server Configuration
2+
PORT=3232
3+
BASE_URI=http://localhost:3232
4+
5+
# Auth Mode Configuration
6+
# Options: 'internal' or 'external'
7+
#
8+
# - internal: Run auth server in-process (suitable for demo/development)
9+
# `npm run dev:internal` starts the server in this mode.
10+
# This mode is the default when AUTH_MODE is not set.
11+
#
12+
# - external: Use external auth server (production pattern)
13+
# `npm run dev:external` starts the server in this mode,
14+
# and also starts the demo auth server
15+
#
16+
AUTH_MODE=internal
17+
18+
# External Auth Server URL (required if AUTH_MODE=external,
19+
# ignored if AUTH_MODE=internal)
20+
#
21+
# Examples:
22+
# - Demo auth server running locally: http://localhost:3001
23+
# - Auth0: https://your-tenant.auth0.com
24+
# - Okta: https://your-domain.okta.com
25+
#
26+
AUTH_SERVER_URL=http://localhost:3001
27+
28+
# Redis Configuration (optional)
29+
# If not provided, session management will use in-memory storage
30+
# (sessions will be lost on server restart)
31+
#
32+
REDIS_URL=redis://localhost:6379
33+
REDIS_TLS=0
34+
35+
# NODE_ENV controls Redis connection failure behavior:
36+
# - development: Continue running if Redis connection fails (with warning)
37+
# - production: Exit immediately if Redis connection fails
38+
NODE_ENV=development

README.md

Lines changed: 178 additions & 463 deletions
Large diffs are not rendered by default.

auth-server/README.md

Lines changed: 0 additions & 123 deletions
This file was deleted.

auth-server/eslint.config.mjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

auth-server/jest.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)