Commit a8ab770
committed
Comprehensive code quality and reliability improvements
- Fix panic-prone .unwrap() calls with proper error handling
- Fix SystemTime unwraps with safe fallback (unwrap_or(0))
- Fix infinite retry loop in client.rs with transport tracking
- Add exponential backoff for retries (100ms base, doubles each attempt)
- Forward MCP notifications instead of silently dropping them
- Add connection state tracking in multiplexing to avoid reconnecting
- Add graceful shutdown handling (SIGTERM/SIGINT) in stdio_proxy
- Mask bearer tokens in debug logs for security
- Secure OAuth token storage with 0600 file permissions
- Optimize Tokio features (specific vs "full") for smaller binary
- Use static OnceLock regex to avoid recompilation
- Support lowercase environment variables in config
- Remove panicking Default implementations
- Fix hardcoded response IDs to echo original request ID
- Pre-allocate vectors and reduce excessive cloning
- Store JoinHandle for spawned log task in server
- Add OAuth discovery with dynamic client registration1 parent 6a139eb commit a8ab770
File tree
20 files changed
+1649
-194
lines changed- crates
- mcp-client
- src
- transport
- mcp-config/src
- mcp-connect
- src
- commands
- mcp-proxy/src
- mcp-registry/src
- mcp-server/src
- mcp-types/src
20 files changed
+1649
-194
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments