Update documentation for graceful degradation and /health endpoint

- Add /health endpoint to docs/endpoints.md for MCP server
- Document degraded mode behavior in Common Issues section
- Update OAuth metadata endpoint to mention 503 responses
This commit is contained in:
Basil Hosmer 2025-10-07 14:44:25 -04:00
commit a3ecfee613
No known key found for this signature in database

View file

@ -42,10 +42,10 @@ Local simulation of upstream IDP (would be external in production):
MCP resource server that implements the Model Context Protocol with delegated authentication.
### OAuth Metadata (Read-Only)
Provided by `mcpAuthMetadataRouter`:
- `GET /.well-known/oauth-authorization-server` - Returns metadata pointing to external auth server
- Tells clients to use auth server at :3001
- Returns 503 if auth server is unavailable (degraded mode)
- Read-only - no token issuance happens here
### MCP Resource Endpoints
@ -61,8 +61,13 @@ Provided by `mcpAuthMetadataRouter`:
All MCP endpoints require `Authorization: Bearer <token>` header. Tokens are validated by calling the auth server's `/introspect` endpoint.
### Utility Endpoints
- `GET /health` - Health check endpoint
- Returns status: `healthy` (auth available) or `degraded` (auth unavailable)
- Shows operational status of MCP, auth, and Redis services
### Static Assets
- `GET /` - Splash page (HTML)
- `GET /` - Splash page (HTML with degraded mode warning if auth unavailable)
- `GET /mcp-logo.png` - MCP logo
- `GET /styles.css` - Stylesheet