Documentation
    Preparing search index...

    Function runMockCvmTool

    • Execute a seeded tool. Unknown tools return undefined; argument errors return an isError result, as MCP prescribes for tool failures.

      Parameters

      • fixture: MockCvmServerFixture

        Server fixture.

      • name: string

        Tool name.

      • args: Record<string, unknown>

        Tool arguments.

      Returns McpToolResult | undefined

      The tool result, or undefined when the server has no such tool.

      runMockCvmTool(MOCK_CVM_SERVERS[0], 'echo', { text: 'hi' })?.content[0].text === 'hi';