@@ -118,7 +118,7 @@ export abstract class BaseHandler implements ConnectionHandler {
118118 return parsed . tools . map ( ( tool : any ) => ( {
119119 name : tool . name ,
120120 description : tool . description ,
121- inputSchema : tool . input_schema as object | undefined ,
121+ inputSchema : tool . inputSchema as object | undefined ,
122122 alwaysAllow : false ,
123123 } ) )
124124 } catch ( error ) {
@@ -140,7 +140,7 @@ export abstract class BaseHandler implements ConnectionHandler {
140140 return parsed . resources . map ( ( resource : any ) => ( {
141141 uri : resource . uri ,
142142 name : resource . name ,
143- mimeType : resource . mime_type as string | undefined ,
143+ mimeType : resource . mimeType as string | undefined ,
144144 description : resource . description ,
145145 } ) )
146146 } catch ( error ) {
@@ -159,11 +159,11 @@ export abstract class BaseHandler implements ConnectionHandler {
159159 const result = await connection . client . listResourceTemplates ( )
160160 const parsed = ListResourceTemplatesResultSchema . parse ( result )
161161
162- return ( parsed as any ) . templates . map ( ( template : any ) => ( {
163- uri : template . uri ,
162+ return parsed . resourceTemplates . map ( ( template : any ) => ( {
163+ uriTemplate : template . uriTemplate ,
164164 name : template . name ,
165165 description : template . description ,
166- inputSchema : template . input_schema as object | undefined ,
166+ mimeType : template . mimeType as string | undefined ,
167167 } ) )
168168 } catch ( error ) {
169169 // console.error(`Failed to fetch resource templates list for ${connection.server.name}:`, error)
0 commit comments