File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { MCPAgent, MCPClient } from '../index.js'
2323config ( )
2424
2525async function main ( ) {
26- const config = { mcpServers : { http : { url : 'https://hf.com/mcp ' } } }
26+ const config = { mcpServers : { http : { url : 'https://gitmcp.io/docs ' } } }
2727
2828 // Create MCPClient from config
2929 const client = MCPClient . fromDict ( config )
@@ -36,10 +36,12 @@ async function main() {
3636
3737 // Run the query
3838 const result = await agent . run (
39- 'Find the best restaurant in San Francisco USING GOOGLE SEARCH ' ,
39+ 'Which tools are available and what can they do? ' ,
4040 30 ,
4141 )
4242 console . log ( `\nResult: ${ result } ` )
43+
44+ await agent . close ( )
4345}
4446
4547if ( import . meta. url === `file://${ process . argv [ 1 ] } ` ) {
You can’t perform that action at this time.
0 commit comments