@@ -61,27 +61,26 @@ describe('Module exports', () => {
6161 // } catch (error) {
6262 // console.log('Validation error:', error);
6363 // }
64-
6564 // // While we can't test types directly, we can verify the module has exports
6665 // // expect(mentions.length).toBeGreaterThan(0)
6766 // })
6867
6968 test ( 'exports me type definitions' , async ( ) => {
7069 // We can't directly test types at runtime, but we can verify the exports exist
71- const client = await proxy . meta ! ( { 'mcp.provider.uri' : 'file:///Users/arafatkhan/Desktop/servers/src/everything/dist/index.js' , 'mcp.provider.args' : [ ] } )
70+ const client = await proxy . meta ! ( { } , { 'mcp.provider.uri' : 'file:///Users/arafatkhan/Desktop/servers/src/everything/dist/index.js' , 'mcp.provider.args' : [ ] } )
7271 console . log ( client )
73- const inputs = await proxy . mentions ! ( { query : 'add' } , { } )
74- const inputSchema = JSON . parse ( ( inputs [ 0 ] as any ) . inputSchema )
75- console . log ( inputSchema )
72+ const inputs = await proxy . mentions ! ( { query : '' } , { } )
73+ console . log ( "inputs response is :" , inputs [ 0 ] . data )
74+ const inputSchema = inputs [ 0 ] . data
75+ console . log ( "inputSchema is :" , inputSchema )
7676 const ajv = new Ajv ( ) ;
7777 const validInput = {
78- a : 2 ,
79- b : 3
78+ message : "hello"
8079 } ;
8180 const isValidInput = ajv . validate ( inputSchema , validInput ) ;
8281 console . log ( 'Valid input:' , isValidInput , validInput ) ;
8382
84- const items = await proxy . items ! ( { mention : { uri : 'test' , title : 'add ' , data : { a : 2 , b : 3 } } } , { } )
83+ const items = await proxy . items ! ( { mention : { uri : 'test' , title : 'echo ' , data : { message : 'hello' } } } , { } )
8584 console . log ( items )
8685
8786
0 commit comments