Execute a seeded tool. Unknown tools return undefined; argument errors return an isError result, as MCP prescribes for tool failures.
undefined
isError
Server fixture.
Tool name.
Tool arguments.
The tool result, or undefined when the server has no such tool.
runMockCvmTool(MOCK_CVM_SERVERS[0], 'echo', { text: 'hi' })?.content[0].text === 'hi'; Copy
runMockCvmTool(MOCK_CVM_SERVERS[0], 'echo', { text: 'hi' })?.content[0].text === 'hi';
Execute a seeded tool. Unknown tools return
undefined; argument errors return anisErrorresult, as MCP prescribes for tool failures.