perf: lazy MCP SDK, incremental backend builds
The MCP SDK cost ~270ms of require time on every server boot even with zero connectors configured. Load it on first connector use instead: type-only imports stay, the Client/transport pair loads inside withMcpClient, and the OAuth 'auth' entry point loads behind a tiny wrapper at its two call sites. Eager module graph drops 674 -> 472 modules; boot 764ms -> 581ms. tsconfig gains 'incremental': full backend build 8.3s cold -> 4.4s warm. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUsMXzBsEJ27DjJVPSfW5o
| Repository | eliziff/Beaver |
|---|---|
| Author | Eli Ziff <eliasziff@gmail.com> |
| Authored | |
| Parents | b0670521 |
| Stats | 3 files changed , +23 , -6 |
| Part of | Frontend UI compaction / simplification pass |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-b7c05711.md
from inside the repo you want the change in.