File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ npm install @modelcontextprotocol/sdk
24
24
``` typescript
25
25
import { Client } from " @modelcontextprotocol/sdk/client/index.js" ;
26
26
import { StdioClientTransport } from " @modelcontextprotocol/sdk/client/stdio.js" ;
27
+ import {
28
+ ListResourcesRequestSchema ,
29
+ ReadResourceRequestSchema ,
30
+ } from " @modelcontextprotocol/sdk/types.js" ;
27
31
28
32
const transport = new StdioClientTransport ({
29
33
command: " path/to/server" ,
@@ -61,6 +65,10 @@ const resourceContent = await client.request(
61
65
``` typescript
62
66
import { Server } from " @modelcontextprotocol/sdk/server/index.js" ;
63
67
import { StdioServerTransport } from " @modelcontextprotocol/sdk/server/stdio.js" ;
68
+ import {
69
+ ListResourcesRequestSchema ,
70
+ ReadResourceRequestSchema ,
71
+ } from " @modelcontextprotocol/sdk/types.js" ;
64
72
65
73
const server = new Server ({
66
74
name: " example-server" ,
You can’t perform that action at this time.
0 commit comments