File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ npm install @modelcontextprotocol/sdk
22
22
### Creating a Client
23
23
24
24
``` typescript
25
- import { Client } from " @modelcontextprotocol/sdk/client" ;
26
- import { StdioClientTransport } from " @modelcontextprotocol/sdk/client/stdio" ;
25
+ import { Client } from " @modelcontextprotocol/sdk/client/index.js " ;
26
+ import { StdioClientTransport } from " @modelcontextprotocol/sdk/client/stdio.js " ;
27
27
28
28
const transport = new StdioClientTransport ({
29
29
command: " path/to/server" ,
@@ -59,8 +59,8 @@ const resourceContent = await client.request(
59
59
### Creating a Server
60
60
61
61
``` typescript
62
- import { Server } from " @modelcontextprotocol/sdk/server" ;
63
- import { StdioServerTransport } from " @modelcontextprotocol/sdk/server/stdio" ;
62
+ import { Server } from " @modelcontextprotocol/sdk/server/index.js " ;
63
+ import { StdioServerTransport } from " @modelcontextprotocol/sdk/server/stdio.js " ;
64
64
65
65
const server = new Server ({
66
66
name: " example-server" ,
You can’t perform that action at this time.
0 commit comments