File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export async function getPrompt(
3434 const stringArgs : Record < string , string > = { } ;
3535 if ( args ) {
3636 for ( const [ key , value ] of Object . entries ( args ) ) {
37- if ( typeof value === ' string' ) {
37+ if ( typeof value === " string" ) {
3838 stringArgs [ key ] = value ;
3939 } else if ( value === null || value === undefined ) {
4040 stringArgs [ key ] = String ( value ) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ export async function listTools(client: Client): Promise<McpResponse> {
3030 }
3131}
3232
33- function convertParameterValue ( value : string , schema : JsonSchemaType ) : JsonValue {
33+ function convertParameterValue (
34+ value : string ,
35+ schema : JsonSchemaType ,
36+ ) : JsonValue {
3437 if ( ! value ) {
3538 return value ;
3639 }
@@ -92,11 +95,11 @@ export async function callTool(
9295 // since we now accept pre-parsed values from the CLI
9396 const stringArgs : Record < string , string > = { } ;
9497 for ( const [ key , value ] of Object . entries ( args ) ) {
95- if ( typeof value === ' string' ) {
98+ if ( typeof value === " string" ) {
9699 stringArgs [ key ] = value ;
97100 }
98101 }
99-
102+
100103 if ( Object . keys ( stringArgs ) . length > 0 ) {
101104 const convertedStringArgs = convertParameters ( tool , stringArgs ) ;
102105 convertedArgs = { ...args , ...convertedStringArgs } ;
You can’t perform that action at this time.
0 commit comments