Commit e9581b0
feat: add checksum-based MCP type validation and auto-regeneration
Implement automatic detection of MCP tool changes with FNV-1a hash-based
checksum validation. Types now regenerate only when tools change, improving
startup performance and ensuring type definitions stay synchronized.
Features:
- Checksum calculation for tool signatures (namespace + input schema)
- Automatic regeneration when MCP tools change
- Skip regeneration when tools unchanged (faster startup)
- Configurable type distribution via CODEMODE_TYPE_COPY_PATH env var
- Persistent checksum storage in generated/mcp.d.ts.checksum
Changes:
- Update @modelcontextprotocol/sdk 0.4.0 → 1.18.2 (protocol compatibility)
- Add configurable CodeGenOptions.copyToPath parameter
- Enhance agent instructions to read mcp://types/declarations resource
- Improve MCP server connection logging and debugging
BREAKING CHANGE: Server constructor updated for MCP SDK v1.18.2
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e098ad2 commit e9581b0
8 files changed
Lines changed: 4375 additions & 277 deletions
File tree
- generated
- src
- codegen
- mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments