File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import type { InitializeRequest } from '@modelcontextprotocol/sdk/types' ;
2- import mcpClients from 'mcp-client-capabilities' ;
2+ import { mcpClients } from 'mcp-client-capabilities' ;
33
44/**
55 * Determines if the MCP client supports dynamic tools based on the InitializeRequest data.
66 */
77export function doesMcpClientSupportDynamicTools ( initializeRequestData ?: InitializeRequest ) : boolean {
8- const clientCapabilities = mcpClients [ initializeRequestData ?. params ?. clientInfo ?. name || '' ] ;
8+ const clientName = initializeRequestData ?. params ?. clientInfo ?. name ;
9+ const clientCapabilities = mcpClients [ clientName || '' ] ;
910 if ( ! clientCapabilities ) return false ;
1011
1112 const clientProtocolVersion = clientCapabilities . protocolVersion ;
Original file line number Diff line number Diff line change @@ -990,7 +990,7 @@ export function createIntegrationTestsSuite(
990990 await client . close ( ) ;
991991 } ) ;
992992
993- it . only ( 'should return error message when tryging to call MCP server Actor without tool name in actor parameter' , async ( ) => {
993+ it ( 'should return error message when tryging to call MCP server Actor without tool name in actor parameter' , async ( ) => {
994994 client = await createClientFn ( { tools : [ 'actors' ] } ) ;
995995
996996 const response = await client . callTool ( {
You can’t perform that action at this time.
0 commit comments