@@ -95,7 +95,7 @@ static async Task<int> Main(string[] args)
9595 {
9696 try
9797 {
98- var result = await client . CallToolAsync ( "hello" , [ ] ) ;
98+ var result = await client . CallToolAsync ( "hello" , new Dictionary < string , object ? > ( ) ) ;
9999 var content = result . Content . First ( c => c . Type == "text" ) ;
100100 await Console . Out . WriteLineAsync ( content . Text ) ;
101101 }
@@ -114,7 +114,8 @@ static async Task<int> Main(string[] args)
114114 {
115115 try
116116 {
117- var result = await client . CallToolAsync ( "set_base_directory" , new ( ) { [ "directory" ] = directory } ) ;
117+ var args = new Dictionary < string , object ? > { [ "directory" ] = directory } ;
118+ var result = await client . CallToolAsync ( "set_base_directory" , args ) ;
118119 await Console . Out . WriteLineAsync ( "Base directory set successfully. " ) ;
119120
120121 if ( result != null && result . Content != null && result . Content . Count > 0 )
@@ -136,7 +137,7 @@ static async Task<int> Main(string[] args)
136137 {
137138 try
138139 {
139- var result = await client . CallToolAsync ( "get_base_directory" , [ ] ) ;
140+ var result = await client . CallToolAsync ( "get_base_directory" , new Dictionary < string , object ? > ( ) ) ;
140141 var jsonResponse = result . Content . First ( c => c . Type == "text" ) . Text ;
141142
142143 try
@@ -194,7 +195,7 @@ static async Task<int> Main(string[] args)
194195 {
195196 try
196197 {
197- var result = await client . CallToolAsync ( "list_projects" , [ ] ) ;
198+ var result = await client . CallToolAsync ( "list_projects" , new Dictionary < string , object ? > ( ) ) ;
198199 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
199200 if ( jsonText != null )
200201 {
@@ -220,7 +221,8 @@ static async Task<int> Main(string[] args)
220221 {
221222 try
222223 {
223- var result = await client . CallToolAsync ( "list_files" , new ( ) { [ "projectPath" ] = projectPath } ) ;
224+ var args = new Dictionary < string , object ? > { [ "projectPath" ] = projectPath } ;
225+ var result = await client . CallToolAsync ( "list_files" , args ) ;
224226 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
225227 if ( jsonText != null )
226228 {
@@ -246,7 +248,8 @@ static async Task<int> Main(string[] args)
246248 {
247249 try
248250 {
249- var result = await client . CallToolAsync ( "open_file" , new ( ) { [ "filePath" ] = filePath } ) ;
251+ var args = new Dictionary < string , object ? > { [ "filePath" ] = filePath } ;
252+ var result = await client . CallToolAsync ( "open_file" , args ) ;
250253 await Console . Out . WriteLineAsync ( result . Content . First ( c => c . Type == "text" ) . Text ) ;
251254 }
252255 catch ( Exception ex )
@@ -264,7 +267,8 @@ static async Task<int> Main(string[] args)
264267 {
265268 try
266269 {
267- var result = await client . CallToolAsync ( "search_code" , new ( ) { [ "searchText" ] = searchText } ) ;
270+ var args = new Dictionary < string , object ? > { [ "searchText" ] = searchText } ;
271+ var result = await client . CallToolAsync ( "search_code" , args ) ;
268272 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
269273 if ( jsonText != null )
270274 {
@@ -288,7 +292,7 @@ static async Task<int> Main(string[] args)
288292 {
289293 try
290294 {
291- var result = await client . CallToolAsync ( "list_solutions" , [ ] ) ;
295+ var result = await client . CallToolAsync ( "list_solutions" , new Dictionary < string , object ? > ( ) ) ;
292296 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
293297 if ( jsonText != null )
294298 {
@@ -314,7 +318,8 @@ static async Task<int> Main(string[] args)
314318 {
315319 try
316320 {
317- var result = await client . CallToolAsync ( "list_projects_in_dir" , new ( ) { [ "directory" ] = directory } ) ;
321+ var args = new Dictionary < string , object ? > { [ "directory" ] = directory } ;
322+ var result = await client . CallToolAsync ( "list_projects_in_dir" , args ) ;
318323 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
319324 if ( jsonText != null )
320325 {
@@ -340,7 +345,8 @@ static async Task<int> Main(string[] args)
340345 {
341346 try
342347 {
343- var result = await client . CallToolAsync ( "list_source_files" , new ( ) { [ "projectDir" ] = projectDir } ) ;
348+ var args = new Dictionary < string , object ? > { [ "projectDir" ] = projectDir } ;
349+ var result = await client . CallToolAsync ( "list_source_files" , args ) ;
344350 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
345351 if ( jsonText != null )
346352 {
@@ -366,7 +372,8 @@ static async Task<int> Main(string[] args)
366372 {
367373 try
368374 {
369- var result = await client . CallToolAsync ( "add_ignore_patterns" , new ( ) { [ "patterns" ] = patterns } ) ;
375+ var args = new Dictionary < string , object ? > { [ "patterns" ] = patterns } ;
376+ var result = await client . CallToolAsync ( "add_ignore_patterns" , args ) ;
370377 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
371378 if ( jsonText != null )
372379 {
@@ -414,7 +421,8 @@ static async Task<int> Main(string[] args)
414421 {
415422 try
416423 {
417- var result = await client . CallToolAsync ( "remove_ignore_patterns" , new ( ) { [ "patterns" ] = patterns } ) ;
424+ var args = new Dictionary < string , object ? > { [ "patterns" ] = patterns } ;
425+ var result = await client . CallToolAsync ( "remove_ignore_patterns" , args ) ;
418426 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
419427 if ( jsonText != null )
420428 {
@@ -470,7 +478,7 @@ static async Task<int> Main(string[] args)
470478 {
471479 try
472480 {
473- var result = await client . CallToolAsync ( "get_state_file_location" , [ ] ) ;
481+ var result = await client . CallToolAsync ( "get_state_file_location" , new Dictionary < string , object ? > ( ) ) ;
474482 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
475483 if ( jsonText != null )
476484 {
@@ -491,7 +499,7 @@ static async Task<int> Main(string[] args)
491499 {
492500 try
493501 {
494- var result = await client . CallToolAsync ( "get_ignore_patterns" , [ ] ) ;
502+ var result = await client . CallToolAsync ( "get_ignore_patterns" , new Dictionary < string , object ? > ( ) ) ;
495503 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
496504 if ( jsonText != null )
497505 {
@@ -526,7 +534,7 @@ static async Task<int> Main(string[] args)
526534 {
527535 try
528536 {
529- var result = await client . CallToolAsync ( "clear_ignore_patterns" , [ ] ) ;
537+ var result = await client . CallToolAsync ( "clear_ignore_patterns" , new Dictionary < string , object ? > ( ) ) ;
530538 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
531539 if ( jsonText != null )
532540 {
@@ -557,7 +565,7 @@ static async Task<int> Main(string[] args)
557565 {
558566 try
559567 {
560- var args = new Dictionary < string , object > { [ "query" ] = query } ;
568+ var args = new Dictionary < string , object ? > { [ "query" ] = query } ;
561569 if ( top . HasValue )
562570 {
563571 args [ "topK" ] = top . Value ;
@@ -600,7 +608,8 @@ static async Task<int> Main(string[] args)
600608 {
601609 try
602610 {
603- var result = await client . CallToolAsync ( "analyze_packages" , new ( ) { [ "includePreviewVersions" ] = includePreview } ) ;
611+ var args = new Dictionary < string , object ? > { [ "includePreviewVersions" ] = includePreview } ;
612+ var result = await client . CallToolAsync ( "analyze_packages" , args ) ;
604613 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
605614
606615 // Try to deserialize to our expected type
@@ -759,7 +768,8 @@ static async Task<int> Main(string[] args)
759768 {
760769 try
761770 {
762- var result = await client . CallToolAsync ( "think" , new ( ) { [ "thought" ] = thought } ) ;
771+ var args = new Dictionary < string , object ? > { [ "thought" ] = thought } ;
772+ var result = await client . CallToolAsync ( "think" , args ) ;
763773 var jsonText = result . Content . First ( c => c . Type == "text" ) . Text ;
764774 if ( jsonText != null )
765775 {
0 commit comments