|
1 | 1 | /** |
2 | | - * Generated Zod schemas from spec.types.ts with SDK-specific extensions. |
| 2 | + * Generated Zod Schemas from MCP Specification |
3 | 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. |
| 4 | + * This module provides auto-generated Zod schemas from spec.types.ts, |
| 5 | + * plus SDK version constants. |
6 | 6 | * |
7 | | - * ## Usage |
| 7 | + * For production use with SDK-specific refinements and extras, |
| 8 | + * import from '@modelcontextprotocol/sdk/types.js'. |
8 | 9 | * |
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 |
| 10 | + * @see spec.types.ts - Source TypeScript interfaces from MCP spec |
| 11 | + * @see spec.schemas.ts - Auto-generated Zod schemas |
| 12 | + * @see ../types.ts - Production schemas with SDK refinements |
16 | 13 | */ |
17 | 14 |
|
18 | 15 | // Re-export all generated schemas |
19 | 16 | export * from './spec.schemas.js'; |
20 | 17 |
|
21 | | -// Re-export types from spec (for convenience) |
| 18 | +// Re-export spec types (interfaces/types from MCP specification) |
22 | 19 | export * from '../spec.types.js'; |
| 20 | + |
| 21 | +// Re-export SDK version constants (these differ from spec's DRAFT version) |
| 22 | +export { |
| 23 | + LATEST_PROTOCOL_VERSION, |
| 24 | + DEFAULT_NEGOTIATED_PROTOCOL_VERSION, |
| 25 | + SUPPORTED_PROTOCOL_VERSIONS, |
| 26 | + JSONRPC_VERSION, |
| 27 | +} from '../types.js'; |
0 commit comments