Skip to content

Commit cce63da

Browse files
ochafikclaude
andcommitted
feat: add generated schemas index for future use
Add src/generated/index.ts that re-exports generated schemas and spec types. This provides a foundation for eventually using generated schemas as the source of truth while maintaining backwards compatibility. Current state (zero breaking changes): - types.ts unchanged - all existing exports preserved - Generated schemas available in src/generated/ for reference - 95 comparison tests verify equivalence between generated and manual schemas 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 30cfefc commit cce63da

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/generated/index.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Generated Zod schemas from spec.types.ts with SDK-specific extensions.
3+
*
4+
* This module re-exports all generated schemas and adds SDK-specific schemas
5+
* that are not part of the MCP specification but are needed for SDK functionality.
6+
*
7+
* ## Usage
8+
*
9+
* For now, continue using `@modelcontextprotocol/sdk/types.js` for production.
10+
* This generated module is available for reference and comparison.
11+
*
12+
* ## Structure
13+
*
14+
* - `spec.schemas.ts` - Auto-generated from spec.types.ts via ts-to-zod
15+
* - `index.ts` (this file) - Re-exports + SDK-specific extras
16+
*/
17+
18+
// Re-export all generated schemas
19+
export * from './spec.schemas.js';
20+
21+
// Re-export types from spec (for convenience)
22+
export * from '../spec.types.js';

0 commit comments

Comments
 (0)