You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+26-16Lines changed: 26 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,9 @@ The SDK is organized into three main layers:
36
36
2.**Protocol Layer** (`src/shared/protocol.ts`) - The abstract `Protocol` class that handles JSON-RPC message routing, request/response correlation, capability negotiation, and transport management. Both `Client` and `Server` extend this class.
37
37
38
38
3.**High-Level APIs**:
39
-
-`Client` (`src/client/index.ts`) - Low-level client extending Protocol with typed methods for all MCP operations
40
-
-`Server` (`src/server/index.ts`) - Low-level server extending Protocol with request handler registration
41
-
-`McpServer` (`src/server/mcp.ts`) - High-level server API with simplified resource/tool/prompt registration
39
+
-`Client` (`src/client/index.ts`) - Low-level client extending Protocol with typed methods for all MCP operations
40
+
-`Server` (`src/server/index.ts`) - Low-level server extending Protocol with request handler registration
41
+
-`McpServer` (`src/server/mcp.ts`) - High-level server API with simplified resource/tool/prompt registration
42
42
43
43
### Transport System
44
44
@@ -65,23 +65,27 @@ Transports (`src/shared/transport.ts`) provide the communication layer:
65
65
### Experimental Features
66
66
67
67
Located in `src/experimental/`:
68
+
68
69
-**Tasks**: Long-running task support with polling/resumption (`src/experimental/tasks/`)
69
70
70
71
### Zod Compatibility
71
72
72
73
The SDK uses `zod/v4` internally but supports both v3 and v4 APIs. Compatibility utilities:
74
+
73
75
-`src/server/zod-compat.ts` - Schema parsing helpers that work across versions
74
76
-`src/server/zod-json-schema-compat.ts` - Converts Zod schemas to JSON Schema
0 commit comments