File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,12 @@ import WebSocket from "ws";
99import express from "express" ;
1010import { Client } from "./client/index.js" ;
1111import { SSEClientTransport } from "./client/sse.js" ;
12+ import { StdioClientTransport } from "./client/stdio.js" ;
13+ import { WebSocketClientTransport } from "./client/websocket.js" ;
1214import { Server } from "./server/index.js" ;
1315import { SSEServerTransport } from "./server/sse.js" ;
14- import { WebSocketClientTransport } from "./client/websocket.js" ;
15- import { StdioClientTransport } from "./client/stdio.js" ;
1616import { StdioServerTransport } from "./server/stdio.js" ;
17+ import { ListResourcesResultSchema } from "./types.js" ;
1718
1819async function runClient ( url_or_command : string , args : string [ ] ) {
1920 const client = new Client ( {
@@ -46,6 +47,8 @@ async function runClient(url_or_command: string, args: string[]) {
4647 await client . connect ( clientTransport ) ;
4748 console . log ( "Initialized." ) ;
4849
50+ await client . request ( { method : "resources/list" , params : { } } , ListResourcesResultSchema ) ;
51+
4952 await client . close ( ) ;
5053 console . log ( "Closed." ) ;
5154}
You can’t perform that action at this time.
0 commit comments